In GDI+, the BitmapData class is used by the Bitmap::LockBits and Bitmap::UnlockBits methods of the Bitmap class. A BitmapData object stores attributes of a bitmap.
Questions tagged [bitmapdata]
412 questions
1
vote
2 answers
AS3 - Check if BitmapData is completely obscured by other BitmapData
I'm looking to check if a BitmapData object is completely obscured by a BitmapData object. Is there something like the hitTest function but that makes sure every pixel is covered instead of any pixel?
Edit: It is important that transparent pixels…

Anonymous1
- 3,877
- 3
- 28
- 42
0
votes
1 answer
Why do Loader objects kill bitmapdata draw();?
The code below is a simple add and save program. You press the addButton to add content to the canvas and than press the exportButton to save an image of the canvas in its current state to your desktop. This code works fine when I add circle objects…

Mike Arledge
- 89
- 7
0
votes
1 answer
Performance difference between drawing simple shape or complex movieClip in a bitmapData
I'm working with another developer on an app. His part is basically a control panel, developed as a standalone module, and has to be integrated in my main app.
My app has to redraw all the panels and elements in a bitmapData to do some…

Sr.Richie
- 5,680
- 5
- 38
- 62
0
votes
1 answer
Why is JPGEncoded bytearray sent from AS3 to AMFPHP resulting in an invalid image?
Im loading images into Flash and using JPGEncoder to encode the image to a ByteArray and send this to AMF PHP which writes out the bytearray to a file. This all appears to work correctly and I can download the resulting file in Photoshop CS4…

undefined
- 5,190
- 11
- 56
- 90
0
votes
2 answers
Use bitmapData.hitTest on two bitmapData with centered registration point
I've spent all the day on this, it's time to ask for your help :)
I'm trying to do collision detection of two display objects, both have centered registration point.
On my stage I have fixed elements that when added to stage are pushed in an Array…

Sr.Richie
- 5,680
- 5
- 38
- 62
0
votes
1 answer
How can I resize bitmap data without having to edit the transform matrix and maintain good quality
I am trying to resize a bitmap for a project we are working on at work in as 3.0. Basically we have a bunch of sprites that get drawn on a bitmapData and then are stored in a vector. The data in the vector eventually gets stored in a bitmap object.…

samoan
- 98
- 6
0
votes
1 answer
AS3 BitmapData Copy Pixels Half Pixel?
Having trouble trying to scroll BitmapData on a half pixel here is my original code
var speed:Number = 1;
_bitmapData.copyPixels(_backgroundParallax, _screenRect, _zeroPoint, null, null, true);
_backgroundParallax.copyPixels(_backgroundParallax, new…

rorypicko
- 4,194
- 3
- 26
- 43
0
votes
1 answer
How can I draw these Sprites to a BitmapData when they have crazy origin points?
I am facing a real nightmare.
I have many Assets which use strange origin points.
I need to essentially draw these assets to a BitmapData, but the origin point causes all kinds of problems.
StackOVerflow does not let me attach an image so I will…

user1059939
- 1,613
- 2
- 20
- 37
0
votes
2 answers
AS3: Is it possible to generate animated sprite sheets at runtime from vector?
I would like to use Bitmaps in my Actionscript games.
For me this represents a large change in my workflow as I have always used Vector but Bitmaps are really so much faster to render in certain circumstances. As far as I can see, 90% of all my…

user1059939
- 1,613
- 2
- 20
- 37
0
votes
1 answer
Comparing two BitmapData in ActionScript 3
I'd like to know if there's anyway I can compare two BitmapData and get a "similarity percentage" (knowing how look-alike they are).
I've done a bit of research and came across bitmapData.compare(otherBmd), but that only returns if they differ in…

mikemakesgames
- 3
- 2
0
votes
2 answers
AS3 - Webcam video dimensions not carrying over into new BitmapData - defaulting to 320x240
I am attempting to capture a 1920x1080 webcam capture and create a new bitmap with the capture. I feel like I have all the dimension settings correct but the final 1920x1080 bitmap only contains a small 320x240 version of the video capture.…

libradog
- 11
- 3
0
votes
1 answer
bitmapData's dimensions (width and height)
I'm new to flex and I have a question concerning bitmapData and its width and height.
Normally you set up bitmapData like this in AS3:
var bd:BitmapData = new BitmapData(100, 100, true, 0x00000000);
var bm:Bitmap = new Bitmap(bd);
But in Flex…

drpelz
- 811
- 11
- 43
0
votes
2 answers
AS3 Removechild Addchild issue/error
I have been looking for an answer for hours:
My program:
Step I) When I click on a button, it displays a bitmap through addchild;
Step II) When I click on another button, it should remove the bitmap through removechild;
Step I) works perfectly but…

user1157439
- 1
- 1
0
votes
1 answer
Error while rotating bitmapdata
While trying to rotate a bitmap Image, I am finding some unwanted design patterns on the rotated image. I have used Matrix for rotation.

Rahul TP
- 1
0
votes
1 answer
draw textfield caret and text selection onto bitmap
I'm drawing a textfield onto a bitmap which I use as texture for a 3D object.
I'm listening for Event.change, and so whenever the user adds a character I redraw the texture. But to really give the 3D object a 'interactive textfield feeling', I want…

Flion
- 10,468
- 13
- 48
- 68