如何在c#中调用c++中的 StretchDIBits 函数
最近在做一个桌面抓屏程序,要用到StretchDIBits这个函数,函数原型为
int StretchDIBits(HDC hdc, int XDest , int YDest , int nDestWidth, int nDestHeight, int XSrc, int Ysrc, int nSrcWidth, int nSrcHeight, CONST VOID *lpBits, CONST BITMAPINFO * lpBitsInfo, UINT iUsage, DWORD dwRop);
现在想在c#中调用这个函数,
[DllImport("gdi32.dll")]
unsafe private static extern int StretchDIBits(IntPtr hdcDest,int xDest,int yDest,int nDestWidth,int nDestHeight,int XSrc,int YSrc,int nSrcWidth,int nSrcHeight,void* lpBits,(),(),(),());
想请教各位大侠,C#中这个函数如何补全,谢谢