You Are Here:

Community: Developer Discussion Boards

#1 Old how to change the backGround of an image - 2006-07-11, 16:25

Join Date: Jul 2006
Posts: 33
mshouab
Offline
Registered User
i want to change the backgroung color of an image lets say i have captured an image from camera and now i want to change its background color while drawing this image on canvas in paint method how can i do it i have used the graphics.setColor(0,0,0); but unable to succeed help needed.

Regards,
Muhammad Shouab
Reply With Quote

#2 Old Re: how to change the backGround of an image - 2006-07-11, 18:29

Join Date: Dec 2005
Posts: 1,696
Location: Europe/Poland/Warsaw
peterblazejewicz
Offline
Super Contributor
hi Muhammad,

with sun MIDP 2.0 api you can get all pixels data from image and check them againts values or argb, modify each pixels if required then draw new images from modified bytes (see Image class getRGB()/createRGBImage(..)), Nokia extra api with DirectGraphics/DirectUtils add additional features you can use to implement alpha channel (for example you can lower transparency of pixels which are white and draw directly on canvas without a need to create new image after pixel manipulation),
try to search forum:
http://discussion.forum.nokia.com/fo...ad.php?t=29086

regards,
Peter
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
how can i capture image with a background image mshouab Mobile Java Media (Graphics & Sounds) 3 2007-01-23 17:35
[ListBox] Change Background Image of ListBox lsword0112 Symbian User Interface 0 2006-03-31 09:53
background image in series60 jack44 General Symbian C++ 1 2003-07-31 19:13
change Background image Nokia MaaD Symbian User Interface 0 2003-07-02 11:17
Game Developement - Display object on a image background kenkwokkam Mobile Java General 0 2003-02-08 15:58

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 
RDF Facets: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d18645X qdcZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qdcZtypeQUqfntypeZCommunityContentQ qdcZtypeQUqfntypeZE44iscussionQ qdcZtypeQUqfntypeZE44iscussionContentQ qdcZtypeQUqfntypeZE52esourceQ qdcZtypeQUqfntypeZWebpageQ qdcZtypeQUqmarsZManagedE52esourceQ qdcZtypeQUqwebZInformationE52esourceQ qdcZtypeQUqwebZPageQ qdcZtypeQUqwebZE52esourceQ qdcZtypeQUqrdfsZE52esourceQ qfnZtopicQUqfnTopicZentertainmentQ qfnZtopicQUqfnTopicZj2meQ qfnZtopicQUqfnTopicZjavaQ qfnZtopicQUqfnTopicZmediaQ qfnZtypeQUqfntypeZCommunityContentQ qfnZtypeQUqfntypeZE44iscussionQ qfnZtypeQUqfntypeZE44iscussionContentQ qfnZtypeQUqfntypeZE52esourceQ qfnZtypeQUqfntypeZWebpageQ qmarsZlanguageQUxhttpE3aE2fE2fswE2enokiaE2ecomE2flanguageE2d1E2fenX qrdfZtypeQUqfnZE45E78cludedFromGeneralE4cistingsQ qrdfZtypeQUqfntypeZCommunityContentQ qrdfZtypeQUqfntypeZE44iscussionQ qrdfZtypeQUqfntypeZE44iscussionContentQ qrdfZtypeQUqfntypeZE52esourceQ qrdfZtypeQUqfntypeZWebpageQ qrdfZtypeQUqmarsZManagedE52esourceQ qrdfZtypeQUqwebZInformationE52esourceQ qrdfZtypeQUqwebZPageQ qrdfZtypeQUqwebZE52esourceQ qrdfZtypeQUqrdfsZE52esourceQ