alexvoz / as3isolib

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

r187 BitmapFill ColorTransform has no effect #8

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I just got r187, excited to try BitmapFills on IsoBoxes, but found there was no 
way I could get the 
ColorTransform in the following to work:

    var f0:BitmapFill = new BitmapFill(srcClass, IsoOrientation.XY, null, new ColorTransform(0.6, 
0.6, 0.6));

I snooped around in BitmapFill.as, and it turns out that after the first call 
to (BitmapFill::set 
source), there are some cases where the old bitmapData is preserved, and the 
call has no effect. 
It's a one line fix, I believe, although I'm not particularly familiar with the 
source.

Also, the ColorTransform has no effect if the sourceObject is a BitmapData or 
Bitmap. This 
makes for slightly confusing API. I don't know if it would be appropriate to 
correct or simply 
document this, or perhaps do something else.

---

What version of the product are you using? On what operating system?

as3isolib r187, Flash Player 10, Flex SDK 3, Mac OS X 10.5.6

Original issue reported on code.google.com by mirza.ga...@gmail.com on 11 Feb 2009 at 11:18

Attachments:

GoogleCodeExporter commented 9 years ago
I will take a look here shortly.  Thanks for the feedback.

Original comment by jwopitz on 12 Feb 2009 at 6:25

GoogleCodeExporter commented 9 years ago
Fixed in revision 190.  Let me know if I missed anything.

Original comment by jwopitz on 17 Feb 2009 at 5:47