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
2 answers

AS3 - Comparing BitmapDatas, fastest method?

Right, so let's say I want to compare two BitmapDatas. One is an image of a background (not solid, it has varying pixels), and another is of something (like a sprite) on top of the exact same background. Now what I want to do is remove the…
puggsoy
  • 1,270
  • 1
  • 11
  • 34
1
vote
1 answer

AS3 - Finding the highest y-coordinate for a given x-coordinate in BitmapData?

I'm making a platformer. Here is what I have so far: http://megaswf.com/s/2486396 (move around and jump with arrowkeys). I'm using the ground's bitmap data to test collisions with the player's coordinates, and the player is sinking into the ground a…
1
vote
0 answers

flex : Bitmapdata.draw on a VGroup is printing blank

I'm looking to draw a VGroup (that contains several elements like other groups and images) into a BitmapData, then to encode it into a ByteArray and to send this via a POST. I'm using widgets, lets say my VGroup is built by a widget A and I get it…
adil02
  • 61
  • 1
  • 1
  • 3
1
vote
0 answers

as3 detect collision of a sprite with letters inside a page of text

I would like to use bitmapdata to detect collision of a sprite with letters inside a page of text. I have tried to do it with getPixels and test for the color but it seems that it's not accurate enough. I don't try hit test collision with bitmapdata…
1
vote
2 answers

AS3 BitmapData CopyPixels with alpha

I am trying to copy the pixels of a bitmap into BitmapData at a transparency of lets say .5 but i can't seem to find any reference to this anywhere on google or here! i have my standard copy pixel…
rorypicko
  • 4,194
  • 3
  • 26
  • 43
1
vote
2 answers

AS3/AIR - Saving an extremely large image to PNG

I'm making a program for myself that can open unarranged sprite sheets, arrange them according to an XML file, and then save them as PNGs. What it does is it loads the unarranged sheet and puts it in a BitmapData, then according to a specific XML…
puggsoy
  • 1,270
  • 1
  • 11
  • 34
1
vote
2 answers

Is there a faster way to check BitmapData.getPixel32() using AS3?

I am using the conventional way to check if a random/single pixel on a transparent bitmap is non-zero, using bitmapData.getPixel32(x,y)!=0 But is there a faster way to do this, since this is kinda performance heavy. I think there must be a way to do…
tversteeg
  • 4,717
  • 10
  • 42
  • 77
1
vote
1 answer

BitmapData with Scale9Grid

I have a Skin for SkinnableContainer. Skin contains only the original contentGroup and s:BitmapImage as background. Background image stretchers out according to width and height content. The used image is .png with transparent regions. To create…
RezavejT
  • 11
  • 1
  • 4
1
vote
3 answers

Search approach for location based search

I need to implement a locality based search feature where users would be able to choose a city and locality(within the city) , proceed to mention a keyword and click on search . So say we have 10 cities with an average of 100 localities in each .…
Varun Jain
  • 1,901
  • 7
  • 33
  • 66
1
vote
2 answers

How to bind data from BitmapData to WPF Image Control?

I'm using MVVM and in my ViewModel I've got some BitmapData collections. I want them to appear in my View as Images through data binding. How can I do that? Solution: [ValueConversion(typeof(BitmapData), typeof(ImageSource))] public class…
jacek11
  • 97
  • 3
  • 13
1
vote
1 answer

Manipulate pixels of NSImage in Cocoa

I would like to modify the color of NSImage pixels based on some variables without using too much toolkit dependent libraries (eg: CIImage). So that later on I can just focus on the pixels manipulation algorithms and keep them platform…
Nuthinking
  • 1,211
  • 2
  • 13
  • 32
1
vote
1 answer

AS3: is it required to call BitmapData.dispose()?

Is it required to call BitmapData.dispose() for every BitmapData that one wants to have removed from memory completely, or does that buffer get freed anyway as soon as the BitmapData object gets garbage collected?
Mat
  • 4,281
  • 9
  • 44
  • 66
1
vote
0 answers

Generate transparent JPEG with alphamap RAM usage issue

I generate a transparent bitmap in flash with two jpegs. One is black and white for reading the BitmapDataChannel and the other picture is the actual image. this is my code: private var sourceBitmap:BitmapData; private var…
WolvDev
  • 3,182
  • 1
  • 17
  • 32
1
vote
1 answer

AS3 - Image smoothing

How to add smoothing to an image taken from a BitmapData array? My code: con.addChild(new Bitmap(myImage[0])) Thanks. Uli
Uli
  • 2,625
  • 10
  • 46
  • 71
1
vote
3 answers

Save original bitmapData from scaled video in AS3

I have a flash photo booth (web cam) application that I'm trying to wrap up but seem to be having issues trying to save a 640x480 image from a scaled down video window. The video seems to be scaling down fine but when I draw it to a bitmap it's…
bfritz
  • 2,416
  • 2
  • 20
  • 29