laoniusanche / papervision3d

Automatically exported from code.google.com/p/papervision3d
0 stars 0 forks source link

BitmapMaterialTools.mirrorBitmapX() draws on top of flipped bitmap #247

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

You will only notice this if you use a transparent material,
eg transparent png with text.

BitmapMaterialTools.mirrorBitmapX(yourBitmap.bitmapData);
will flip the image but you can still see the unflipped image beneath.

Adding
bitmap.fillRect(bitmap.rect, 0);
before
bitmap.draw(tmp, tmp.transform.matrix);

In both mirrorBitmapX() and mirrorBitmapY() 
solves the problem.

Original issue reported on code.google.com by jbp...@googlemail.com on 3 Jan 2010 at 4:37