在net中如何调用Win32 API : GetBitmapBits
1、 在net中如何调用GetBitmapBits?我试过n次都出错。
2、 另外,想请问一下通过GetBitMapBits取得的一个位图的颜色信息与我直接通过IO操作取得该位图文件的流的字节数组是否是一样的?
--------------------------
GetBitmapBits的定义如下:
LONG GetBitmapBits(
HBITMAP hbmp, // handle to bitmap
LONG cbBuffer, // number of bytes to copy
LPVOID lpvBits // buffer to receive bits
);
Parameters
hbmp
[in] Handle to the device-dependent bitmap.
cbBuffer
[in] Specifies the number of bytes to copy from the bitmap into the buffer.
lpvBits
[out] Pointer to a buffer to receive the bitmap bits. The bits are stored as an array of byte values.
---------------------------