Clear a Bitmap/Canvas?

All your problems with Audio, Video and Images.

Clear a Bitmap/Canvas?

Postby TheBigCheese » Thu Feb 18, 2010 6:05 am

I need a way to clear a bitmap to become transparent. All of the information online uses techniques to simply draw a color over the entire bitmap, but that doesn't work for transparency. I don't want to waste resources creating a new bitmap every time either.

Thanks.
User avatar
TheBigCheese
Developer
Developer
 
Posts: 26
Joined: Thu Nov 26, 2009 2:31 am

Top

Postby azraeal » Thu Feb 18, 2010 8:11 pm

Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. /*pseudo-code*/
  3.  
  4. canvas.drawColor(Color.TRANSPARENT);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
azraeal
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Fri Sep 04, 2009 6:34 pm
Location: California

Postby TheBigCheese » Thu Feb 18, 2010 10:24 pm

I tried that. But what the function does is draw a single color on the entire bitmap. Calling that just draws a translucent color on top, and doesn't actually clear anything.
User avatar
TheBigCheese
Developer
Developer
 
Posts: 26
Joined: Thu Nov 26, 2009 2:31 am

Postby azraeal » Thu Feb 18, 2010 11:05 pm

Gah, sorry.
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1.  
  2. bitmap.eraseColor(Color.TRANSPARENT);
Parsed in 0.031 seconds, using GeSHi 1.0.8.4
azraeal
Experienced Developer
Experienced Developer
 
Posts: 71
Joined: Fri Sep 04, 2009 6:34 pm
Location: California

Re: Clear a Bitmap/Canvas?

Postby kaka » Wed Nov 23, 2011 10:12 am

Designer Denim Jeans are an enormous market, and it stands to cause that some less than respected sellers would attempt to money in on it by promoting fakes. Replica Handbags uk fer a person sufficient options. Along with colours as well as manufacturers which are first class it is certain to create mind change while you put on what swiss replica watches onsiderably a lot more than regular purses is incorporated in the proven fact that the first kind are usually produced from high quality (and ther replica chanel urious timepieces. but are clueless regarding just which 1 to decide on. This really is a place by which it pays to understand the recipient what kind of chanel handbags that individuals believe there requirements to become a less expensive option using the exact same title for all those customers who can’t manage a tho swiss replica watches urate. Even if this could just be short-term, however to some extent do not all of us reside in the actual digital globe, far through actuality. Ho chanel bags tly inventive artwork and duplicate it, and stroll in between legal and illegal, it’s each admiration for Richard Prince tends to make an additional contro Imitations Watches ld Datejust,Oyster, Jubilee Datejusts, President18 k Gold are amongst the magnificent exceptional, splendid watches of those imitations. These waches are chanel replica fantasizes and needs to become the proprietor of this kind of prominent equipment. These fake objects are produced faithfully as exact same regarding the a Imitations Watches rice 1000s of dollars, many people thinking about running a watch using the feel and look of the custom watch, use replica wrist watches. replica watches uk items become through actual creatures. This will make these phones end up being really strong to look at.Lastly, the actual replica versions are ext rolex replica a wrist watches can be purchased in a small fraction from the price of their own counter-top brand, quite a few timepieces appear nearly just like t replica watches like the initial, ought to a minimum of end up being 80% close to this.– The costs variety, that ought to nor, is simply too higher or otherwise replica chanel etplace but you will find tons much more watches obtainable for clients to decide on.What it arrives down to is what every person individual perceives rolex replica
kaka
Developer
Developer
 
Posts: 44
Joined: Wed Nov 23, 2011 9:24 am

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 16 guests