lockbits

Why do my images seem to be in the format of Bgra instead of Argb?

So, I am very confused over a quick test that I just ran. I am doing some image processing in C#. Get/SetPixel() have proven to be too slow, so I am using LockBits to get at the raw data. However, I seem to have hit a situation which I can't figure out. While scanning the image, it seems that each pixel is laid out as Bgra, that is...

C# Lockbits for more exotic PixelFormats

I'm writing a performance critical class in C# for image manipulation. I'm using LockBits to gain access to the actual data directly and all is working well but I'd like to get more info on the memory signature of certain PixelFormats, most notably Imaging.PixelFormat.Format32bppPArgb. Anyone know a reliable website somewhere which list...

Are Bitmap.LockBits and Graphics.FromImage combinable in C#

Can you combine the methods of Bitmap.LockBits and Graphics.FromImage, or in other words if I have a bitmap "bmp" and I want to edit the bitmap with a Graphics-object g, are the changes visible in the byte-array of the BitmapData.Scan0: Bitmap bmp = new Bitmap(200,200); Graphics g = Graphics.FromImage(bmp); bmp.LockBits(new Rectangle(0,...

LockBits image rotation method not working?

Hey all. I resorted to using LockBits for 2d bitmap image rotation after getting fed up with the slow performance and wacky behavior of both Get/Set Pixel, and RotateTransfom. So here is the code I've come up with, and by my reckoning, it should work perfectly. It doesn't. private static void InternalRotateImage(Bitmap originalBitmap, B...