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

How to create and retrieve new bitmap in iOS

I would like to convert an Image from one format(.png) to other image format (.img format). I was able to retrieve and modify the rgba values for the same image format.Is there any additional thing I need to do to convert it to other image…
Ram
  • 1,872
  • 5
  • 31
  • 54
1
vote
1 answer

Screendump from within Actionscript 3.0 is it possible or?

We have Bitmap and Bitmapdata objects now. And when using the webcam, we can get raw-pixeldata output from it. But, can we get raw-pixeldata from the "stage" or "swf" object somehow? I would like to use this to make "small thumbnails" of certain…
BerggreenDK
  • 4,915
  • 9
  • 39
  • 61
1
vote
2 answers

AS3 - looping through movieclips and rasterizing them to bitmapdatas - how to be sure frames are ready?

this is a newer version to a question i have asked before but have not received an answer to. I am developing a mobile AIR app with many animations and tests have shown that using bitmaps and GPU rendering give the best performance across all mobile…
Saariko
  • 502
  • 6
  • 21
1
vote
0 answers

CopyPixels/MergeAlpha changes color AS3

I am making a smudge kind of tool. I use following method - 1) draw circle on a brushAlpha (bitmapData). 2)_orignalData.copyPixels(_orignalData, new Rectangle(oldMouseX, oldMouseY, diameter, diameter), …
San
  • 109
  • 1
  • 1
  • 7
1
vote
2 answers

Can the Scan0 or Stride of a BitmapData change over a period of time?

I'm using a BitmapData object aquired using Bitmap.LockBits to read and write pixel data quickly. The functionality is encapsulated in a class. Can I store refs to the Scan0 and Stride of a BitmapData object or should I read it every time I need to…
Robin Rodricks
  • 110,798
  • 141
  • 398
  • 607
1
vote
0 answers

AS3 BitmapData threshold(): replace color that has an alpha?

Hi I would like to replace a specific color in a bitmap with another one. The BitmapData.threshold() function works fine if the threshold color value has no alpha. var threshold:uint = 0xFF004d5e; // this works, however if I use this 0x37004d5e,…
Martin K
  • 765
  • 1
  • 6
  • 15
1
vote
2 answers

AS3 - Find the most abundant pixel colour in BitmapData

Basically, I want to get the most common ARGB value that appears in a BitmapData. That is, I want to know which exact pixel colour is the most abundant in the image. I tried going through every pixel of the image and counting whenever a colour that…
puggsoy
  • 1,270
  • 1
  • 11
  • 34
1
vote
0 answers

Setting hires bitmapData gets delay on ipad

I have two images with two resolutions: HD(2500x1500px) & LD. I use LD in preview and HD in detailed view. When project loading, it stores loaded BitmapData into system memory as a bitmapData variables(lowres & hires as BitmapData). But when i call…
1
vote
2 answers

Access Violation Using BitmapData in Image Mask Function

I wrote a version of this function which takes a grayscale bitmap as a mask and a source bitmap and outputs a bitmap with the mask applied using SetPixel and GetPixel but it was very slow, so instead I tried to write one using BitmapData and pointer…
Ell
  • 4,238
  • 6
  • 34
  • 60
1
vote
3 answers

How to take a screencap of a SWF and download it to user's desktop with AS3?

Does anyone know how to take a screencap and download it to desktop in AS3? I know there is a great BitmapDataExporter in AS2 by Mario Klingenman but it doesn't work in AS3.
picardo
  • 24,530
  • 33
  • 104
  • 151
1
vote
1 answer

Strange Artifacts on Edge of Blended Gradient in AIR

UPDATE It appears this happens with any blendmode - not just erase I've been working on a crude lighting engine for a game of mine in Adobe AIR, written in pure AS3. How it works is there is a bitmap data the size of the screen, and at the beginning…
Pinpickle
  • 984
  • 2
  • 9
  • 18
1
vote
1 answer

How to get one MovieClip from several external SWFs. AS2

That is my question. I have many swf files with AS2 inside and I know that all of them has MovieClip named "viewport". So, I need to print all frames from these MovieClips. I tried to do this with printjob class, but function my_pj.addPage(...)…
1
vote
1 answer

Is it possible to add a movieclip over a bitmap of StageWebView

I want to add a simple spinnerloader(movieclip) over a StageWebView html page for that i converted StageWebView page to bitmap but that didnt work please help me to solve this problem var webView:StageWebView = new StageWebView(); var…
Pabo Koha
  • 13
  • 1
  • 4
1
vote
1 answer

Actionscript 3 bitmapdata.draw with a brush using matrix

I'm writing a paint program that uses shape brushes to draw by using the matrix function. Everything works well aside from the fact that it's not smooth at all. There will be gaps in the painting if the mouse is moved at a high speed. I've looked…
Zangy
  • 11
  • 1
1
vote
1 answer

AS3 Bitmapdata Canvas spritesheet loader help needed

I'm very new to AS3 and I don't really know all of the basic syntax yet, even though I read through some guides every day. I am using this bitmapdata canvas to load spritesheets onto a canvas, and using a foor loop, I've tried to get the map to…
Bob
  • 15
  • 3