Hi,
1. Read an image as Bitmap.
2. Call the Bitmap.LockBits(...) method.
3. Check the Bitmap.PixelFormat
4. Read the Bitmap.Scan0 unsafe or safe by MarshalCopy(...)
Read the .NET docs or MSDN for more details.
HTH
Marcin
Ananas napisał(a):
> Hi,
>
> I need to open an image and pass it to another unit as a Raw Image Data
> (etc. it is an array of bytes with length equals
> ImageWidth*ImagehHeigth*3 for 24bit per pixel format, image looks
> RGBRGBRGB...RGB).
>
> How to make it fast?
>
> Thanks in advise,
> Eugene.
>
|