Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Create an image using j2me

 
Falcon Ken
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can anyone help me in creating a image in PalmOS Emulator using J2ME?
where i need to put in the image file in which directory?
if possible pls give me the source code.
Thanks
 
Svend Rost
Ranch Hand
Posts: 904
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ken: Can anyone help me in creating a image in PalmOS Emulator using J2ME?
Sure - atleast I'd like to try. Try to take a look at javax.microedition.lcdui.Image

First to need to load the image, myImage, which you use the .createImage() method for. In order to draw myImage you need to invoke Graphics .drawImage() method.

Ken: where i need to put in the image file in which directory?
That's up to you. I usually have a res directory for ressources such as images.

Ken: if possible pls give me the source code.
haha.. funny guy.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!