Handling inverted pixels in bitmapData and bitmap class in as3

Posted by intoTHEwild on Stack Overflow See other posts from Stack Overflow or by intoTHEwild
Published on 2010-03-29T13:36:47Z Indexed on 2010/05/16 4:10 UTC
Read the original article Hit count: 344

I am using bitmapData and bitmap classes to render a mouse cursor on the display screen. The bitmapData consists of an area whose colors should be inverted according to the background color. This is a very basic thing which could be observed with text cursor(the vertical line with two small horizontals on top and bottom), when moved over the text area.

I want to be able to do the same with the pixels in my bitmapData, is there a way to find out the background color effectively and invert the color values?

In this process i will be redrawing the whole pixels, is there any other efficient way to do that ?

© Stack Overflow or respective owner

Related posts about actionscript-3

Related posts about bitmap