Home Help Search Login Register


J2meForums  |  General Category  |  Programming (Moderators: mikkom, shendley)  |  Topic: how to write text on the image????? « previous next »
Pages: [1] Print
Author

how to write text on the image?????

 (Read 177 times)
iraqy2010
New user
*
Posts: 9



View Profile
how to write text on the image?????
« on: July 24, 2010, 10:12:13 am »

hi all***
how I can to write on the image in high level interface Huh
if I can
how???
if I cant
how to read file which appear full text on low level interface
I read file from src on image in canvas but the string no make new line


I want to read file on image like reading on the file

my regards
Logged
iraqy2010
New user
*
Posts: 9



View Profile
Re: how to write text on the image?????
« Reply #1 on: July 26, 2010, 08:44:20 pm »

pleas any one help me
Logged
mr_lou
J2me god
*****
Posts: 1341



View Profile WWW
Re: how to write text on the image?????
« Reply #2 on: July 26, 2010, 10:06:22 pm »

Code:
Image img = Image.createImage("filename.png");
Graphics g2 = img.getGraphics();
g2.drawString("Hello there",0,0,Graphics.TOP|Graphics.LEFT);
Logged

iraqy2010
New user
*
Posts: 9



View Profile
Re: how to write text on the image?????
« Reply #3 on: July 27, 2010, 08:45:44 am »

thanks 4 reply
I want to write length string contain on book to reading and the background is image
Logged
mr_lou
J2me god
*****
Posts: 1341



View Profile WWW
Re: how to write text on the image?????
« Reply #4 on: July 27, 2010, 09:01:43 am »

You need to code your own wrapper. J2ME will not wrap the text for you when drawing text on an image like that.
Google for text wrapper or something like that. There are many examples online.
Logged

iraqy2010
New user
*
Posts: 9



View Profile
Re: how to write text on the image?????
« Reply #5 on: July 27, 2010, 04:45:41 pm »

thank u
pleas give me any example or link to example for this

my regards
Logged
Pages: [1] Print 
J2meForums  |  General Category  |  Programming (Moderators: mikkom, shendley)  |  Topic: how to write text on the image????? « 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!