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
Convert Bitmap data into the image tag format
i have function which will create the thumbnail image :
Image photo=System.Drawing.Image.FromStream(myFile.InputStream);
Bitmap bmp = new Bitmap(100, 100);
Graphics graphic = Graphics.FromImage(bmp);
graphic.InterpolationMode =…

bhakti
- 143
- 1
- 1
- 9
1
vote
2 answers
AS3: BitmapData linked to certain sprite in library?
I have a problem. I have a sprite added to library and I linked and named its class "CarriedHead_Normal". Now I want to display this sprite and make every black(000000) pixel invisible (just convert background to alpha).
I know I can use this
var…

Gad
- 23
- 4
1
vote
1 answer
Bug when using BitmapData.draw() with blend-modes
I want to fill bitmapdata with transparent sprites using different transformations and blend-modes. It causes light lines on the borders of image after drawing.
Here is screenshot of result without using…

artics
- 11
- 2
1
vote
3 answers
Flex - get bitmap
Is it possible to get the bitmap data from a component using ActionScript?
I dynamically load an image.
onComplete I create a Flex Image component and add the loaded image to the source
loader.contentLoaderInfo.addEventListener(Event.COMPLETE,…

Ran
- 2,061
- 2
- 15
- 10
1
vote
2 answers
#2015: Invalid BitmapData
In my class, if I create bitmapData like this:
private var tImage:BitmapData;
public function object():void {
tImage = new BitmapData(30,30,false,0x000000);
}
I get the following error:
ArgumentError: Error #2015: Invalid BitmapData.
But…

numerical25
- 10,524
- 36
- 130
- 209
1
vote
2 answers
Reading Pixels from an image byte array
I have a jpeg image. I save this bitmapdata to a byte array.
This jpeg has a width of 100 and a height of 100.
I want to extract an image of Rectanlge(10,10,20,20);
Obviously, I can interact through this byte array but I am unsure how to relate the…

Andrew Simpson
- 6,883
- 11
- 79
- 179
1
vote
0 answers
How to replace bitmapData.copyPixels() with bitmapData.draw()
I'm trying to draw a level of my game using a tileset and a xml with the info. It works using copyPixels, but some tiles need to be flipped before they are drawn, so for that I need to use draw() instead of copyPixels(), but I can't get it to work.…

Caio Rosisca
- 21
- 2
1
vote
3 answers
On printing mono chrome bitmap image one extra vertical line is also getting printed
I am printing the mono chorme bit map image on thermal printer where i am able to print the image but at rightmost, one vertical line is getting printed. (The line is from Top right to bottom right with nearly 2mm thick)
Bitmap image = new…

siva Rapolu
- 409
- 1
- 8
- 20
1
vote
1 answer
AS3 - Is there an equivalent decode() to BitmapData.encode()?
Is there a way to turn the ByteArray back into a BitmapData after using BitmapData.encode()?

Anonymous1
- 3,877
- 3
- 28
- 42
1
vote
2 answers
Flash AS3 BitmapData.draw() affects text formating
I need to display antialiased systemfonts (because the swf filesize must be small, therefore i can't embedd fonts). So I wrote this script in order to manually antialias the text
Code:
public function renderTextField():BitmapData{
var…

genesys
- 41
- 2
- 5
1
vote
2 answers
Capturing a byte[] image data from WPFMediaKit
I have a bit of code that I have been working with to capture an image from a VideoCaptureElement from WPFMediaKit. it works great!
bmp.Render(videoElement);
BitmapEncoder encoder = new JpegBitmapEncoder();
…

Herrozerro
- 1,601
- 1
- 22
- 37
1
vote
3 answers
Unable to create snapshot of Canvas
In my application a canvas object has height = 90 px & width = 86400 px (indicating number of seconds in a day [60 * 60 * 24] ). The canvas is scrollable and the user can add or delete components in that.
Now, I want to have snapshot of the whole…

krishna
- 339
- 2
- 6
1
vote
1 answer
Load an Image in Multiple movie clips using as3
I am really curious of asking a particular question to everyone of you. I am creating an Application in flash that is lot similar to this Application Zazzle Case Cover
I am almost ready with what i was supposed to do and How i have to do. But, still…

Arun Prasad
- 11
- 3
1
vote
2 answers
Flex - Error #2015: Invalid BitmapData
I really need some help on this, as I have no idea how to fix it! :/
Got a problem here.
My application is working fine on my computer, both offline and online (flash uploaded to our webservers). It works fine in both IE and Firefox.
However, some…

Stian Berg Larsen
- 543
- 2
- 10
- 29
1
vote
2 answers
Retrieving RGBA values from an image
I am retrieving data from an Image using the CGDataProviderCopyData but the bytes returned by this function is very large when compared to the image file size. Here is my code.
UIImage *image = self.imageView.image;
CGImageRef cgimage =…

Ram
- 1,872
- 5
- 31
- 54