<PackageReference Include="System.Drawing.Common" Version="9.0.10" />

PInvoke

static class PInvoke
using System; using System.CodeDom.Compiler; using System.Drawing; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using Windows.Win32.Foundation; using Windows.Win32.Graphics.Gdi; using Windows.Win32.Graphics.GdiPlus; using Windows.Win32.Storage.Xps; using Windows.Win32.System.Com; using Windows.Win32.UI.Shell; using Windows.Win32.UI.WindowsAndMessaging; namespace Windows.Win32 { [GeneratedCode("Microsoft.Windows.CsWin32", "0.3.106+a37a0b4b70")] internal static class PInvoke { internal static readonly Guid BlurEffectGuid; internal static readonly Guid BrightnessContrastEffectGuid; internal const uint CHECKJPEGFORMAT = 4119; internal const uint CHECKPNGFORMAT = 4120; internal static readonly Guid ColorBalanceEffectGuid; internal static readonly Guid ColorCurveEffectGuid; internal static readonly Guid ColorLUTEffectGuid; internal static readonly Guid ColorMatrixEffectGuid; internal const uint DMBIN_UPPER = 1; internal const uint DMBIN_ONLYONE = 1; internal const uint DMBIN_LOWER = 2; internal const uint DMBIN_MIDDLE = 3; internal const uint DMBIN_MANUAL = 4; internal const uint DMBIN_ENVELOPE = 5; internal const uint DMBIN_ENVMANUAL = 6; internal const uint DMBIN_AUTO = 7; internal const uint DMBIN_TRACTOR = 8; internal const uint DMBIN_SMALLFMT = 9; internal const uint DMBIN_LARGEFMT = 10; internal const uint DMBIN_LARGECAPACITY = 11; internal const uint DMBIN_CASSETTE = 14; internal const uint DMBIN_FORMSOURCE = 15; internal const uint DMBIN_LAST = 15; internal const uint DMBIN_USER = 256; internal const uint DMPAPER_LETTER = 1; internal const uint DMPAPER_LETTERSMALL = 2; internal const uint DMPAPER_TABLOID = 3; internal const uint DMPAPER_LEDGER = 4; internal const uint DMPAPER_LEGAL = 5; internal const uint DMPAPER_STATEMENT = 6; internal const uint DMPAPER_EXECUTIVE = 7; internal const uint DMPAPER_A3 = 8; internal const uint DMPAPER_A4 = 9; internal const uint DMPAPER_A4SMALL = 10; internal const uint DMPAPER_A5 = 11; internal const uint DMPAPER_B4 = 12; internal const uint DMPAPER_B5 = 13; internal const uint DMPAPER_FOLIO = 14; internal const uint DMPAPER_QUARTO = 15; internal const uint DMPAPER_10X14 = 16; internal const uint DMPAPER_11X17 = 17; internal const uint DMPAPER_NOTE = 18; internal const uint DMPAPER_ENV_9 = 19; internal const uint DMPAPER_ENV_10 = 20; internal const uint DMPAPER_ENV_11 = 21; internal const uint DMPAPER_ENV_12 = 22; internal const uint DMPAPER_ENV_14 = 23; internal const uint DMPAPER_CSHEET = 24; internal const uint DMPAPER_DSHEET = 25; internal const uint DMPAPER_ESHEET = 26; internal const uint DMPAPER_ENV_DL = 27; internal const uint DMPAPER_ENV_C5 = 28; internal const uint DMPAPER_ENV_C3 = 29; internal const uint DMPAPER_ENV_C4 = 30; internal const uint DMPAPER_ENV_C6 = 31; internal const uint DMPAPER_ENV_C65 = 32; internal const uint DMPAPER_ENV_B4 = 33; internal const uint DMPAPER_ENV_B5 = 34; internal const uint DMPAPER_ENV_B6 = 35; internal const uint DMPAPER_ENV_ITALY = 36; internal const uint DMPAPER_ENV_MONARCH = 37; internal const uint DMPAPER_ENV_PERSONAL = 38; internal const uint DMPAPER_FANFOLD_US = 39; internal const uint DMPAPER_FANFOLD_STD_GERMAN = 40; internal const uint DMPAPER_FANFOLD_LGL_GERMAN = 41; internal const uint DMPAPER_ISO_B4 = 42; internal const uint DMPAPER_JAPANESE_POSTCARD = 43; internal const uint DMPAPER_9X11 = 44; internal const uint DMPAPER_10X11 = 45; internal const uint DMPAPER_15X11 = 46; internal const uint DMPAPER_ENV_INVITE = 47; internal const uint DMPAPER_RESERVED_48 = 48; internal const uint DMPAPER_RESERVED_49 = 49; internal const uint DMPAPER_LETTER_EXTRA = 50; internal const uint DMPAPER_LEGAL_EXTRA = 51; internal const uint DMPAPER_TABLOID_EXTRA = 52; internal const uint DMPAPER_A4_EXTRA = 53; internal const uint DMPAPER_LETTER_TRANSVERSE = 54; internal const uint DMPAPER_A4_TRANSVERSE = 55; internal const uint DMPAPER_LETTER_EXTRA_TRANSVERSE = 56; internal const uint DMPAPER_A_PLUS = 57; internal const uint DMPAPER_B_PLUS = 58; internal const uint DMPAPER_LETTER_PLUS = 59; internal const uint DMPAPER_A4_PLUS = 60; internal const uint DMPAPER_A5_TRANSVERSE = 61; internal const uint DMPAPER_B5_TRANSVERSE = 62; internal const uint DMPAPER_A3_EXTRA = 63; internal const uint DMPAPER_A5_EXTRA = 64; internal const uint DMPAPER_B5_EXTRA = 65; internal const uint DMPAPER_A2 = 66; internal const uint DMPAPER_A3_TRANSVERSE = 67; internal const uint DMPAPER_A3_EXTRA_TRANSVERSE = 68; internal const uint DMPAPER_DBL_JAPANESE_POSTCARD = 69; internal const uint DMPAPER_A6 = 70; internal const uint DMPAPER_JENV_KAKU2 = 71; internal const uint DMPAPER_JENV_KAKU3 = 72; internal const uint DMPAPER_JENV_CHOU3 = 73; internal const uint DMPAPER_JENV_CHOU4 = 74; internal const uint DMPAPER_LETTER_ROTATED = 75; internal const uint DMPAPER_A3_ROTATED = 76; internal const uint DMPAPER_A4_ROTATED = 77; internal const uint DMPAPER_A5_ROTATED = 78; internal const uint DMPAPER_B4_JIS_ROTATED = 79; internal const uint DMPAPER_B5_JIS_ROTATED = 80; internal const uint DMPAPER_JAPANESE_POSTCARD_ROTATED = 81; internal const uint DMPAPER_DBL_JAPANESE_POSTCARD_ROTATED = 82; internal const uint DMPAPER_A6_ROTATED = 83; internal const uint DMPAPER_JENV_KAKU2_ROTATED = 84; internal const uint DMPAPER_JENV_KAKU3_ROTATED = 85; internal const uint DMPAPER_JENV_CHOU3_ROTATED = 86; internal const uint DMPAPER_JENV_CHOU4_ROTATED = 87; internal const uint DMPAPER_B6_JIS = 88; internal const uint DMPAPER_B6_JIS_ROTATED = 89; internal const uint DMPAPER_12X11 = 90; internal const uint DMPAPER_JENV_YOU4 = 91; internal const uint DMPAPER_JENV_YOU4_ROTATED = 92; internal const uint DMPAPER_P16K = 93; internal const uint DMPAPER_P32K = 94; internal const uint DMPAPER_P32KBIG = 95; internal const uint DMPAPER_PENV_1 = 96; internal const uint DMPAPER_PENV_2 = 97; internal const uint DMPAPER_PENV_3 = 98; internal const uint DMPAPER_PENV_4 = 99; internal const uint DMPAPER_PENV_5 = 100; internal const uint DMPAPER_PENV_6 = 101; internal const uint DMPAPER_PENV_7 = 102; internal const uint DMPAPER_PENV_8 = 103; internal const uint DMPAPER_PENV_9 = 104; internal const uint DMPAPER_PENV_10 = 105; internal const uint DMPAPER_P16K_ROTATED = 106; internal const uint DMPAPER_P32K_ROTATED = 107; internal const uint DMPAPER_P32KBIG_ROTATED = 108; internal const uint DMPAPER_PENV_1_ROTATED = 109; internal const uint DMPAPER_PENV_2_ROTATED = 110; internal const uint DMPAPER_PENV_3_ROTATED = 111; internal const uint DMPAPER_PENV_4_ROTATED = 112; internal const uint DMPAPER_PENV_5_ROTATED = 113; internal const uint DMPAPER_PENV_6_ROTATED = 114; internal const uint DMPAPER_PENV_7_ROTATED = 115; internal const uint DMPAPER_PENV_8_ROTATED = 116; internal const uint DMPAPER_PENV_9_ROTATED = 117; internal const uint DMPAPER_PENV_10_ROTATED = 118; internal const uint DMPAPER_LAST = 118; internal const uint DMPAPER_USER = 256; internal const int DMRES_DRAFT = -1; internal const int DMRES_LOW = -2; internal const int DMRES_MEDIUM = -3; internal const int DMRES_HIGH = -4; internal const uint DT_PLOTTER = 0; internal const uint DT_RASDISPLAY = 1; internal const uint DT_RASPRINTER = 2; internal const uint DT_RASCAMERA = 3; internal const uint DT_CHARSTREAM = 4; internal const uint DT_METAFILE = 5; internal const uint DT_DISPFILE = 6; internal static readonly Guid HueSaturationLightnessEffectGuid; internal const uint LANG_ARABIC = 1; internal const uint LANG_JAPANESE = 17; internal static readonly Guid LevelsEffectGuid; internal const uint PRINTER_ENUM_CONNECTIONS = 4; internal const uint PRINTER_ENUM_LOCAL = 2; internal const uint QUERYESCSUPPORT = 8; internal static readonly Guid SharpenEffectGuid; internal static readonly Guid TintEffectGuid; [NullableContext(1)] internal static int AbortDoc<[Nullable(0)] T>(T hdc) where T : IHandle<HDC> { int result = AbortDoc(((IHandle<HDC>)hdc).Handle); GC.KeepAlive(((IHandle<HDC>)hdc).Wrapper); return result; } static PInvoke() { BlurEffectGuid = new Guid(1664909476, 6211, 18475, 158, 242, 190, 40, 52, 197, 253, 212); BrightnessContrastEffectGuid = new Guid(3550600161, 36548, 19479, 159, 76, 234, 151, 173, 28, 52, 61); ColorBalanceEffectGuid = new Guid(1400789373, 9502, 18650, 150, 100, 41, 202, 73, 107, 112, 248); ColorCurveEffectGuid = new Guid(3714711586, 22756, 19047, 157, 155, 212, 142, 184, 129, 165, 61); ColorLUTEffectGuid = new Guid(2815324841, 3967, 16599, 179, 204, 208, 192, 45, 92, 50, 18); ColorMatrixEffectGuid = new Guid(1905206805, 31027, 16611, 165, 17, 95, 104, 254, 20, 221, 116); HueSaturationLightnessEffectGuid = new Guid(2335037123, 60167, 19847, 165, 240, 113, 8, 226, 106, 156, 95); LevelsEffectGuid = new Guid(2579715308, 10801, 20282, 140, 52, 23, 168, 3, 179, 58, 37); SharpenEffectGuid = new Guid(1674310638, 50470, 16428, 143, 113, 98, 197, 64, 191, 81, 66); TintEffectGuid = new Guid(276279040, 10312, 17473, 148, 137, 68, 173, 76, 45, 122, 44); bool initialized = Gdip.Initialized; } [NullableContext(1)] internal static int EndDoc<[Nullable(0)] T>(T hdc) where T : IHandle<HDC> { int result = EndDoc(((IHandle<HDC>)hdc).Handle); GC.KeepAlive(((IHandle<HDC>)hdc).Wrapper); return result; } [NullableContext(1)] internal static int EndPage<[Nullable(0)] T>(T hdc) where T : IHandle<HDC> { int result = EndPage(((IHandle<HDC>)hdc).Handle); GC.KeepAlive(((IHandle<HDC>)hdc).Wrapper); return result; } [DllImport("shell32.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] public unsafe static extern HRESULT SHGetStockIconInfo(SHSTOCKICONID siid, SHGSI_FLAGS uFlags, SHSTOCKICONINFO* psii); [NullableContext(1)] internal unsafe static int StartDoc<[Nullable(0)] T>(T hdc, [In] [IsReadOnly] ref DOCINFOW lpdi) where T : IHandle<HDC> { fixed (DOCINFOW* lpdi2 = &lpdi) { int result = StartDoc(((IHandle<HDC>)hdc).Handle, lpdi2); GC.KeepAlive(((IHandle<HDC>)hdc).Wrapper); return result; } } [NullableContext(1)] internal static int StartPage<[Nullable(0)] T>(T hdc) where T : IHandle<HDC> { int result = StartPage(((IHandle<HDC>)hdc).Handle); GC.KeepAlive(((IHandle<HDC>)hdc).Wrapper); return result; } [DllImport("GDI32.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal static extern int AbortDoc(HDC hdc); [DllImport("GDI32.dll", EntryPoint = "AddFontResourceExW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal unsafe static extern int AddFontResourceEx(PCWSTR name, FONT_RESOURCE_CHARACTERISTICS fl, void* res = default(void*)); [DllImport("GDI32.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal static extern int EndDoc(HDC hdc); [DllImport("GDI32.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal static extern int EndPage(HDC hdc); [DllImport("GDI32.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal static extern int ExtEscape(HDC hdc, int iEscape, int cjInput, PCSTR lpInData, int cjOutput, PSTR lpOutData); [DllImport("GDI32.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal unsafe static extern int GetDIBits(HDC hdc, HBITMAP hbm, uint start, uint cLines, void* lpvBits = default(void*), BITMAPINFO* lpbmi, DIB_USAGE usage); [DllImport("GDI32.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal unsafe static extern HDC ResetDCW(HDC hdc, DEVMODEW* lpdm); [DllImport("GDI32.dll", EntryPoint = "StartDocW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal unsafe static extern int StartDoc(HDC hdc, DOCINFOW* lpdi); [DllImport("GDI32.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal static extern int StartPage(HDC hdc); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathArc(GpPath* path, float x, float y, float width, float height, float startAngle, float sweepAngle); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathBezier(GpPath* path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathBeziers(GpPath* path, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathBeziersI(GpPath* path, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathClosedCurve2(GpPath* path, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathClosedCurve2I(GpPath* path, Windows.Win32.Graphics.GdiPlus.Point* points, int count, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathCurve2(GpPath* path, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathCurve2I(GpPath* path, Windows.Win32.Graphics.GdiPlus.Point* points, int count, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathCurve3(GpPath* path, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, int offset, int numberOfSegments, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathCurve3I(GpPath* path, Windows.Win32.Graphics.GdiPlus.Point* points, int count, int offset, int numberOfSegments, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathEllipse(GpPath* path, float x, float y, float width, float height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathLine(GpPath* path, float x1, float y1, float x2, float y2); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathLine2(GpPath* path, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathLine2I(GpPath* path, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathPath(GpPath* path, GpPath* addingPath, BOOL connect); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathPie(GpPath* path, float x, float y, float width, float height, float startAngle, float sweepAngle); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathPolygon(GpPath* path, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathPolygonI(GpPath* path, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathRectangle(GpPath* path, float x, float y, float width, float height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathRectangles(GpPath* path, RectF* rects, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathRectanglesI(GpPath* path, Rect* rects, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathString(GpPath* path, PCWSTR string, int length, GpFontFamily* family, int style, float emSize, RectF* layoutRect, GpStringFormat* format); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBeginContainer(GpGraphics* graphics, RectF* dstrect, RectF* srcrect, Unit unit, uint* state); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBeginContainer2(GpGraphics* graphics, uint* state); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapApplyEffect(GpBitmap* bitmap, CGpEffect* effect, RECT* roi, BOOL useAuxData, void** auxData, int* auxDataSize); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapConvertFormat(GpBitmap* pInputBitmap, int format, DitherType dithertype, PaletteType palettetype, ColorPalette* palette, float alphaThresholdPercent); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapGetPixel(GpBitmap* bitmap, int x, int y, uint* color); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapSetPixel(GpBitmap* bitmap, int x, int y, uint color); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapSetResolution(GpBitmap* bitmap, float xdpi, float ydpi); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClearPathMarkers(GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneBitmapArea(float x, float y, float width, float height, int format, GpBitmap* srcBitmap, GpBitmap** dstBitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneBitmapAreaI(int x, int y, int width, int height, int format, GpBitmap* srcBitmap, GpBitmap** dstBitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneBrush(GpBrush* brush, GpBrush** cloneBrush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneCustomLineCap(GpCustomLineCap* customCap, GpCustomLineCap** clonedCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneFont(GpFont* font, GpFont** cloneFont); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneFontFamily(GpFontFamily* fontFamily, GpFontFamily** clonedFontFamily); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneImage(GpImage* image, GpImage** cloneImage); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneImageAttributes(GpImageAttributes* imageattr, GpImageAttributes** cloneImageattr); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneMatrix(Matrix* matrix, Matrix** cloneMatrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClonePath(GpPath* path, GpPath** clonePath); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClonePen(GpPen* pen, GpPen** clonepen); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneRegion(GpRegion* region, GpRegion** cloneRegion); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneStringFormat(GpStringFormat* format, GpStringFormat** newFormat); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClosePathFigure(GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClosePathFigures(GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCombineRegionPath(GpRegion* region, GpPath* path, CombineMode combineMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCombineRegionRect(GpRegion* region, RectF* rect, CombineMode combineMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCombineRegionRegion(GpRegion* region, GpRegion* region2, CombineMode combineMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipComment(GpGraphics* graphics, uint sizeData, byte* data); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateAdjustableArrowCap(float height, float width, BOOL isFilled, GpAdjustableArrowCap** cap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromFile(PCWSTR filename, GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromFileICM(PCWSTR filename, GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromGraphics(int width, int height, GpGraphics* target, GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromHICON(HICON hicon, GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromResource(HINSTANCE hInstance, PCWSTR lpBitmapName, GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromScan0(int width, int height, int stride, int format, byte* scan0 = default(byte*), GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromStream(IStream* stream, GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromStreamICM(IStream* stream, GpBitmap** bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateCachedBitmap(GpBitmap* bitmap, GpGraphics* graphics, GpCachedBitmap** cachedBitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateCustomLineCap(GpPath* fillPath, GpPath* strokePath, LineCap baseCap, float baseInset, GpCustomLineCap** customCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateEffect(Guid guid, CGpEffect** effect); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFont(GpFontFamily* fontFamily, float emSize, int style, Unit unit, GpFont** font); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFontFamilyFromName(PCWSTR name, GpFontCollection* fontCollection, GpFontFamily** fontFamily); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFontFromDC(HDC hdc, GpFont** font); [DllImport("gdiplus.dll", EntryPoint = "GdipCreateFontFromLogfontW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFontFromLogfont(HDC hdc, LOGFONTW* logfont, GpFont** font); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFromHDC(HDC hdc, GpGraphics** graphics); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics** graphics); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal static extern HPALETTE GdipCreateHalftonePalette(); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateHatchBrush(HatchStyle hatchstyle, uint forecol, uint backcol, GpHatch** brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateHICONFromBitmap(GpBitmap* bitmap, HICON* hbmReturn); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateImageAttributes(GpImageAttributes** imageattr); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateLineBrush(Windows.Win32.Graphics.GdiPlus.PointF* point1, Windows.Win32.Graphics.GdiPlus.PointF* point2, uint color1, uint color2, WrapMode wrapMode, GpLineGradient** lineGradient); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateLineBrushFromRect(RectF* rect, uint color1, uint color2, LinearGradientMode mode, WrapMode wrapMode, GpLineGradient** lineGradient); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateLineBrushFromRectWithAngle(RectF* rect, uint color1, uint color2, float angle, BOOL isAngleScalable, WrapMode wrapMode, GpLineGradient** lineGradient); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMatrix(Matrix** matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMatrix2(float m11, float m12, float m21, float m22, float dx, float dy, Matrix** matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMatrix3(RectF* rect, Windows.Win32.Graphics.GdiPlus.PointF* dstplg, Matrix** matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMatrix3I(Rect* rect, Windows.Win32.Graphics.GdiPlus.Point* dstplg, Matrix** matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMetafileFromEmf(HENHMETAFILE hEmf, BOOL deleteEmf, GpMetafile** metafile); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMetafileFromFile(PCWSTR file, GpMetafile** metafile); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMetafileFromStream(IStream* stream, GpMetafile** metafile); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMetafileFromWmf(HMETAFILE hWmf, BOOL deleteWmf, WmfPlaceableFileHeader* wmfPlaceableFileHeader, GpMetafile** metafile); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePath(FillMode brushMode, GpPath** path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePath2(Windows.Win32.Graphics.GdiPlus.PointF* param0, byte* param1, int param2, FillMode param3, GpPath** path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePath2I(Windows.Win32.Graphics.GdiPlus.Point* param0, byte* param1, int param2, FillMode param3, GpPath** path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePathGradient(Windows.Win32.Graphics.GdiPlus.PointF* points, int count, WrapMode wrapMode, GpPathGradient** polyGradient); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePathGradientFromPath(GpPath* path, GpPathGradient** polyGradient); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePathGradientI(Windows.Win32.Graphics.GdiPlus.Point* points, int count, WrapMode wrapMode, GpPathGradient** polyGradient); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePathIter(GpPathIterator** iterator, GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePen1(uint color, float width, Unit unit, GpPen** pen); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePen2(GpBrush* brush, float width, Unit unit, GpPen** pen); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegion(GpRegion** region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegionHrgn(HRGN hRgn, GpRegion** region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegionPath(GpPath* path, GpRegion** region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegionRect(RectF* rect, GpRegion** region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegionRgnData(byte* regionData, int size, GpRegion** region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateSolidFill(uint color, GpSolidFill** brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateStringFormat(int formatAttributes, ushort language, GpStringFormat** format); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateTexture(GpImage* image, WrapMode wrapmode, GpTexture** texture); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateTexture2(GpImage* image, WrapMode wrapmode, float x, float y, float width, float height, GpTexture** texture); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateTextureIA(GpImage* image, GpImageAttributes* imageAttributes, float x, float y, float width, float height, GpTexture** texture); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteBrush(GpBrush* brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteCachedBitmap(GpCachedBitmap* cachedBitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteCustomLineCap(GpCustomLineCap* customCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteEffect(CGpEffect* effect); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteFont(GpFont* font); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteFontFamily(GpFontFamily* fontFamily); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteMatrix(Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeletePath(GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeletePathIter(GpPathIterator* iterator); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeletePen(GpPen* pen); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeletePrivateFontCollection(GpFontCollection** fontCollection); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteRegion(GpRegion* region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteStringFormat(GpStringFormat* format); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDisposeImage(GpImage* image); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDisposeImageAttributes(GpImageAttributes* imageattr); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawArc(GpGraphics* graphics, GpPen* pen, float x, float y, float width, float height, float startAngle, float sweepAngle); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawBezier(GpGraphics* graphics, GpPen* pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawBeziers(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawBeziersI(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCachedBitmap(GpGraphics* graphics, GpCachedBitmap* cachedBitmap, int x, int y); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawClosedCurve(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawClosedCurve2(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawClosedCurve2I(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.Point* points, int count, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawClosedCurveI(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve2(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve2I(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.Point* points, int count, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve3(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, int offset, int numberOfSegments, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve3I(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.Point* points, int count, int offset, int numberOfSegments, float tension); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurveI(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawEllipse(GpGraphics* graphics, GpPen* pen, float x, float y, float width, float height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImage(GpGraphics* graphics, GpImage* image, float x, float y); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImageFX(GpGraphics* graphics, GpImage* image, RectF* source, Matrix* xForm, CGpEffect* effect, GpImageAttributes* imageAttributes, Unit srcUnit); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePointRect(GpGraphics* graphics, GpImage* image, float x, float y, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePoints(GpGraphics* graphics, GpImage* image, Windows.Win32.Graphics.GdiPlus.PointF* dstpoints, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePointsI(GpGraphics* graphics, GpImage* image, Windows.Win32.Graphics.GdiPlus.Point* dstpoints, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePointsRect(GpGraphics* graphics, GpImage* image, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit, GpImageAttributes* imageAttributes, IntPtr callback, void* callbackData); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePointsRectI(GpGraphics* graphics, GpImage* image, Windows.Win32.Graphics.GdiPlus.Point* points, int count, int srcx, int srcy, int srcwidth, int srcheight, Unit srcUnit, GpImageAttributes* imageAttributes, IntPtr callback, void* callbackData); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImageRect(GpGraphics* graphics, GpImage* image, float x, float y, float width, float height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImageRectRect(GpGraphics* graphics, GpImage* image, float dstx, float dsty, float dstwidth, float dstheight, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit, GpImageAttributes* imageAttributes, IntPtr callback, void* callbackData); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawLine(GpGraphics* graphics, GpPen* pen, float x1, float y1, float x2, float y2); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawLines(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawLinesI(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawPath(GpGraphics* graphics, GpPen* pen, GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawPie(GpGraphics* graphics, GpPen* pen, float x, float y, float width, float height, float startAngle, float sweepAngle); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawPolygon(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawPolygonI(GpGraphics* graphics, GpPen* pen, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawRectangle(GpGraphics* graphics, GpPen* pen, float x, float y, float width, float height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawRectangles(GpGraphics* graphics, GpPen* pen, RectF* rects, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawRectanglesI(GpGraphics* graphics, GpPen* pen, Rect* rects, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawString(GpGraphics* graphics, PCWSTR string, int length, GpFont* font, RectF* layoutRect, GpStringFormat* stringFormat, GpBrush* brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEndContainer(GpGraphics* graphics, uint state); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileDestPoint(GpGraphics* graphics, GpMetafile* metafile, Windows.Win32.Graphics.GdiPlus.PointF* destPoint, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileDestPoints(GpGraphics* graphics, GpMetafile* metafile, Windows.Win32.Graphics.GdiPlus.PointF* destPoints, int count, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileDestPointsI(GpGraphics* graphics, GpMetafile* metafile, Windows.Win32.Graphics.GdiPlus.Point* destPoints, int count, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileDestRect(GpGraphics* graphics, GpMetafile* metafile, RectF* destRect, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileSrcRectDestPoint(GpGraphics* graphics, GpMetafile* metafile, Windows.Win32.Graphics.GdiPlus.PointF* destPoint, RectF* srcRect, Unit srcUnit, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileSrcRectDestPoints(GpGraphics* graphics, GpMetafile* metafile, Windows.Win32.Graphics.GdiPlus.PointF* destPoints, int count, RectF* srcRect, Unit srcUnit, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileSrcRectDestPointsI(GpGraphics* graphics, GpMetafile* metafile, Windows.Win32.Graphics.GdiPlus.Point* destPoints, int count, Rect* srcRect, Unit srcUnit, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileSrcRectDestRect(GpGraphics* graphics, GpMetafile* metafile, RectF* destRect, RectF* srcRect, Unit srcUnit, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillClosedCurve(GpGraphics* graphics, GpBrush* brush, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillClosedCurve2(GpGraphics* graphics, GpBrush* brush, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, float tension, FillMode fillMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillClosedCurve2I(GpGraphics* graphics, GpBrush* brush, Windows.Win32.Graphics.GdiPlus.Point* points, int count, float tension, FillMode fillMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillClosedCurveI(GpGraphics* graphics, GpBrush* brush, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillEllipse(GpGraphics* graphics, GpBrush* brush, float x, float y, float width, float height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillPath(GpGraphics* graphics, GpBrush* brush, GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillPie(GpGraphics* graphics, GpBrush* brush, float x, float y, float width, float height, float startAngle, float sweepAngle); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillPolygon(GpGraphics* graphics, GpBrush* brush, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, FillMode fillMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillPolygonI(GpGraphics* graphics, GpBrush* brush, Windows.Win32.Graphics.GdiPlus.Point* points, int count, FillMode fillMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillRectangle(GpGraphics* graphics, GpBrush* brush, float x, float y, float width, float height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillRectangles(GpGraphics* graphics, GpBrush* brush, RectF* rects, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillRectanglesI(GpGraphics* graphics, GpBrush* brush, Rect* rects, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillRegion(GpGraphics* graphics, GpBrush* brush, GpRegion* region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFlattenPath(GpPath* path, Matrix* matrix, float flatness); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFlush(GpGraphics* graphics, FlushIntention intention); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL* fillState); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAdjustableArrowCapHeight(GpAdjustableArrowCap* cap, float* height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAdjustableArrowCapMiddleInset(GpAdjustableArrowCap* cap, float* middleInset); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAdjustableArrowCapWidth(GpAdjustableArrowCap* cap, float* width); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAllPropertyItems(GpImage* image, uint totalBufferSize, uint numProperties, PropertyItem* allItems); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCellAscent(GpFontFamily* family, int style, ushort* CellAscent); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCellDescent(GpFontFamily* family, int style, ushort* CellDescent); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetClip(GpGraphics* graphics, GpRegion* region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetClipBounds(GpGraphics* graphics, RectF* rect); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCompositingMode(GpGraphics* graphics, CompositingMode* compositingMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCompositingQuality(GpGraphics* graphics, CompositingQuality* compositingQuality); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapBaseCap(GpCustomLineCap* customCap, LineCap* baseCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapBaseInset(GpCustomLineCap* customCap, float* inset); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapStrokeCaps(GpCustomLineCap* customCap, LineCap* startCap, LineCap* endCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapStrokeJoin(GpCustomLineCap* customCap, LineJoin* lineJoin); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapType(GpCustomLineCap* customCap, CustomLineCapType* capType); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapWidthScale(GpCustomLineCap* customCap, float* widthScale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetDC(GpGraphics* graphics, HDC* hdc); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetDpiX(GpGraphics* graphics, float* dpi); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetDpiY(GpGraphics* graphics, float* dpi); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetEmHeight(GpFontFamily* family, int style, ushort* EmHeight); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetEncoderParameterList(GpImage* image, Guid* clsidEncoder, uint size, EncoderParameters* buffer); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetEncoderParameterListSize(GpImage* image, Guid* clsidEncoder, uint* size); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFamily(GpFont* font, GpFontFamily** family); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFamilyName(GpFontFamily* family, PWSTR name, ushort language); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontCollectionFamilyCount(GpFontCollection* fontCollection, int* numFound); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontCollectionFamilyList(GpFontCollection* fontCollection, int numSought, GpFontFamily** gpfamilies, int* numFound); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontHeight(GpFont* font, GpGraphics* graphics, float* height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontHeightGivenDPI(GpFont* font, float dpi, float* height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontSize(GpFont* font, float* size); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontStyle(GpFont* font, int* style); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontUnit(GpFont* font, Unit* unit); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetGenericFontFamilyMonospace(GpFontFamily** nativeFamily); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetGenericFontFamilySansSerif(GpFontFamily** nativeFamily); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetGenericFontFamilySerif(GpFontFamily** nativeFamily); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetHatchBackgroundColor(GpHatch* brush, uint* backcol); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetHatchForegroundColor(GpHatch* brush, uint* forecol); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetHatchStyle(GpHatch* brush, HatchStyle* hatchstyle); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageAttributesAdjustedPalette(GpImageAttributes* imageAttr, ColorPalette* colorPalette, ColorAdjustType colorAdjustType); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageDecoders(uint numDecoders, uint size, ImageCodecInfo* decoders); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageDecodersSize(uint* numDecoders, uint* size); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageDimension(GpImage* image, float* width, float* height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageFlags(GpImage* image, uint* flags); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageGraphicsContext(GpImage* image, GpGraphics** graphics); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageHeight(GpImage* image, uint* height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageHorizontalResolution(GpImage* image, float* resolution); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImagePalette(GpImage* image, ColorPalette* palette, int size); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImagePaletteSize(GpImage* image, int* size); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageRawFormat(GpImage* image, Guid* format); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageThumbnail(GpImage* image, uint thumbWidth, uint thumbHeight, GpImage** thumbImage, IntPtr callback, void* callbackData); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageType(GpImage* image, Windows.Win32.Graphics.GdiPlus.ImageType* type); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageVerticalResolution(GpImage* image, float* resolution); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageWidth(GpImage* image, uint* width); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetInterpolationMode(GpGraphics* graphics, InterpolationMode* interpolationMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineBlend(GpLineGradient* brush, float* blend, float* positions, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineBlendCount(GpLineGradient* brush, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineColors(GpLineGradient* brush, uint* colors); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineGammaCorrection(GpLineGradient* brush, BOOL* useGammaCorrection); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLinePresetBlend(GpLineGradient* brush, uint* blend, float* positions, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLinePresetBlendCount(GpLineGradient* brush, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineRect(GpLineGradient* brush, RectF* rect); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineSpacing(GpFontFamily* family, int style, ushort* LineSpacing); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineTransform(GpLineGradient* brush, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineWrapMode(GpLineGradient* brush, WrapMode* wrapmode); [DllImport("gdiplus.dll", EntryPoint = "GdipGetLogFontW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLogFont(GpFont* font, GpGraphics* graphics, LOGFONTW* logfontW); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMatrixElements(Matrix* matrix, float* matrixOut); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromEmf(HENHMETAFILE hEmf, MetafileHeader* header); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromFile(PCWSTR filename, MetafileHeader* header); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromMetafile(GpMetafile* metafile, MetafileHeader* header); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromStream(IStream* stream, MetafileHeader* header); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromWmf(HMETAFILE hWmf, WmfPlaceableFileHeader* wmfPlaceableFileHeader, MetafileHeader* header); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetNearestColor(GpGraphics* graphics, uint* argb); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPageScale(GpGraphics* graphics, float* scale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPageUnit(GpGraphics* graphics, Unit* unit); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathData(GpPath* path, PathData* pathData); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathFillMode(GpPath* path, FillMode* fillmode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientBlend(GpPathGradient* brush, float* blend, float* positions, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientBlendCount(GpPathGradient* brush, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientCenterColor(GpPathGradient* brush, uint* colors); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientCenterPoint(GpPathGradient* brush, Windows.Win32.Graphics.GdiPlus.PointF* points); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientFocusScales(GpPathGradient* brush, float* xScale, float* yScale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientPresetBlend(GpPathGradient* brush, uint* blend, float* positions, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientPresetBlendCount(GpPathGradient* brush, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientRect(GpPathGradient* brush, RectF* rect); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientSurroundColorCount(GpPathGradient* brush, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientSurroundColorsWithCount(GpPathGradient* brush, uint* color, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientTransform(GpPathGradient* brush, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientWrapMode(GpPathGradient* brush, WrapMode* wrapmode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathLastPoint(GpPath* path, Windows.Win32.Graphics.GdiPlus.PointF* lastPoint); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathPoints(GpPath* param0, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathTypes(GpPath* path, byte* types, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathWorldBounds(GpPath* path, RectF* bounds, Matrix* matrix, GpPen* pen); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenBrushFill(GpPen* pen, GpBrush** brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenColor(GpPen* pen, uint* argb); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenCompoundArray(GpPen* pen, float* dash, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenCompoundCount(GpPen* pen, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenCustomEndCap(GpPen* pen, GpCustomLineCap** customCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenCustomStartCap(GpPen* pen, GpCustomLineCap** customCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashArray(GpPen* pen, float* dash, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashCap197819(GpPen* pen, DashCap* dashCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashCount(GpPen* pen, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashOffset(GpPen* pen, float* offset); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashStyle(GpPen* pen, DashStyle* dashstyle); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenEndCap(GpPen* pen, LineCap* endCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenFillType(GpPen* pen, PenType* type); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenLineJoin(GpPen* pen, LineJoin* lineJoin); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenMiterLimit(GpPen* pen, float* miterLimit); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenMode(GpPen* pen, PenAlignment* penMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenStartCap(GpPen* pen, LineCap* startCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenTransform(GpPen* pen, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenWidth(GpPen* pen, float* width); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPixelOffsetMode(GpGraphics* graphics, PixelOffsetMode* pixelOffsetMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPointCount(GpPath* path, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertyCount(GpImage* image, uint* numOfProperty); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertyIdList(GpImage* image, uint numOfProperty, uint* list); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertyItem(GpImage* image, uint propId, uint propSize, PropertyItem* buffer); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertyItemSize(GpImage* image, uint propId, uint* size); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertySize(GpImage* image, uint* totalBufferSize, uint* numProperties); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionBounds(GpRegion* region, GpGraphics* graphics, RectF* rect); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionData(GpRegion* region, byte* buffer, uint bufferSize, uint* sizeFilled = default(uint*)); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionDataSize(GpRegion* region, uint* bufferSize); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionScans(GpRegion* region, RectF* rects, int* count, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionScansCount(GpRegion* region, uint* count, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRenderingOrigin(GpGraphics* graphics, int* x, int* y); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetSmoothingMode(GpGraphics* graphics, SmoothingMode* smoothingMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetSolidFillColor(GpSolidFill* brush, uint* color); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatAlign(GpStringFormat* format, Windows.Win32.Graphics.GdiPlus.StringAlignment* align); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatDigitSubstitution(GpStringFormat* format, ushort* language, Windows.Win32.Graphics.GdiPlus.StringDigitSubstitute* substitute); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatFlags(GpStringFormat* format, int* flags); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatHotkeyPrefix(GpStringFormat* format, int* hotkeyPrefix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatLineAlign(GpStringFormat* format, Windows.Win32.Graphics.GdiPlus.StringAlignment* align); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatMeasurableCharacterRangeCount(GpStringFormat* format, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatTabStopCount(GpStringFormat* format, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatTabStops(GpStringFormat* format, int count, float* firstTabOffset, float* tabStops); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatTrimming(GpStringFormat* format, Windows.Win32.Graphics.GdiPlus.StringTrimming* trimming); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextContrast(GpGraphics* graphics, uint* contrast); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextRenderingHint(GpGraphics* graphics, TextRenderingHint* mode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextureImage(GpTexture* brush, GpImage** image); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextureTransform(GpTexture* brush, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextureWrapMode(GpTexture* brush, WrapMode* wrapmode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetVisibleClipBounds(GpGraphics* graphics, RectF* rect); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetWorldTransform(GpGraphics* graphics, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGraphicsClear(GpGraphics* graphics, uint color); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageForceValidation(GpImage* image); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageGetFrameCount(GpImage* image, Guid* dimensionID, uint* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageGetFrameDimensionsCount(GpImage* image, uint* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageGetFrameDimensionsList(GpImage* image, Guid* dimensionIDs, uint count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageRotateFlip(GpImage* image, Windows.Win32.Graphics.GdiPlus.RotateFlipType rfType); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageSelectActiveFrame(GpImage* image, Guid* dimensionID, uint frameIndex); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipInitializePalette(ColorPalette* palette, PaletteType palettetype, int optimalColors, BOOL useTransparentColor, GpBitmap* bitmap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipInvertMatrix(Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsClipEmpty(GpGraphics* graphics, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsEmptyRegion(GpRegion* region, GpGraphics* graphics, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsEqualRegion(GpRegion* region, GpRegion* region2, GpGraphics* graphics, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsMatrixEqual(Matrix* matrix, Matrix* matrix2, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsMatrixIdentity(Matrix* matrix, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsMatrixInvertible(Matrix* matrix, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsOutlineVisiblePathPoint(GpPath* path, float x, float y, GpPen* pen, GpGraphics* graphics, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsStyleAvailable(GpFontFamily* family, int style, BOOL* IsStyleAvailable); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisibleClipEmpty(GpGraphics* graphics, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisiblePathPoint(GpPath* path, float x, float y, GpGraphics* graphics, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisiblePoint(GpGraphics* graphics, float x, float y, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisibleRect(GpGraphics* graphics, float x, float y, float width, float height, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisibleRegionPoint(GpRegion* region, float x, float y, GpGraphics* graphics, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisibleRegionRect(GpRegion* region, float x, float y, float width, float height, GpGraphics* graphics, BOOL* result); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipLoadImageFromFile(PCWSTR filename, GpImage** image); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipLoadImageFromFileICM(PCWSTR filename, GpImage** image); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipLoadImageFromStream(IStream* stream, GpImage** image); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipLoadImageFromStreamICM(IStream* stream, GpImage** image); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMeasureCharacterRanges(GpGraphics* graphics, PCWSTR string, int length, GpFont* font, RectF* layoutRect, GpStringFormat* stringFormat, int regionCount, GpRegion** regions); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMeasureString(GpGraphics* graphics, PCWSTR string, int length, GpFont* font, RectF* layoutRect, GpStringFormat* stringFormat, RectF* boundingBox, int* codepointsFitted, int* linesFilled); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyLineTransform(GpLineGradient* brush, Matrix* matrix, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyMatrix(Matrix* matrix, Matrix* matrix2, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyPathGradientTransform(GpPathGradient* brush, Matrix* matrix, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyPenTransform(GpPen* pen, Matrix* matrix, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyTextureTransform(GpTexture* brush, Matrix* matrix, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyWorldTransform(GpGraphics* graphics, Matrix* matrix, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipNewInstalledFontCollection(GpFontCollection** fontCollection); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipNewPrivateFontCollection(GpFontCollection** fontCollection); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterCopyData(GpPathIterator* iterator, int* resultCount, Windows.Win32.Graphics.GdiPlus.PointF* points, byte* types, int startIndex, int endIndex); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterEnumerate(GpPathIterator* iterator, int* resultCount, Windows.Win32.Graphics.GdiPlus.PointF* points, byte* types, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterGetCount(GpPathIterator* iterator, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterGetSubpathCount(GpPathIterator* iterator, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterHasCurve(GpPathIterator* iterator, BOOL* hasCurve); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterIsValid(GpPathIterator* iterator, BOOL* valid); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextMarker(GpPathIterator* iterator, int* resultCount, int* startIndex, int* endIndex); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextMarkerPath(GpPathIterator* iterator, int* resultCount, GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextPathType(GpPathIterator* iterator, int* resultCount, byte* pathType, int* startIndex, int* endIndex); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextSubpath(GpPathIterator* iterator, int* resultCount, int* startIndex, int* endIndex, BOOL* isClosed); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextSubpathPath(GpPathIterator* iterator, int* resultCount, GpPath* path, BOOL* isClosed); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterRewind(GpPathIterator* iterator); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPlayMetafileRecord(GpMetafile* metafile, EmfPlusRecordType recordType, uint flags, uint dataSize, byte* data); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPrivateAddFontFile(GpFontCollection* fontCollection, PCWSTR filename); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPrivateAddMemoryFont(GpFontCollection* fontCollection, void* memory, int length); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRecordMetafile(HDC referenceHdc, EmfType type, RectF* frameRect, MetafileFrameUnit frameUnit, PCWSTR description, GpMetafile** metafile); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRecordMetafileFileName(PCWSTR fileName, HDC referenceHdc, EmfType type, RectF* frameRect, MetafileFrameUnit frameUnit, PCWSTR description, GpMetafile** metafile); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRecordMetafileStream(IStream* stream, HDC referenceHdc, EmfType type, RectF* frameRect, MetafileFrameUnit frameUnit, PCWSTR description, GpMetafile** metafile); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipReleaseDC(GpGraphics* graphics, HDC hdc); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRemovePropertyItem(GpImage* image, uint propId); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetClip(GpGraphics* graphics); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetLineTransform(GpLineGradient* brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetPath(GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetPathGradientTransform(GpPathGradient* brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetPenTransform(GpPen* pen); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetTextureTransform(GpTexture* brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetWorldTransform(GpGraphics* graphics); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRestoreGraphics(GpGraphics* graphics, uint state); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipReversePath(GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotateLineTransform(GpLineGradient* brush, float angle, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotateMatrix(Matrix* matrix, float angle, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotatePathGradientTransform(GpPathGradient* brush, float angle, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotatePenTransform(GpPen* pen, float angle, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotateTextureTransform(GpTexture* brush, float angle, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotateWorldTransform(GpGraphics* graphics, float angle, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveAdd(GpImage* image, EncoderParameters* encoderParams); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveAddImage(GpImage* image, GpImage* newImage, EncoderParameters* encoderParams); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveGraphics(GpGraphics* graphics, uint* state); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveImageToFile(GpImage* image, PCWSTR filename, Guid* clsidEncoder, EncoderParameters* encoderParams); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScaleLineTransform(GpLineGradient* brush, float sx, float sy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScaleMatrix(Matrix* matrix, float scaleX, float scaleY, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScalePathGradientTransform(GpPathGradient* brush, float sx, float sy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScalePenTransform(GpPen* pen, float sx, float sy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScaleTextureTransform(GpTexture* brush, float sx, float sy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScaleWorldTransform(GpGraphics* graphics, float sx, float sy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL fillState); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetAdjustableArrowCapHeight(GpAdjustableArrowCap* cap, float height); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetAdjustableArrowCapMiddleInset(GpAdjustableArrowCap* cap, float middleInset); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetAdjustableArrowCapWidth(GpAdjustableArrowCap* cap, float width); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetClipGraphics(GpGraphics* graphics, GpGraphics* srcgraphics, CombineMode combineMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetClipPath(GpGraphics* graphics, GpPath* path, CombineMode combineMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetClipRect(GpGraphics* graphics, float x, float y, float width, float height, CombineMode combineMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetClipRegion(GpGraphics* graphics, GpRegion* region, CombineMode combineMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCompositingMode(GpGraphics* graphics, CompositingMode compositingMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCompositingQuality(GpGraphics* graphics, CompositingQuality compositingQuality); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapBaseCap(GpCustomLineCap* customCap, LineCap baseCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapBaseInset(GpCustomLineCap* customCap, float inset); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapStrokeCaps(GpCustomLineCap* customCap, LineCap startCap, LineCap endCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapStrokeJoin(GpCustomLineCap* customCap, LineJoin lineJoin); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapWidthScale(GpCustomLineCap* customCap, float widthScale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetEffectParameters(CGpEffect* effect, void* params, uint size); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetEmpty(GpRegion* region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesColorKeys(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, uint colorLow, uint colorHigh); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesColorMatrix(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, ColorMatrix* colorMatrix, ColorMatrix* grayMatrix, ColorMatrixFlags flags); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesGamma(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, float gamma); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesNoOp(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesOutputChannel(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesOutputChannelColorProfile(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, PCWSTR colorProfileFilename); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesRemapTable(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, uint mapSize, ColorMap* map); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesThreshold(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, float threshold); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesWrapMode(GpImageAttributes* imageAttr, WrapMode wrap, uint argb, BOOL clamp); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImagePalette(GpImage* image, ColorPalette* palette); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetInfinite(GpRegion* region); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetInterpolationMode(GpGraphics* graphics, InterpolationMode interpolationMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineBlend(GpLineGradient* brush, float* blend, float* positions, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineColors(GpLineGradient* brush, uint color1, uint color2); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineGammaCorrection(GpLineGradient* brush, BOOL useGammaCorrection); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineLinearBlend(GpLineGradient* brush, float focus, float scale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLinePresetBlend(GpLineGradient* brush, uint* blend, float* positions, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineSigmaBlend(GpLineGradient* brush, float focus, float scale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineTransform(GpLineGradient* brush, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineWrapMode(GpLineGradient* brush, WrapMode wrapmode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetMatrixElements(Matrix* matrix, float m11, float m12, float m21, float m22, float dx, float dy); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPageScale(GpGraphics* graphics, float scale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPageUnit(GpGraphics* graphics, Unit unit); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathFillMode(GpPath* path, FillMode fillmode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientBlend(GpPathGradient* brush, float* blend, float* positions, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientCenterColor(GpPathGradient* brush, uint colors); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientCenterPoint(GpPathGradient* brush, Windows.Win32.Graphics.GdiPlus.PointF* points); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientFocusScales(GpPathGradient* brush, float xScale, float yScale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientLinearBlend(GpPathGradient* brush, float focus, float scale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientPresetBlend(GpPathGradient* brush, uint* blend, float* positions, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientSigmaBlend(GpPathGradient* brush, float focus, float scale); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientSurroundColorsWithCount(GpPathGradient* brush, uint* color, int* count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientTransform(GpPathGradient* brush, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientWrapMode(GpPathGradient* brush, WrapMode wrapmode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathMarker(GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenBrushFill(GpPen* pen, GpBrush* brush); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenColor(GpPen* pen, uint argb); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenCompoundArray(GpPen* pen, float* dash, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenCustomEndCap(GpPen* pen, GpCustomLineCap* customCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenCustomStartCap(GpPen* pen, GpCustomLineCap* customCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenDashArray(GpPen* pen, float* dash, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenDashCap197819(GpPen* pen, DashCap dashCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenDashOffset(GpPen* pen, float offset); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenDashStyle(GpPen* pen, DashStyle dashstyle); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenEndCap(GpPen* pen, LineCap endCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenLineCap197819(GpPen* pen, LineCap startCap, LineCap endCap, DashCap dashCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenLineJoin(GpPen* pen, LineJoin lineJoin); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenMiterLimit(GpPen* pen, float miterLimit); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenMode(GpPen* pen, PenAlignment penMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenStartCap(GpPen* pen, LineCap startCap); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenTransform(GpPen* pen, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenWidth(GpPen* pen, float width); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPixelOffsetMode(GpGraphics* graphics, PixelOffsetMode pixelOffsetMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPropertyItem(GpImage* image, PropertyItem* item); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetRenderingOrigin(GpGraphics* graphics, int x, int y); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetSmoothingMode(GpGraphics* graphics, SmoothingMode smoothingMode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetSolidFillColor(GpSolidFill* brush, uint color); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatAlign(GpStringFormat* format, Windows.Win32.Graphics.GdiPlus.StringAlignment align); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatDigitSubstitution(GpStringFormat* format, ushort language, Windows.Win32.Graphics.GdiPlus.StringDigitSubstitute substitute); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatFlags(GpStringFormat* format, int flags); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatHotkeyPrefix(GpStringFormat* format, int hotkeyPrefix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatLineAlign(GpStringFormat* format, Windows.Win32.Graphics.GdiPlus.StringAlignment align); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatMeasurableCharacterRanges(GpStringFormat* format, int rangeCount, Windows.Win32.Graphics.GdiPlus.CharacterRange* ranges); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatTabStops(GpStringFormat* format, float firstTabOffset, int count, float* tabStops); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatTrimming(GpStringFormat* format, Windows.Win32.Graphics.GdiPlus.StringTrimming trimming); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetTextContrast(GpGraphics* graphics, uint contrast); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetTextRenderingHint(GpGraphics* graphics, TextRenderingHint mode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetTextureTransform(GpTexture* brush, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetTextureWrapMode(GpTexture* brush, WrapMode wrapmode); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetWorldTransform(GpGraphics* graphics, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipShearMatrix(Matrix* matrix, float shearX, float shearY, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipStartPathFigure(GpPath* path); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipStringFormatGetGenericDefault(GpStringFormat** format); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipStringFormatGetGenericTypographic(GpStringFormat** format); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformMatrixPoints(Matrix* matrix, Windows.Win32.Graphics.GdiPlus.PointF* pts, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformMatrixPointsI(Matrix* matrix, Windows.Win32.Graphics.GdiPlus.Point* pts, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformPath(GpPath* path, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformPoints(GpGraphics* graphics, CoordinateSpace destSpace, CoordinateSpace srcSpace, Windows.Win32.Graphics.GdiPlus.PointF* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformPointsI(GpGraphics* graphics, CoordinateSpace destSpace, CoordinateSpace srcSpace, Windows.Win32.Graphics.GdiPlus.Point* points, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformRegion(GpRegion* region, Matrix* matrix); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateClip(GpGraphics* graphics, float dx, float dy); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateLineTransform(GpLineGradient* brush, float dx, float dy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateMatrix(Matrix* matrix, float offsetX, float offsetY, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslatePathGradientTransform(GpPathGradient* brush, float dx, float dy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslatePenTransform(GpPen* pen, float dx, float dy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateRegion(GpRegion* region, float dx, float dy); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateTextureTransform(GpTexture* brush, float dx, float dy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateWorldTransform(GpGraphics* graphics, float dx, float dy, MatrixOrder order); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipVectorTransformMatrixPoints(Matrix* matrix, Windows.Win32.Graphics.GdiPlus.PointF* pts, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipVectorTransformMatrixPointsI(Matrix* matrix, Windows.Win32.Graphics.GdiPlus.Point* pts, int count); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipWarpPath(GpPath* path, Matrix* matrix, Windows.Win32.Graphics.GdiPlus.PointF* points, int count, float srcx, float srcy, float srcwidth, float srcheight, WarpMode warpMode, float flatness); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipWidenPath(GpPath* nativePath, GpPen* pen, Matrix* matrix, float flatness); [DllImport("SHELL32.dll", EntryPoint = "ExtractAssociatedIconW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.1.2600")] internal unsafe static extern HICON ExtractAssociatedIcon(HINSTANCE hInst, PWSTR pszIconPath, ushort* piIcon); [DllImport("SHELL32.dll", EntryPoint = "SHDefExtractIconW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.1.2600")] internal unsafe static extern HRESULT SHDefExtractIcon(PCWSTR pszIconFile, int iIndex, uint uFlags, HICON* phiconLarge = default(HICON*), HICON* phiconSmall = default(HICON*), uint nIconSize); [SupportedOSPlatform("windows5.0")] internal unsafe static HICON CreateIconFromResourceEx(byte* presbits, uint dwResSize, BOOL fIcon, uint dwVer, int cxDesired, int cyDesired, IMAGE_FLAGS Flags) { Marshal.SetLastSystemError(0); HICON result = <CreateIconFromResourceEx>g__LocalExternFunction|692_0(presbits, dwResSize, fIcon, dwVer, cxDesired, cyDesired, Flags); Marshal.SetLastPInvokeError(Marshal.GetLastSystemError()); return result; } [DllImport("winspool.drv", EntryPoint = "DeviceCapabilitiesW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] [SupportedOSPlatform("windows5.0")] internal unsafe static extern int DeviceCapabilities(PCWSTR pDevice, PCWSTR pPort, PRINTER_DEVICE_CAPABILITIES fwCapability, PWSTR pOutput, DEVMODEW* pDevMode = default(DEVMODEW*)); [DllImport("winspool.drv", EntryPoint = "DocumentPropertiesW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern int DocumentProperties(HWND hWnd, HANDLE hPrinter, PWSTR pDeviceName, DEVMODEW* pDevModeOutput = default(DEVMODEW*), DEVMODEW* pDevModeInput = default(DEVMODEW*), uint fMode); internal unsafe static BOOL EnumPrinters(uint Flags, PWSTR Name, uint Level, byte* pPrinterEnum = default(byte*), uint cbBuf, uint* pcbNeeded, uint* pcReturned) { Marshal.SetLastSystemError(0); BOOL result = <EnumPrinters>g__LocalExternFunction|695_0(Flags, Name, Level, pPrinterEnum, cbBuf, pcbNeeded, pcReturned); Marshal.SetLastPInvokeError(Marshal.GetLastSystemError()); return result; } } }