private static extern int StretchDIBits(IntPtr hdc, int XDest, int YDest, int nDestWidth, int nDestHeight, int XSrc, int Ysrc, int nSrcWidth, int nSrcHeight, IntPtr lpBits, IntPtr lpBitsInfo, uint iUsage, uint dwRop);
这么做不行吗?
这么做不行吗?
[StructLayout(LayoutKind.Sequential)]
public struct BITMAPINFO {
BITMAPINFOHEADER bmiHeader;
RGBQUAD bmiColors[1];
} 取得时,通过lpBitsInfo 从内存中拷贝出来
BITMAPINFOHEADER 和RGBQUAD 也都是结构体……