As indicated in earlier post I need to swap the palettes of a bitmapdata.
public function paletteMap(sourceBitmapData:BitmapData,
sourceRect:Rectangle, destPoint:Point, redArray:Array = null,
greenArray:Array = null, blueArray:Array = null, alphaArray:Array =
null):void
Remaps the color
So if I understand you correctly, your question actually is: how do I find
out which colors are used in my bitmap data?.
I am sorry to disappoint you, but I do not have an answer for you. The only
solution I could come up with is looping through the pixels (see the code at
the end of the email).
-
From: EECOLOR [EMAIL PROTECTED]
To: Flash Coders List flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 27, 2008 10:47 PM
Subject: Re: [Flashcoders] BitmapData.paletteMap ()
So if I understand you correctly, your question actually is: how do I
find
out which colors are used in my
Perhaps you could read just the palette info from the image file instead of
looping through the bitmapdata to gather that data. That could be more or
less challenging depending on the file format of the image.
Cheers
Juan Pablo Califano
2008/2/27, EECOLOR [EMAIL PROTECTED]:
So if I understand
flashcoders@chattyfig.figleaf.com
Sent: Wednesday, February 27, 2008 11:34 PM
Subject: Re: [Flashcoders] BitmapData.paletteMap ()
Perhaps you could read just the palette info from the image file instead
of
looping through the bitmapdata to gather that data. That could be more or
less challenging
5 matches
Mail list logo