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
2
votes
1 answer

JPGEncoder Freezing App

I'm creating a iOS and Android application in Flash Builder that uses the JPGEncoder function to convert the taken image from the device to a bytearray but in iOS my app freezes and in Android the screen goes black for a minute or so and then…
Destiny Dawn
  • 1,457
  • 3
  • 15
  • 29
2
votes
1 answer

Bug while using bitmapdata.draw() AS3

I searched and tried many things to get this bug fixed. I have this following code for iOS. import flash.media.CameraRoll; //import flash.events.MediaEvent; import flash.events.Event; import flash.events.ErrorEvent; stop(); var IMAGE_URL:String =…
Nicolas Sleiman
  • 124
  • 1
  • 8
2
votes
1 answer

How to use Flash BitmapData to scale up a image without losing the quality?

I'm trying scale up an image in Flash without making it pixelated, I know that I will loose some quality by scaling up, but i'm not trying to scale 6 times bigger or something :) I tried to use matrix and scale, but the quality is just bad... is…
shibbydoo
  • 569
  • 4
  • 18
  • 32
2
votes
0 answers

Game developing in flex: performance issue drawing many scaled bitmaps

I have developed an action game with Flex 4.6.0 and I am having an issue with the drawing part. Actually, during a few days, I thought the problem was the calculation on the physics part, but after a lot of optimizations, I am sure I have a drawing…
2
votes
1 answer

AS3 bitmapData on nextframe();

not a coder so struggling a little here: Trying to draw current frame in the next frame as a bitmap for cpu efficiency. In AS2 this code works like a charm: import flash.display.*; // # create the bitmap var tBitmapData = new BitmapData(400, 200,…
2
votes
0 answers

AIR BitmapData.draw slow

I am working with large bitmapdata that I need to resize, doing some test I realized that the same code runs tooooo slow in AIR. This is the code: import flash.display.BitmapData; import flash.geom.Matrix; import flash.display.Bitmap; import…
xperiments
  • 106
  • 3
2
votes
2 answers

How to assign one IntPtr to other IntPtr

I'm trying work with BitmapData class? and have some problems with assigning IntPtr value to the BitmapData.Scan0 property. Here is my code: var data = bmp.LockBits(new rectangle(Point.Empty, bmp.Size), ImageLockMode.ReadWrite,…
Alex Sabaka
  • 429
  • 1
  • 5
  • 10
2
votes
1 answer

AS3 BitmapData memory leaks

This is simple test on AS3 for BitmapData memory allocation. private function memoryTest(): void { trace("BitmapData memory test. Create bmps..."); // First breakpoint var bmps:Array = new Array (1000); for (var i:int=0; i<1000; i++) { …
Eugene
  • 23
  • 4
2
votes
2 answers

AS3 bitmapdata.draw without adding to display list/ Stage

I want to be able to cahce HTML text as bitmap, for use in AlivePDF. My testing works well with TextArea or if the component is on the Stage or visible. But I want to be able to crunch text blocks that dont necessarily sit on screen. Does anyone…
Lex
  • 4,749
  • 3
  • 45
  • 66
2
votes
1 answer

AS3: ByteArray and BitmapData

I'm doing a simple test. I want to write BitmapData into a ByteArray. I'm trying to do this with writeObject() and readObject(). Read object seems to have trouble making sense of the BitmapData. var byteArray : ByteArray = new ByteArray(); var…
grey
  • 1,150
  • 1
  • 19
  • 35
2
votes
2 answers

Working with bitmaps to a ZPL label printer

Dim bitmapFilePath As String = imagepath here... Dim bitmapFileData As Byte() = System.IO.File.ReadAllBytes(bitmapFilePath) Dim fileSize As Integer = bitmapFileData.Length Dim bitmapDataOffset As Integer = 0 Dim width As Integer…
Calvin
  • 710
  • 1
  • 10
  • 28
2
votes
2 answers

AS3 - Most efficient method of refreshing a bitmap

I have this function within a class that creates a bitmap of any DisplayObject I pass in. As you will see, each time I create a new bitmap I am creating a new BitmapData object and a new Bitmap Object. Is there a way to tweak this function so I no…
crooksy88
  • 3,849
  • 1
  • 24
  • 30
2
votes
3 answers

Why can't I have 120,000x120,000 px BitmapData in Flash Player 11 on OS X Lion x64?

Doc says: Starting with AIR 3 and Flash player 11, the size limits for a BitmapData object have been removed. The maximum size of a bitmap is now dependent on the operating system. But, why can't I have 120,000 x 120,000 px BitmapData object? I'm on…
Aleksandr Makov
  • 2,820
  • 3
  • 37
  • 62
1
vote
3 answers

Declaring large character array in c++

I am trying right now to declare a large character array. I am using the character array as a bitmap (as in a map of booleans, not the image file type). The following code generates a compilation error. //This is code before main. I want these as…
order
  • 335
  • 1
  • 7
  • 14
1
vote
2 answers

image with external interface

I need to send a picture to flash with external interface (as3)... can not be an url because don't have connection... I'm trying open the image file and send to flash like text but without success any idea?
Leo