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

Blackberry: how to flip a Bitmap upside down?

How to flip a Bitmap upside down? (I need this for loading an OpenGL texture in another program). Here is my failed try: stripe.png (courtesy of Pitr@OpenClipart): Flip.java: import net.rim.device.api.system.*; import…
Alexander Farber
  • 21,519
  • 75
  • 241
  • 416
2
votes
2 answers

AS3/Flex: Improving slow performance of drawing Application using BitmapData.draw()

I am using a custom Flex skin to create an active blur/frosted glass effect on the background of floating Panels, TitleWindows, and other containers (similar to http://www.pixelfumes.com/blog/apr07/activeBlurClass.html). There is a background image…
Jordan
  • 391
  • 4
  • 12
2
votes
2 answers

Applying blur filter to BitmapData

Here's the code I am using to blur an image using BitmapData. The function is called on a Slider_changeHandler(event:Event):voidevent and the value of the slider is passed to the function as blurvalue. The problem is the function works but seems to…
redGREENblue
  • 3,076
  • 8
  • 39
  • 57
2
votes
0 answers

Handling several Bitmaps on Android

I'm building an android app that basically answer to touch events, when a touch event occurs I detect which action to perform and act upon it. The actions consists of display different bitmaps, so an action is, in fact, an animation: - OnTouchEvent…
user361526
  • 3,333
  • 5
  • 25
  • 36
2
votes
1 answer

Clipping an ImageSnapshot in Flex

I'm using the ImageSnapshot.captureImage() method to screen capture a map image which is 2305 pixels high and 1134 pixels wide. I'm then trying to clip that image to one which is 1100 pixels high and 775 pixels wide. public function…
DrBacchus
  • 53
  • 3
2
votes
4 answers

How to cut a Shape out of BitmapData?

I have a filled Shape, and a BitmapData that is the same width and height as the Shape's bounding box. I need to cut the Shape from the BitmapData (basically draw the BitmapData onto the shape...) [like so: https://i.stack.imgur.com/VhdAm.png] I…
Eli Lipsitz
  • 531
  • 1
  • 7
  • 19
2
votes
3 answers

AS3 PNG Encoder?

Is there a way to encode bitmap data into PNG for use with a FileReference.Save() method in AS3? I assume I need an encoder library. Where can I get a library that encode BitpmapData into PNG?
Moshe
  • 57,511
  • 78
  • 272
  • 425
2
votes
0 answers

Chrome Performance Issue With Bitmap Area Sampling Effect (JavaScript)

I am writing an HTML5 game using the engine Phaser, in which I am implementing what are essentially live backgrounds, backgrounds that respond to the movements of the game objects. The first I am working with is a water ripple effect that uses area…
Rammschnev
  • 199
  • 1
  • 11
2
votes
1 answer

Custom filter bank is not generating the expected output

Please, refer to this article. I have implemented the section 4.1 (Pre-processing). The preprocessing step aims to enhance image features along a set of chosen directions. First, image is grey-scaled and filtered with a sharpening filter (we…
user366312
  • 16,949
  • 65
  • 235
  • 452
2
votes
1 answer

Drawing a Bitmap onto another produces a distorted image

I am using a custom class to write an image onto another image of bigger size. Here is the full source code in DotNetFiddle. My custom GetPixel() works fine. But the following SetPixel() is unable to produce the proper output. Probably, there has…
user366312
  • 16,949
  • 65
  • 235
  • 452
2
votes
2 answers

using BitmapData.draw() on a streaming (RTMP) .f4v with OSMF

I am trying to use BitmapData.draw() on a video object, but using the OSMF framework. My hosting service has set up the following so that I can access my rtmp video: / Simplified code is as…
redconservatory
  • 21,438
  • 40
  • 120
  • 189
2
votes
2 answers

How to copyPixels() on AS3 from a huge BitmapData?

I need to load a very big image on AS3 (currently sized at 8192x8192). I am aware that it does not fit any of the limits imposed by Flash regarding drawing to screen or creating a BitmapData of that size. I just want to load the image so I can…
2
votes
0 answers

Accessing Bitmap of CIImage or CGImage besides CGContextDrawImage

I would like to get the RGB (actually, the image provided has been grey-scaled, so grey-scale information would be sufficient) values of the individual pixels of a CIImage. I currently have the following code: // // Conversion of CIImage to…
mercator
  • 99
  • 1
  • 10
2
votes
1 answer

Create an image from raw pixels, but color is not able to displayed according byRGBA hex value

let colorSpace = CGColorSpaceCreateDeviceRGB() let bitmapInfo = CGBitmapInfo(rawValue: CGBitmapInfo.ByteOrder32Big.rawValue | CGImageAlphaInfo.PremultipliedLast.rawValue) let bitmap = CGBitmapContextCreate(nil, 192, 192, 8, 0,…
shixiaoz
  • 73
  • 1
  • 7
2
votes
1 answer

How to do this FadeOut Effect with openGL on iPhone?

I'm playing around with the GLPaint Example from Apple. But I don't know how to create an effect which fades the already drawn stuff out. I created an example in Flash which shows the effect I'm looking…
Raphael
  • 3,846
  • 1
  • 28
  • 28