You Are Here:

Community: Developer Discussion Boards

#1 Old How to do a tansparent fillRect - 2008-04-09, 14:55

Join Date: Aug 2007
Posts: 32
amalshah73
Offline
Registered User
Hello,
How can i fill a Rectangle with a color in order to view it as transparent.

say for e.g. i have a text written and on top of it i want to fill a Rectangle with transparent effect. The rectangle get's filled with a color with opaque effect.

help appreciated
cheers
amal shah
Reply With Quote

#2 Old Re: How to do a tansparent fillRect - 2008-04-09, 16:07

Join Date: Mar 2003
Posts: 16,949
Location: Bangkok
symbianyucca's Avatar
symbianyucca
Offline
Forum Nokia Expert
Null Brush would leave the backround unchanged, so have you tried using it already ?
Reply With Quote

#3 Old Re: How to do a tansparent fillRect - 2008-04-09, 18:15

Join Date: Aug 2007
Posts: 32
amalshah73
Offline
Registered User
@symbian...??????????????????

what does that mean.......
Reply With Quote

#4 Old Re: How to do a tansparent fillRect - 2008-04-10, 15:41

Join Date: Apr 2008
Posts: 4
gwilczura
Offline
Registered User
You may want to take a look at this:
http://java2me.org/NokiaUI/doc/index.html

But basicly You have to create an muttable image with sme specified background. Draw on it. Than get image data with Image.getRgb() functoion. This gives table with image data. In this table you have to work on your wanted transparency.
Later you create unmuttable image with Image.createRGBImage() with your changed data as a parameter.
This will allow you to create transparent or semi transparent image whitch you can draw on screen.

This is realy slow stuff so you should think if you want to use it.

best luck,
G.
Reply With Quote

#5 Old Re: How to do a tansparent fillRect - 2008-04-10, 22:41

Join Date: Nov 2007
Posts: 2,029
Location: Rome, Italy
Send a message via MSN to jappit Send a message via Skype™ to jappit
jappit's Avatar
jappit
Offline
Forum Nokia Champion
Hi gwilczura,

can you explain better what you're trying to accomplish? Maybe there is some alternative way to achieve the same effect (e.g. use premade semitransparent images).

Cheers,
Pit
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
Tansparent window problem ranjeet raj General Symbian C++ 15 2008-02-06 05:10
createImage OR fillRect what is faster ? waxattack Mobile Java Media (Graphics & Sounds) 5 2004-10-19 08:39
Possible fillRect limitation on earlier series 60's? andrew_nevick Mobile Java General 1 2004-01-06 20:34

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: qdcZidentifierQSxhttpE3aE2fE2fdiscussionE2eforumE2enokiaE2ecomE2fforumE2fshowthreadE2ephpE3ftE3d134434X 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