
Getting the RGB data as an array out of Bitmap
I'd like to do some bitmap manipulation and want to get a pointer of the
start byte of the bitmap RGB data. However, the Bitmap
(System.Drawing.Bitmap) object only allows
me to get the RGB values at a particular coordinate instead of giving me the
whole array of bitmap data.
Is there any way to work around it? One way I can think of is to get the
first pixel's RGB data and then get the address of the B data byte, which
should be the ever first byte of the RGB data, if the RGB data are stored in
the same way as a bitmap file.
Please help. Thanks very much.
Yawen