colortransform

circular colorTransform

Is there a way to apply a colorTransform to a BitmapData in a circle rather than in a rectangle? Instead of erasing rectangular parts of an image by reducing the alpha channel as in the code below, I'd like to do it in circles. _bitmap.colorTransform(new Rectangle(mouseX-d/2, mouseY-d/2, d, d), new ColorTransform(1, 1, 1, .5, 0, 0, 0...

reverse colortransform alpha AS3

I'm fading out a Bitmap in AS3 by repeatedly applying a ColorTransform every frame to its BitmapData; _bitmap.colorTransform(_bitmap.rect, new ColorTransform(1, 1, 1, .9, 0, 0, 0, 1)); When applying the apparent reverse to fade it back in I get a discoloured image. _bitmap.colorTransform(_bitmap.rect, new ColorTransform(1, 1, 1, 1.1...

[Flash] How to change the color of a movieClip?

Happy New Year 2010 everyone :) Just getting back into the Flash groove, and having a simple question. I have a movie(video player) where the color of the buttons changes. I've already drawn out the buttons and created a 1 color box(movieClip) that will be the background of all the buttons. I've used ColorTransform to change the color ...

How to translate legacy (OLE) colors to (A)RGB with .NET?

I have a list of color values encoded as signed integers (OLE I think) in a legacy INI file that I need to translate into (A)RGB values with .NET. An INI example: [INI_Section] Color=-2147483633 Doing something like: Color.FromArgb(-2147483633) gives an alpha-blended version of a color that is not at all what I expect. I think t...