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
How to upload BitmapData to a server (ActionScript 3)?
I have bitmapData. I want to upload it to a server using URLLoader. I tried many ways, but with no result.
This is my current code in ActionScript 3:
import flash.net.URLLoader;
import flash.net.URLRequest;
import…

serg66
- 1,148
- 1
- 17
- 31
1
vote
1 answer
as3 two bitmapData objects, apply a colorburn, or darken, or multiplay filter
Photoshop and Fireworks both have some nice filters. When you put one bitmap over the other, the first bitmap can act as filter. For example, the white pixels of the top bitmap lighten the pixels of the bottom bitmap.
Is there any way to apply this…

nizzle
- 1,036
- 2
- 10
- 23
1
vote
1 answer
No more constrain on bitmap resolution in Flash Player 11?
Feature set over here claims that:
Enable the development of apps
that use very large bitmaps. BitmapData objects are no longer limited
to a maximum resolution of 16 megapixels (16,777,215 pixels), and
maximum bitmap width/height is no longer…

jayarjo
- 16,124
- 24
- 94
- 138
1
vote
2 answers
How to insert multiple rows to a table from a bitmap
I need to extract data from a third party system (I have no influence over its design). It's a SQL Server 2005 database uses bitmaps to store user privileges. It has five INT fields giving a maximum of 5 * 32 = 160 privileges. It stores a number of…

starfry
- 9,273
- 7
- 66
- 96
1
vote
2 answers
Is it possible to add BitmapData to a NetStream publishing to a FMS?
Simple setup:
Actionscript3/Flash application for Augmented Reality.
A webcam feed is published to a Flash Media Server.
Now I want the Augmented Reality layer to be a part of this video capture, rendered into one NetStream.
Has anyone done…

Marcel Klammer
- 11
- 2
1
vote
1 answer
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 bitmap in task manager becomes 260MB heavy.
I am…

Vlad
- 2,739
- 7
- 49
- 100
1
vote
3 answers
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 called _player, and I wish to add collision detection, however I can seem to get it to work.
my code is:
if(bmd1.hitTest(new Point(_player.x,…

atmd
- 7,430
- 2
- 33
- 64
1
vote
1 answer
Why BitmapData Stride have alternating sign?
I have the following code
var rect = new Rectangle(x, y, w, h);
BitmapData data = bitmap.LockBits(rect, ImageLockMode.ReadOnly, bitmap.PixelFormat);
BitmapSource cropppedImage;
if (data.Stride < 0)
{
…

Fred
- 162
- 9
1
vote
2 answers
BitmapData.draw with spark.components.Label
I'm having trouble drawing a Label component to a BitmapData object. No matter what I try, the label never shows up. Everything works fine if I simply add the Label to the display list, but for performance reasons, that is not an option. I'm not…

ModernCarpentry
- 3,127
- 2
- 20
- 14
1
vote
1 answer
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 called out on it I never bothered to check why. …

shanethehat
- 15,460
- 11
- 57
- 87
1
vote
4 answers
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;
var tBitData:BitmapData = new BitmapData(target.width, target.height);
tBitData.draw(target);
…

Ratha Hin
- 37
- 1
- 6
1
vote
1 answer
Resizing a Bitmap manually
We are using a camera that acquires up to 60 frames per second, providing Bitmaps for us to use in our codebase.
As our wpf-app requires, these bitmaps are scaled based on a scaling factor; That scaling-process is by far the most limiting factor…

sir_photch
- 25
- 6
1
vote
1 answer
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.
What am I doing wrong?
private function…

George
- 11
- 1
- 2
1
vote
3 answers
bitmap data api, .draw from transformed sprite
I'm using the bitmap data api to to allow a user to capture an image with their webcam, edit this and save this to their hardrive.
I've successfully managed to crop the bitmap data using a transform matrix, the problem though is that any…

dg85
- 490
- 2
- 7
- 21
1
vote
1 answer
Actionscript 3: getColorBoundsRect
I have a question. I have a BitmapData with 2 red circles. I want to find the rectangle area or each circle. If i use [B]getColorBoundsRect[/B] I get the smallest area enclosed by the 2 circles.
How can i go about this and get individual area of the…

Stii
- 37
- 4