using KGIS.Plugin.LayerProperty.Model; using System; using System.Collections.Generic; using System.Linq; using System.Runtime.InteropServices; using System.Text; using System.Threading.Tasks; namespace KGIS.Plugin.LayerProperty.Utils { public class GDI32 { [DllImport("GDI32.dll")] public static extern bool BitBlt(int hdcDest, int nXDest, int nYDest, int nWidth, int nHeight, int hdcSrc, int nXSrc, int nYSrc, int dwRop); [DllImport("GDI32.dll")] public static extern int CreateCompatibleBitmap(int hdc, int nWidth, int nHeight); [DllImport("GDI32.dll")] public static extern int CreateCompatibleDC(int hdc); [DllImport("GDI32.dll")] public static extern bool DeleteDC(int hdc); [DllImport("GDI32.dll")] public static extern bool DeleteObject(int hObject); [DllImport("GDI32.dll")] public static extern int GetDeviceCaps(int hdc, int nIndex); [DllImport("GDI32.dll")] public static extern int SelectObject(int hdc, int hgdiobj); [DllImport("GDI32.dll")] public static extern int SetStretchBltMode(int hDC, int nStretchMode); [DllImport("GDI32.dll")] public static extern int CreateSolidBrush(int crColor); [DllImport("GDI32.dll")] public static extern int GetWindowExtEx(int hDC, ref SIZE lpSize); [DllImport("GDI32.dll")] public static extern int GetViewportExtEx(int hDC, ref SIZE lpSize); [DllImport("GDI32.dll")] public static extern int GetMapMode(int hDC); [DllImport("GDI32.dll")] public static extern int LPtoDP(int hDC, ref POINTAPI lpPoint, int nCOunt); [DllImport("GDI32.dll")] public static extern int CreateDIBSection(int hDC, ref BITMAPINFO pBitmapInfo, int un, int lplpVoid, int handle, int dw); } }