Questions tagged [bitmapdata]

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.

412 questions
1
vote
1 answer

Flex 3 Trying to add a diagonal image to fields on a grid

here is the existing chunk of code: if (status != FlexFieldInfo.EDITABLE) { setToolTip(uiComponent, status, entityForm); graphics.beginFill(0xFFABC0); graphics.drawRect(0, 0, unscaledWidth, unscaledHeight); …
1
vote
1 answer

Actionscript: How to remove a filter from BitmapData

I've added a black and white filter onto an image using the following code: var n:Number = 1/3; var matrix:Array = [n,n,n,0,0, n,n,n,0,0, n,n,n,0,0, 0,0,0,1,0]; var cmf:ColorMatrixFilter =…
John Lilley
  • 159
  • 1
  • 3
  • 13
1
vote
2 answers

Draw text on BitmapData in Flex

Well, the problem may be a simple one but I can't figure it out. I have an image loaded into BitmapData. now I want to take text from a textinput and put it on the BitmapData. Basically it's drawing a text on the BitmapData and get the result as…
redGREENblue
  • 3,076
  • 8
  • 39
  • 57
1
vote
3 answers

How to show a Bitmap which is only a portion of its BitmapData in AS3?

I am writing a screen scroller for a game I'm making. There's a BitmapData object which holds the background graphic, yet I do not want to show/render it on screen all at once. For example, I want to show only a 500x500 section of the data but the…
ShayDavidson
  • 717
  • 1
  • 7
  • 20
1
vote
1 answer

Some questions regarding Image manipulation in Flex

Here's what I want to do. An image is loaded by default when the app is run. There is a way to load another image the user wants by specifying an url. When the user defined image is loaded, the default image is still in the background and there are…
redGREENblue
  • 3,076
  • 8
  • 39
  • 57
1
vote
2 answers

Advanced Image cropping and image resizing in Flex

I have created a image cropping tool in flex using core copyPixel method. croppedBitmapData.copyPixels(croppedBitmapData, clipCan, new Point(0, 0)); I have to crope area of dementions 20*20 and show this cropped area in an image of demention…
Murtaza
  • 11
  • 4
1
vote
1 answer

detecting color for a golf game to know that the ball is on the green, etc

Honestly my question may have been answered but I don't have a college degree and only understand basic math and some algebra. I do have a lot of experience coding in as3 and animate and have read alot of answers and questions so far but I'm still…
1
vote
2 answers

How do I set a certain color to be transparent?

I'm using copyPixels to copy a parts of a larger Bitmap to smaller Bitmaps to use for individual MovieClips. However, around there is still some extra space white space and corners around the Bitmaps' edges left over. How do I set the color white in…
user547414
1
vote
4 answers

in AS3, Drawing TextField into BitmapData get a bad effect when parent get moved ( changing x, y )?

having a problem while drawing a complex combinations of TextFields into BitmapData in as3, and i can't understand the reason for that, so please help me with it. The problem happens when i change the parent's (x,y) or (width, height) and the drawn…
Ayman
  • 95
  • 2
  • 10
1
vote
4 answers

As3 gotoAndStop multiple calls in one enter frame

I am trying to make sprite sheets for rotation of DisplayObjects, and it seems that the gotoAndStop() calls are not working. Here's an example of what's going on: function createRotationalSpriteSheet ( displayObject : DisplayObject ) { …
Jordan
  • 1,233
  • 2
  • 12
  • 32
1
vote
1 answer

Color to Monochrome conversion

See: Save a 32-bit Bitmap as 1-bit .bmp file in C# Listing #1 public static Bitmap BitmapTo1Bpp(Bitmap source) { int Width = source.Width; int Height = source.Height; Bitmap dest = new Bitmap(Width, Height,…
user366312
  • 16,949
  • 65
  • 235
  • 452
1
vote
1 answer

Printing bitmap in C

I am trying to create a bitmap of 100 1s and 0s. Below is what i came out so far.. I having issue printing the bitmap or rather i do not know how to print the bitmap. I want to display the bitmap that consist of all the 1 and 0 that i had set. for…
user9475328
1
vote
2 answers

Save bitmap to file has zero in image size field

I find when I use the Bitmap.Save method with format ImageFormat.Bmp that the bitmap header info in the file has zero in the biSizeImage field. From what I can see this is ok according to the specs, but unfortunately the crappy embedded device I am…
user380689
  • 1,766
  • 4
  • 26
  • 39
1
vote
1 answer

Simulating a disabled wmode

Im running into a trouble here. Here's the thing, I'm making a flash game that uses some pixel techniques like copypixels, bitmapdata, etc. Im planning to offer the game to FGL (Flash Game License) and I read that they doesn't not allow wmode, and…
Artemix
  • 8,497
  • 14
  • 48
  • 75
1
vote
1 answer

Can't use GDI+. Can a line be drawn on a bitmap using Windows API call?

We have an app written in C++ 6 that fills in blank polygons on a traffic map to show current traffic conditions. Green for good, yellow more congested, etc. The "shell maps" are bitmaps of the roadways using rectangles and polygons that have…
netcat
  • 1,281
  • 1
  • 11
  • 21