You Are Here:

Community: Developer Discussion Boards

#1 Old How to save a image ? - 2008-12-09, 07:45

Join Date: Nov 2008
Posts: 47
intheworldofmyown
Offline
Registered User
Hi all,

I really need help
I allow the user to add text and add mini icons into a selected photo, and how can i save the photo and background into one image?

Thanks in advance =)
Reply With Quote

#2 Old Thumbs up Re: How to save a image ? - 2008-12-09, 11:00

Join Date: Mar 2008
Posts: 2,161
Location: The Capital of I N D I A
Send a message via Skype™ to raj_J2ME
raj_J2ME's Avatar
raj_J2ME
Offline
Forum Nokia Champion
Quote:
Originally Posted by intheworldofmyown View Post
Hi all,

I really need help
I allow the user to add text and add mini icons into a selected photo, and how can i save the photo and background into one image?

Thanks in advance =)
Hi,
Well,you can move ahead like this -

Just take the entered text and icon ..then just draw the both over the image on some x and y pos....then you can access the x and y of the both..then keep the co-ordinated fixed..text and image position will not be changed..
if you want to again show the image with the two..then save the co-ordinated in RMS.Then you can again display the same..
Thanks,


Thanks

R a j - The K e r n e l
Reply With Quote

#3 Old Re: How to save a image ? - 2008-12-09, 14:02

Join Date: Nov 2008
Posts: 47
intheworldofmyown
Offline
Registered User
Hi, i want to save to one image as i want it to be able to save it into the phone memory of the device.

So is it still possible?
Reply With Quote

#4 Old Re: How to save a image ? - 2008-12-09, 15:54

Join Date: Apr 2007
Posts: 1,757
Tiger79's Avatar
Tiger79
Offline
Forum Nokia Champion
actually even I cant grasp what u'r saying raj_j2me...
maybe u could try to re-formulate ur post ?
Reply With Quote

#5 Old Re: How to save a image ? - 2008-12-09, 23:58

Join Date: May 2007
Posts: 347
Location: Mexico D.F
rdrincon's Avatar
rdrincon
Offline
Forum Nokia Expert
Hello


1. Create a mutable image using the following method of the Image class

Code:
public static Image createImage(int width,int height)
2. Get the Graphics object of that Image. (you will be painting actually in the image)

Code:
public Graphics getGraphics()
3. Paint whatever you want in that Graphics. First the other image you have, then the text or whatever you want.

4. Save the Image in the phone using JSR 75 (File API)


:Ruben
Reply With Quote
Reply « Previous Thread | Next Thread »
Display Modes
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules

You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Forum Jump
Similar Threads
Thread Thread Starter Forum Replies Last Post
desperately needs help on how to save an image in the mobile device memory daregazi Mobile Java Media (Graphics & Sounds) 1 2008-06-23 13:37
Opening a JPEG Image ummarbhutta Mobile Java Media (Graphics & Sounds) 8 2007-02-15 07:34
how to save image taken by camera with bitmap winsys Symbian Media (Graphics & Sounds) 0 2006-10-10 06:46
how to cut some part of Image mshouab Mobile Java Media (Graphics & Sounds) 2 2006-08-04 10:05
Nokia Image Converter davidpurdie General Discussion 0 2004-02-18 16:31

Rate This

 
Bookmark this page: DeliciousDiggFacebookGoogleYahooStumbleUponRedditDiigoTechnocratiTwitter  Share this page Share this page Print this Page Print this page Invite a friend Invite a friend
京ICP备05048969号    Email Newsletters Press Terms & Conditions Privacy Policy Sitemap Contact Us © 2009 Nokia