Transparent .png not transparent

Problems with Canvas, OpenGL, etc...

Transparent .png not transparent

Postby rbelcher » Wed Feb 02, 2011 7:15 pm

I'm going through a loop canvas.drawBitmap'ing png's with transparency, and the first png is transparent but all subsequent ones are not, even if I use the same graphic. All the other pngs have a white background.

I'm basically using the code from the SDK example TicTacToe.

In the for loop:
Syntax: [ Download ] [ Hide ]
Using java Syntax Highlighting
  1. Paint i_paint(Paint.ANTI_ALIAS_FLAG);
  2. Bitmap i_bmp = getResBitmap(i_res);
  3. i_rect.set(x1,y1,x2,y2);
  4. canvas.drawBitmap(i_bmp, null, i_rect, i_paint);
  5.  
Parsed in 0.031 seconds, using GeSHi 1.0.8.4


Any ideas would be much appreciated.
rbelcher
Once Poster
Once Poster
 
Posts: 1
Joined: Wed Feb 02, 2011 7:08 pm

Top

Return to Android 2D/3D Graphics - OpenGL Problems

Who is online

Users browsing this forum: No registered users and 3 guests