• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Tim Cooke
Sheriffs:
  • Rob Spoor
  • Liutauras Vilda
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Mikalai Zaikin
  • Carey Brown
  • Piet Souris
Bartenders:
  • Stephan van Hulst

unable to display image in nokia 6630

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


I am unable to display an image on a Nokia 6630 or a 6680 using the code above. However the image is displayed on a Nokia 6600. Has anyone else encountered the same problem? Is there another way to display an image in the Canvas class?
[ May 23, 2006: Message edited by: saad sal ]
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please specify the image file extention.
 
saad sal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am using a .png image, but i dont think that even using a jpeg image would make a difference
[ May 25, 2006: Message edited by: saad sal ]
 
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by saad sal:
i am using a .png image, but i dont think that even using a jpeg image would make a difference

[ May 25, 2006: Message edited by: saad sal ]



So what kind of exception does the drawImage() method throw, if it throws any?
And how are you creating the image, by URL or by bytes?

Try to debug it on handset and make the exception appear on the screen. Then it will be easier to find the problem. (Of Course, IF you have not done that already)

- Ramy..
 
saad sal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks I solved the problem. There was nothing wrong with the drawImage method after all.
 
Ramender Mall
Ranch Hand
Posts: 311
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by saad sal:
thanks I solved the problem. There was nothing wrong with the drawImage method after all.



What was the issue then? If you could state that here, it may prove helpful to someone else if she encounters the same problem.

- Ramy..
 
saad sal
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
well, at first i thought that it was a synchronizing problem, and it was to some extent. However later I found out that my first guess was right. It was the drawImage call that was throwing the exception. Well after finishing synchronizing, all i had to do was to replace the getwidth() and getheight() parameters with image.getwitdh() & image.getheight() etc and the program worked just fine.
 
If you want to look young and thin, hang around old, fat people. Or this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic