bitmapdata
About generating sound waveform in an ActionScript 3 Bitmap
I am generating Bitmap object to show the sound waveform of a loaded sound. The bitmap is 1024x120 and after it has been generated I shrink its size to 655x120. My problem is the player that loads the[详细]
2023-04-08 22:18 分类:问答BitmapData.draw with different shape
is it possible to change the Rectangle I use as fifth parameter of draw Bitma开发者_开发问答pData class?[详细]
2023-04-08 11:11 分类:问答Is there a way to find the size of the area in a bitmap which has been filled using the bitmapdata.floodfill method?
Basically, I am using the floodfill method to colour-in sections of a bitmap image. That part is easy enough but the issue comes in with the way I am adding an effect to the colour fill routine.[详细]
2023-04-08 11:10 分类:问答AS3 How to check if BitmapData is empty
I have a code to erase a masked movieclip. (credits here) I would like to know how I can check if the whole movieclip is been erased.[详细]
2023-04-01 07:33 分类:问答How to properly use hitTest between bitmapData and an object?
I have converted a PNG into a bitmap, then converted that into bitmapData. I have a object cal开发者_JAVA技巧led _player, and I wish to add collision detection, however I can seem to get it to work.[详细]
2023-03-29 22:30 分类:问答What does the mask parameter do in the threshold method of the BitmapData class?
I\'m trying to replace a color and colors near it in a bitmap. threshold() see开发者_JS百科ms to work but it seems to be that you have to specify the exact color \"==\" or all colors before or after[详细]
2023-03-29 02:01 分类:问答BitmapData constructor default seems to conflict
Following on from an answer I gave here: AS 3 | Cloning Png image data I knew that to get a transparent BitmapData Object it was necessary to specify a background color of black, but until I was call[详细]
2023-03-26 12:56 分类:问答Get BitmapData from a displayObject included transparent area, and effect area
I have this function: public static function cloneDpObj(target:DisplayObject):Bitmap { var duplicate:Bitmap;[详细]
2023-03-25 06:41 分类:问答Create Bitmap from a byte array of pixel data
This question is about how to read/write, allocate and manage the pixel data of a Bitmap. Here is an example of how to allocate a byte array (managed memory) for pixel data and creating a Bitmap usin[详细]
2023-03-21 22:17 分类:问答AS3/Flash BitmapData .draw memory leak
I have a large sprite...and I\'m splitting it into several smaller ones with function bellow. The function works great but the memory usage of my .swf grows dramatically.[详细]
2023-03-18 22:47 分类:问答