You Are Here:

Community: Developer Discussion Boards

#1 Old creating transparent images at runtime - 2003-04-19, 11:20

Join Date: Mar 2003
Posts: 1
gpinkett
Offline
Registered User
Hi,

I have a small rectangle ( graphic in PNG ) that is loaded then made as a mutable image in code.

What I need to do is cut out random chunks of it, this isn't the problem.

The problem is that drawing on it so the underneath becomes transparent ( the rectangle is drawed over the background during the game ).

If set my drawing colour to be transparent, you don't see the chunks taken out which I get because your drawing nothing on something.
Is it possible to draw in a certain colour, and then make that colour transparent afterwards ??

Many Thanks in advance

Gary
Reply With Quote

#2 Old 2003-04-21, 21:19

Join Date: Apr 2003
Posts: 5
Location: windsor, co, usa
Send a message via AIM to hitch1969©
hitch1969©
Offline
Registered User
Gayry™, a kewl thing that you could do is use Photoshop®. From The rectangular tool, crop the element in question and then press alt+f7 to grow. Then it's simply a matter of creating a new layer and removing all color elementals provided that it's in RGB32 differential.

Simple as the ROLLERboogie®!!

BEST!!

=h69=
Reply With Quote

#3 Old 2003-05-07, 12:22

Join Date: Mar 2003
Posts: 393
nmittal's Avatar
nmittal
Offline
Regular Contributor
Have a look at the Nokia UI API Guide. It shows how to create a coloured checkerboard image with a transparent hole in the middle.

http://www.forum.nokia.com/main/1,65..._10_10,00.html

[N]/Forum Nokia
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

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