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
3
votes
1 answer
What's the fastest way to access video pixels in as3?
I would like to copy pixels from a 1080p video from one location to another efficiently/with as little CPU impact as possible.
So far my implementation is fairly simple:
using BitmapData's draw() method to grab the pixels from the video
using…

George Profenza
- 50,687
- 19
- 144
- 218
3
votes
1 answer
Make a *.bmp image from binary data
How would I make a *.bmp image using 1 bit per pixel using VB6? Does an example project exist for something like this?
'# # Image Data Info : #
'# # Each black dot…

numus175
- 75
- 1
- 8
3
votes
1 answer
Are Bitmap.LockBits and Graphics.FromImage combinable in C#
Can you combine the methods of Bitmap.LockBits and Graphics.FromImage, or in other words if I have a bitmap "bmp" and I want to edit the bitmap with a Graphics-object g, are the changes visible in the byte-array of the BitmapData.Scan0:
Bitmap bmp =…

Willem Van Onsem
- 443,496
- 30
- 428
- 555
3
votes
3 answers
An alternative to bitmapdata with less memory usage?
Im using a very big BitmapData as a pathing map for my platformer game, however I only use pixels for 4 particular values, instead of, well 4294967295.
Would converting this Bitmapdata as 2 2D Vectors of Boolean save me some memory ?
And if it does,…

Krucho
- 117
- 7
3
votes
2 answers
How do i shuffle bitmap data?
i was asked to do a program that takes an image, reads the bitmap data and than randomizes the image.
I tried the easy way, spliting the "string" on every " " and than shuffling that, but the image goes corrupt, any idea on how to do this?
I would…

Ricardo Cerqueira
- 69
- 7
3
votes
3 answers
How to detect if the area was 100% painted in as3
I´m making a game that simulates an industry of pan, and one of the process is Painting.
What I want to do is to let the player paint the pan, but i don´t want it to be easy using FILL, i want that the player paint the pan with an brush and then the…

Pyva
- 33
- 3
3
votes
1 answer
AS3 convert ByteArray of ARGB values to RGB uint
I have a C++ QT application that is sending a ByteArray of ARGB values via a TCP socket. The image is 100 x 100. The problem is that when I read off the ByteArray I can't seem to get the image to display right. I've tried lots of different ways and…

Ben
- 1,989
- 22
- 25
3
votes
1 answer
AS3 Blitting - Copy Pixels getting some of the source image
I am trying to draw something on the screen and then, copy that onto a bitmap which is on stage.
I have done this before, with a procedurally drawn shape like a circle but when I use a library item most of the source pixels get cut off.
here's my…

Servet
- 33
- 1
- 4
2
votes
2 answers
How to save BitmapData to Bitmap *.bmp file, or much faster JPE Encoding method
I have a Flash / Actionscript 3 based desktop app wrapped in an *.exe using Zinc 4.0. I am using Flash Pro CS5.
I need to start saving very large image files locally. I have messed around with JPG Encoding these images before saving them to a local…

ToddBFisher
- 11,370
- 8
- 38
- 54
2
votes
1 answer
Flash/Flex crossdomain issue - using BitmapData.draw() for image from AWS S3 results in SecurityError: Error #2122: Security sandbox violation
I am using BitmapData.draw() on a DisplayObject that includes an image from my AWS S3 bucket. The image loads fine in the swf when I set the S3 image URL as the source for an Image object but when I use BitmapData.draw() on it, it gives me this…

Steven
- 1,949
- 2
- 17
- 30
2
votes
5 answers
How to use BitmapData.fillRect()?
When I use it, the only thing that is filled is a white rectangle, doesn't matter the parameter.
This is what I do:
var map:Bitmap = new Bitmap (new BitmapData(200,200))
map.bitmapData.fillRect(new Rectangle(0,0,100,100),0xFF0000)
A 100x100…

Lucas
- 558
- 11
- 28
2
votes
1 answer
How can I draw transparent graphics onto transparent BitmapData?
I'm trying to draw PNGs onto BitmapData that is transparent.
I create my BitmapData like this (using ARGB for the color):
new BitmapData(width, height, true, 0x00000000);
And clean it by using the same ARGB…

Marty
- 39,033
- 19
- 93
- 162
2
votes
1 answer
How can I merge multiple bitmapData objects into one so that it can be encoded using PNGEncoder?
I am creating a program that is effectively an sprite creator. I'm very new to AS3, but I know JQuery, JS, PHP, etc. After going through multiple steps of selecting pieces to customize a character, you are supposed to be able to download the final…

SanguineEpitaph
- 169
- 12
2
votes
1 answer
How Can I save a MovieClip (Bitmap and Audio) to FLV?
This is my first question here :D, first sorry about my english.
My question is basically how can i save a flash Movie Clip to FLV.
The Movie Clip is generated by users and it has various sounds and animations and i need to save an FLV to send it to…

Lelis718
- 627
- 7
- 16
2
votes
0 answers
Read BitmapData from multiple threads
I'm having multiple threads that need to READ the same bitmap. They all need to potentially read the entire bitmap.
I want them to access the underlying bytes, so each thread invokes LockBits with ReadOnly lockmode.
BitmapData bits =…

Ben
- 1,519
- 23
- 39