Home Help Search Login Register


J2meForums  |  General Category  |  Programming (Moderators: mikkom, shendley)  |  Topic: How to draw image GIF use canvas in j2me « previous next »
Pages: [1] Print
Author

How to draw image GIF use canvas in j2me

 (Read 184 times)
huuanh1987
New user
*
Posts: 5



View Profile
How to draw image GIF use canvas in j2me
« on: July 02, 2010, 10:43:54 am »

hi all !!!
who can help me, How to draw image GIF use canvas in j2me ?
thank all !!!
Logged
mr_lou
J2me god
*****
Posts: 1340



View Profile WWW
Re: How to draw image GIF use canvas in j2me
« Reply #1 on: July 02, 2010, 02:24:19 pm »

Most newer phones can display a GIF file using Image.createImage().
Some devices ignores transparency though.

If possible, you should convert your GIF to PNG instead, using PNGOut or OptiPNG or similar.
Logged

mr_lou
J2me god
*****
Posts: 1340



View Profile WWW
Re: How to draw image GIF use canvas in j2me
« Reply #2 on: July 26, 2010, 01:41:58 pm »

That code will show the gif file fine on a newer Sony Ericsson device.

But if you want to make sure your code works on most devices, simply convert your GIF to PNG.
Logged

Pages: [1] Print 
J2meForums  |  General Category  |  Programming (Moderators: mikkom, shendley)  |  Topic: How to draw image GIF use canvas in j2me « previous next »
Jump to:  


Login with username, password and session length

Powered by MySQL Powered by PHP J2meForums | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!