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

Saving 32-bit Unsigned Byte Array to File System

I am trying to save a byte array (of an image) to the file system using C# and it isn't working using either method I have tried, here is code sample 1: string path = @"c:\ppd" + g.ToString() + ".jpg"; using (MemoryStream inputStream = new…
Shaine Fisher
  • 315
  • 1
  • 3
  • 20
-1
votes
2 answers

Replace Color Gradient In Transparent Image

I have small function which will recolor pixels in a Bitmap from a given color to a new given color. The problems I have with the code are as follows: 1) The function gives results which are remapping white pixels which should not be concidered…
Jay
  • 3,276
  • 1
  • 28
  • 38
-1
votes
2 answers

Getting FATAL EXCEPTION at Bitmap

I am getting FATAL EXCEPTION while trying to draw image using ImageView after taking that image using mobile camera.But i am getting exception while creating image using Bitmap. Code:: public class MMS extends Activity implements OnClickListener…
KCRaju
  • 544
  • 3
  • 7
  • 21
-1
votes
1 answer

BitmapData pattern fill in actionscript 3.0

How do i fill some BitmapData image with other image pattern in as 3.0? For example, i have an white image with black square at the center which would be "square:BitmapData" and the other image with little(2x2) blue circle which i would call…
-2
votes
2 answers

Which would you prefer for a function's input? Flex's DisplayObject or Flex's BitmapData?

I am in this situation where I need to select a Flex type (image placeholder/image type/image container) for passing parameters in/out of different functions in an image editor. And, those different functions are either another…
Gary Tsui
  • 1,755
  • 14
  • 18
-3
votes
1 answer

Keeping track of array using Bit maps

I have an array of size 10 I want to keep track of the free space in the array and i was told bitmap is a better option. For e.g index 2 and 3 is empty, i could record bit 0 at index 2 and 3 in the bitmap How do i create a bitmap of size 10 with…
-4
votes
1 answer

unsafe code explanation

private static Complex[,] FromBitmapData(BitmapData _BitmapData) { if (_BitmapData.PixelFormat != PixelFormat.Format8bppIndexed) { throw new Exception("Source can be grayscale (8bpp indexed)…
user366312
  • 16,949
  • 65
  • 235
  • 452
1 2 3
27
28