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

PInvokeGdiPlus

static class PInvokeGdiPlus
using System; using System.CodeDom.Compiler; using System.Private.Windows.GdiPlus.Resources; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using Windows.Win32.Foundation; using Windows.Win32.Graphics.Gdi; using Windows.Win32.Graphics.GdiPlus; using Windows.Win32.System.Com; using Windows.Win32.UI.WindowsAndMessaging; namespace Windows.Win32 { [GeneratedCode("Microsoft.Windows.CsWin32", "0.3.151+58e949951d.RR")] internal static class PInvokeGdiPlus { static PInvokeGdiPlus() { if (!OperatingSystem.IsWindows()) NativeLibrary.SetDllImportResolver(Assembly.GetExecutingAssembly(), delegate { throw new PlatformNotSupportedException(SR.PlatformNotSupported_Unix); }); GdiPlusInitialization.EnsureInitialized(); } internal unsafe static Status GdipAddPathArc(ref GpPath path, float x, float y, float width, float height, float startAngle, float sweepAngle) { fixed (GpPath* path2 = &path) { return GdipAddPathArc(path2, x, y, width, height, startAngle, sweepAngle); } } [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); internal unsafe static Status GdipAddPathBezier(ref GpPath path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) { fixed (GpPath* path2 = &path) { return GdipAddPathBezier(path2, x1, y1, x2, y2, x3, y3, x4, y4); } } [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); internal unsafe static Status GdipAddPathBeziers(ref GpPath path, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathBeziers(path2, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathBeziers(GpPath* path, PointF* points, int count); internal unsafe static Status GdipAddPathBeziersI(ref GpPath path, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathBeziersI(path2, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathBeziersI(GpPath* path, Point* points, int count); internal unsafe static Status GdipAddPathClosedCurve2(ref GpPath path, [In] [IsReadOnly] ref PointF points, int count, float tension) { fixed (PointF* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathClosedCurve2(path2, points2, count, tension); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathClosedCurve2(GpPath* path, PointF* points, int count, float tension); internal unsafe static Status GdipAddPathClosedCurve2I(ref GpPath path, [In] [IsReadOnly] ref Point points, int count, float tension) { fixed (Point* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathClosedCurve2I(path2, points2, count, tension); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathClosedCurve2I(GpPath* path, Point* points, int count, float tension); internal unsafe static Status GdipAddPathCurve2(ref GpPath path, [In] [IsReadOnly] ref PointF points, int count, float tension) { fixed (PointF* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathCurve2(path2, points2, count, tension); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathCurve2(GpPath* path, PointF* points, int count, float tension); internal unsafe static Status GdipAddPathCurve2I(ref GpPath path, [In] [IsReadOnly] ref Point points, int count, float tension) { fixed (Point* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathCurve2I(path2, points2, count, tension); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathCurve2I(GpPath* path, Point* points, int count, float tension); internal unsafe static Status GdipAddPathCurve3(ref GpPath path, [In] [IsReadOnly] ref PointF points, int count, int offset, int numberOfSegments, float tension) { fixed (PointF* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathCurve3(path2, points2, count, offset, numberOfSegments, tension); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathCurve3(GpPath* path, PointF* points, int count, int offset, int numberOfSegments, float tension); internal unsafe static Status GdipAddPathCurve3I(ref GpPath path, [In] [IsReadOnly] ref Point points, int count, int offset, int numberOfSegments, float tension) { fixed (Point* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathCurve3I(path2, points2, count, offset, numberOfSegments, tension); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathCurve3I(GpPath* path, Point* points, int count, int offset, int numberOfSegments, float tension); internal unsafe static Status GdipAddPathEllipse(ref GpPath path, float x, float y, float width, float height) { fixed (GpPath* path2 = &path) { return GdipAddPathEllipse(path2, x, y, width, height); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathEllipse(GpPath* path, float x, float y, float width, float height); internal unsafe static Status GdipAddPathLine(ref GpPath path, float x1, float y1, float x2, float y2) { fixed (GpPath* path2 = &path) { return GdipAddPathLine(path2, x1, y1, x2, y2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathLine(GpPath* path, float x1, float y1, float x2, float y2); internal unsafe static Status GdipAddPathLine2(ref GpPath path, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathLine2(path2, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathLine2(GpPath* path, PointF* points, int count); internal unsafe static Status GdipAddPathLine2I(ref GpPath path, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathLine2I(path2, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathLine2I(GpPath* path, Point* points, int count); internal unsafe static Status GdipAddPathPath(ref GpPath path, [In] [IsReadOnly] ref GpPath addingPath, BOOL connect) { fixed (GpPath* addingPath2 = &addingPath) { fixed (GpPath* path2 = &path) { return GdipAddPathPath(path2, addingPath2, connect); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathPath(GpPath* path, GpPath* addingPath, BOOL connect); internal unsafe static Status GdipAddPathPie(ref GpPath path, float x, float y, float width, float height, float startAngle, float sweepAngle) { fixed (GpPath* path2 = &path) { return GdipAddPathPie(path2, x, y, width, height, startAngle, sweepAngle); } } [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); internal unsafe static Status GdipAddPathPolygon(ref GpPath path, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathPolygon(path2, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathPolygon(GpPath* path, PointF* points, int count); internal unsafe static Status GdipAddPathPolygonI(ref GpPath path, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpPath* path2 = &path) { return GdipAddPathPolygonI(path2, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathPolygonI(GpPath* path, Point* points, int count); internal unsafe static Status GdipAddPathRectangle(ref GpPath path, float x, float y, float width, float height) { fixed (GpPath* path2 = &path) { return GdipAddPathRectangle(path2, x, y, width, height); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathRectangle(GpPath* path, float x, float y, float width, float height); internal unsafe static Status GdipAddPathRectangles(ref GpPath path, [In] [IsReadOnly] ref RectF rects, int count) { fixed (RectF* rects2 = &rects) { fixed (GpPath* path2 = &path) { return GdipAddPathRectangles(path2, rects2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathRectangles(GpPath* path, RectF* rects, int count); internal unsafe static Status GdipAddPathRectanglesI(ref GpPath path, [In] [IsReadOnly] ref Rect rects, int count) { fixed (Rect* rects2 = &rects) { fixed (GpPath* path2 = &path) { return GdipAddPathRectanglesI(path2, rects2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipAddPathRectanglesI(GpPath* path, Rect* rects, int count); internal unsafe static Status GdipAddPathString(ref GpPath path, string string, int length, [In] [IsReadOnly] ref GpFontFamily family, int style, float emSize, [In] [IsReadOnly] ref RectF layoutRect, [In] [IsReadOnly] ref GpStringFormat format) { fixed (GpStringFormat* format2 = &format) { fixed (RectF* layoutRect2 = &layoutRect) { fixed (GpFontFamily* family2 = &family) { IntPtr intPtr; if (string == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref string.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (GpPath* path2 = &path) { return GdipAddPathString(path2, value, length, family2, style, emSize, layoutRect2, format2); } } } } } [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); internal unsafe static Status GdipBeginContainer(ref GpGraphics graphics, [In] [IsReadOnly] ref RectF dstrect, [In] [IsReadOnly] ref RectF srcrect, Unit unit, ref uint state) { fixed (uint* state2 = &state) { fixed (RectF* srcrect2 = &srcrect) { fixed (RectF* dstrect2 = &dstrect) { fixed (GpGraphics* graphics2 = &graphics) { return GdipBeginContainer(graphics2, dstrect2, srcrect2, unit, state2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBeginContainer(GpGraphics* graphics, RectF* dstrect, RectF* srcrect, Unit unit, uint* state); internal unsafe static Status GdipBeginContainer2(ref GpGraphics graphics, ref uint state) { fixed (uint* state2 = &state) { fixed (GpGraphics* graphics2 = &graphics) { return GdipBeginContainer2(graphics2, state2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBeginContainer2(GpGraphics* graphics, uint* state); internal unsafe static Status GdipBitmapApplyEffect(ref GpBitmap bitmap, ref CGpEffect effect, ref RECT roi, BOOL useAuxData, ref void* auxData, ref int auxDataSize) { fixed (int* auxDataSize2 = &auxDataSize) { fixed (void** auxData2 = &auxData) { fixed (RECT* roi2 = &roi) { fixed (CGpEffect* effect2 = &effect) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipBitmapApplyEffect(bitmap2, effect2, roi2, useAuxData, auxData2, auxDataSize2); } } } } } } [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); internal unsafe static Status GdipBitmapConvertFormat(ref GpBitmap pInputBitmap, int format, DitherType dithertype, PaletteType palettetype, ColorPalette* palette, float alphaThresholdPercent) { fixed (GpBitmap* pInputBitmap2 = &pInputBitmap) { return GdipBitmapConvertFormat(pInputBitmap2, format, dithertype, palettetype, palette, alphaThresholdPercent); } } [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); internal unsafe static Status GdipBitmapGetPixel(ref GpBitmap bitmap, int x, int y, ref uint color) { fixed (uint* color2 = &color) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipBitmapGetPixel(bitmap2, x, y, color2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapGetPixel(GpBitmap* bitmap, int x, int y, uint* color); internal unsafe static Status GdipBitmapLockBits(ref GpBitmap bitmap, [In] [IsReadOnly] ref Rect rect, uint flags, int format, ref BitmapData lockedBitmapData) { fixed (BitmapData* lockedBitmapData2 = &lockedBitmapData) { fixed (Rect* rect2 = &rect) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipBitmapLockBits(bitmap2, rect2, flags, format, lockedBitmapData2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapLockBits(GpBitmap* bitmap, Rect* rect, uint flags, int format, BitmapData* lockedBitmapData); internal unsafe static Status GdipBitmapSetPixel(ref GpBitmap bitmap, int x, int y, uint color) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipBitmapSetPixel(bitmap2, x, y, color); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapSetPixel(GpBitmap* bitmap, int x, int y, uint color); internal unsafe static Status GdipBitmapSetResolution(ref GpBitmap bitmap, float xdpi, float ydpi) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipBitmapSetResolution(bitmap2, xdpi, ydpi); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapSetResolution(GpBitmap* bitmap, float xdpi, float ydpi); internal unsafe static Status GdipBitmapUnlockBits(ref GpBitmap bitmap, ref BitmapData lockedBitmapData) { fixed (BitmapData* lockedBitmapData2 = &lockedBitmapData) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipBitmapUnlockBits(bitmap2, lockedBitmapData2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipBitmapUnlockBits(GpBitmap* bitmap, BitmapData* lockedBitmapData); internal unsafe static Status GdipClearPathMarkers(ref GpPath path) { fixed (GpPath* path2 = &path) { return GdipClearPathMarkers(path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClearPathMarkers(GpPath* path); internal unsafe static Status GdipCloneBitmapArea(float x, float y, float width, float height, int format, ref GpBitmap srcBitmap, ref GpBitmap* dstBitmap) { fixed (GpBitmap** dstBitmap2 = &dstBitmap) { fixed (GpBitmap* srcBitmap2 = &srcBitmap) { return GdipCloneBitmapArea(x, y, width, height, format, srcBitmap2, dstBitmap2); } } } [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); internal unsafe static Status GdipCloneBitmapAreaI(int x, int y, int width, int height, int format, ref GpBitmap srcBitmap, ref GpBitmap* dstBitmap) { fixed (GpBitmap** dstBitmap2 = &dstBitmap) { fixed (GpBitmap* srcBitmap2 = &srcBitmap) { return GdipCloneBitmapAreaI(x, y, width, height, format, srcBitmap2, dstBitmap2); } } } [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); internal unsafe static Status GdipCloneBrush(ref GpBrush brush, ref GpBrush* cloneBrush) { fixed (GpBrush** cloneBrush2 = &cloneBrush) { fixed (GpBrush* brush2 = &brush) { return GdipCloneBrush(brush2, cloneBrush2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneBrush(GpBrush* brush, GpBrush** cloneBrush); internal unsafe static Status GdipCloneCustomLineCap(ref GpCustomLineCap customCap, ref GpCustomLineCap* clonedCap) { fixed (GpCustomLineCap** clonedCap2 = &clonedCap) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipCloneCustomLineCap(customCap2, clonedCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneCustomLineCap(GpCustomLineCap* customCap, GpCustomLineCap** clonedCap); internal unsafe static Status GdipCloneFont(ref GpFont font, ref GpFont* cloneFont) { fixed (GpFont** cloneFont2 = &cloneFont) { fixed (GpFont* font2 = &font) { return GdipCloneFont(font2, cloneFont2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneFont(GpFont* font, GpFont** cloneFont); internal unsafe static Status GdipCloneFontFamily(ref GpFontFamily fontFamily, ref GpFontFamily* clonedFontFamily) { fixed (GpFontFamily** clonedFontFamily2 = &clonedFontFamily) { fixed (GpFontFamily* fontFamily2 = &fontFamily) { return GdipCloneFontFamily(fontFamily2, clonedFontFamily2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneFontFamily(GpFontFamily* fontFamily, GpFontFamily** clonedFontFamily); internal unsafe static Status GdipCloneImage(ref GpImage image, ref GpImage* cloneImage) { fixed (GpImage** cloneImage2 = &cloneImage) { fixed (GpImage* image2 = &image) { return GdipCloneImage(image2, cloneImage2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneImage(GpImage* image, GpImage** cloneImage); internal unsafe static Status GdipCloneImageAttributes([In] [IsReadOnly] ref GpImageAttributes imageattr, ref GpImageAttributes* cloneImageattr) { fixed (GpImageAttributes** cloneImageattr2 = &cloneImageattr) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipCloneImageAttributes(imageattr2, cloneImageattr2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneImageAttributes(GpImageAttributes* imageattr, GpImageAttributes** cloneImageattr); internal unsafe static Status GdipCloneMatrix(ref Matrix matrix, ref Matrix* cloneMatrix) { fixed (Matrix** cloneMatrix2 = &cloneMatrix) { fixed (Matrix* matrix2 = &matrix) { return GdipCloneMatrix(matrix2, cloneMatrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneMatrix(Matrix* matrix, Matrix** cloneMatrix); internal unsafe static Status GdipClonePath(ref GpPath path, ref GpPath* clonePath) { fixed (GpPath** clonePath2 = &clonePath) { fixed (GpPath* path2 = &path) { return GdipClonePath(path2, clonePath2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClonePath(GpPath* path, GpPath** clonePath); internal unsafe static Status GdipClonePen(ref GpPen pen, ref GpPen* clonepen) { fixed (GpPen** clonepen2 = &clonepen) { fixed (GpPen* pen2 = &pen) { return GdipClonePen(pen2, clonepen2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClonePen(GpPen* pen, GpPen** clonepen); internal unsafe static Status GdipCloneRegion(ref GpRegion region, ref GpRegion* cloneRegion) { fixed (GpRegion** cloneRegion2 = &cloneRegion) { fixed (GpRegion* region2 = &region) { return GdipCloneRegion(region2, cloneRegion2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneRegion(GpRegion* region, GpRegion** cloneRegion); internal unsafe static Status GdipCloneStringFormat([In] [IsReadOnly] ref GpStringFormat format, ref GpStringFormat* newFormat) { fixed (GpStringFormat** newFormat2 = &newFormat) { fixed (GpStringFormat* format2 = &format) { return GdipCloneStringFormat(format2, newFormat2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCloneStringFormat(GpStringFormat* format, GpStringFormat** newFormat); internal unsafe static Status GdipClosePathFigure(ref GpPath path) { fixed (GpPath* path2 = &path) { return GdipClosePathFigure(path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClosePathFigure(GpPath* path); internal unsafe static Status GdipClosePathFigures(ref GpPath path) { fixed (GpPath* path2 = &path) { return GdipClosePathFigures(path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipClosePathFigures(GpPath* path); internal unsafe static Status GdipCombineRegionPath(ref GpRegion region, ref GpPath path, CombineMode combineMode) { fixed (GpPath* path2 = &path) { fixed (GpRegion* region2 = &region) { return GdipCombineRegionPath(region2, path2, combineMode); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCombineRegionPath(GpRegion* region, GpPath* path, CombineMode combineMode); internal unsafe static Status GdipCombineRegionRect(ref GpRegion region, [In] [IsReadOnly] ref RectF rect, CombineMode combineMode) { fixed (RectF* rect2 = &rect) { fixed (GpRegion* region2 = &region) { return GdipCombineRegionRect(region2, rect2, combineMode); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCombineRegionRect(GpRegion* region, RectF* rect, CombineMode combineMode); internal unsafe static Status GdipCombineRegionRegion(ref GpRegion region, ref GpRegion region2, CombineMode combineMode) { fixed (GpRegion* region4 = &region2) { fixed (GpRegion* region3 = &region) { return GdipCombineRegionRegion(region3, region4, combineMode); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCombineRegionRegion(GpRegion* region, GpRegion* region2, CombineMode combineMode); internal unsafe static Status GdipComment(ref GpGraphics graphics, uint sizeData, [In] [IsReadOnly] ref byte data) { fixed (byte* data2 = &data) { fixed (GpGraphics* graphics2 = &graphics) { return GdipComment(graphics2, sizeData, data2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipComment(GpGraphics* graphics, uint sizeData, byte* data); internal unsafe static Status GdipCreateAdjustableArrowCap(float height, float width, BOOL isFilled, ref GpAdjustableArrowCap* cap) { fixed (GpAdjustableArrowCap** cap2 = &cap) { return GdipCreateAdjustableArrowCap(height, width, isFilled, cap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateAdjustableArrowCap(float height, float width, BOOL isFilled, GpAdjustableArrowCap** cap); internal unsafe static Status GdipCreateBitmapFromFile(string filename, ref GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { IntPtr value; if (filename == null) value = (IntPtr)(void*)null; else { ref pinnableReference = ref filename.GetPinnableReference(); value = (IntPtr)(&pinnableReference); } return GdipCreateBitmapFromFile((char*)(long)value, bitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromFile(PCWSTR filename, GpBitmap** bitmap); internal unsafe static Status GdipCreateBitmapFromFileICM(string filename, ref GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { IntPtr value; if (filename == null) value = (IntPtr)(void*)null; else { ref pinnableReference = ref filename.GetPinnableReference(); value = (IntPtr)(&pinnableReference); } return GdipCreateBitmapFromFileICM((char*)(long)value, bitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromFileICM(PCWSTR filename, GpBitmap** bitmap); internal unsafe static Status GdipCreateBitmapFromGraphics(int width, int height, ref GpGraphics target, ref GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { fixed (GpGraphics* target2 = &target) { return GdipCreateBitmapFromGraphics(width, height, target2, bitmap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromGraphics(int width, int height, GpGraphics* target, GpBitmap** bitmap); internal unsafe static Status GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, ref GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { return GdipCreateBitmapFromHBITMAP(hbm, hpal, bitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromHBITMAP(HBITMAP hbm, HPALETTE hpal, GpBitmap** bitmap); internal unsafe static Status GdipCreateBitmapFromHICON(HICON hicon, ref GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { return GdipCreateBitmapFromHICON(hicon, bitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromHICON(HICON hicon, GpBitmap** bitmap); internal unsafe static Status GdipCreateBitmapFromResource(HINSTANCE hInstance, string lpBitmapName, ref GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { IntPtr intPtr; if (lpBitmapName == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref lpBitmapName.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; return GdipCreateBitmapFromResource(hInstance, value, bitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromResource(HINSTANCE hInstance, PCWSTR lpBitmapName, GpBitmap** bitmap); internal unsafe static Status GdipCreateBitmapFromScan0(int width, int height, int stride, int format, byte? scan0, out GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { byte valueOrDefault = scan0.GetValueOrDefault(); return GdipCreateBitmapFromScan0(width, height, stride, format, (byte*)(long)(scan0.HasValue ? ((IntPtr)(&valueOrDefault)) : ((IntPtr)(void*)null)), bitmap2); } } [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); internal unsafe static Status GdipCreateBitmapFromStream(IStream* stream, ref GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { return GdipCreateBitmapFromStream(stream, bitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromStream(IStream* stream, GpBitmap** bitmap); internal unsafe static Status GdipCreateBitmapFromStreamICM(IStream* stream, ref GpBitmap* bitmap) { fixed (GpBitmap** bitmap2 = &bitmap) { return GdipCreateBitmapFromStreamICM(stream, bitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateBitmapFromStreamICM(IStream* stream, GpBitmap** bitmap); internal unsafe static Status GdipCreateCachedBitmap(ref GpBitmap bitmap, ref GpGraphics graphics, ref GpCachedBitmap* cachedBitmap) { fixed (GpCachedBitmap** cachedBitmap2 = &cachedBitmap) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipCreateCachedBitmap(bitmap2, graphics2, cachedBitmap2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateCachedBitmap(GpBitmap* bitmap, GpGraphics* graphics, GpCachedBitmap** cachedBitmap); internal unsafe static Status GdipCreateCustomLineCap(ref GpPath fillPath, ref GpPath strokePath, LineCap baseCap, float baseInset, ref GpCustomLineCap* customCap) { fixed (GpCustomLineCap** customCap2 = &customCap) { fixed (GpPath* strokePath2 = &strokePath) { fixed (GpPath* fillPath2 = &fillPath) { return GdipCreateCustomLineCap(fillPath2, strokePath2, baseCap, baseInset, customCap2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateCustomLineCap(GpPath* fillPath, GpPath* strokePath, LineCap baseCap, float baseInset, GpCustomLineCap** customCap); internal unsafe static Status GdipCreateEffect(Guid guid, ref CGpEffect* effect) { fixed (CGpEffect** effect2 = &effect) { return GdipCreateEffect(guid, effect2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateEffect(Guid guid, CGpEffect** effect); internal unsafe static Status GdipCreateFont([In] [IsReadOnly] ref GpFontFamily fontFamily, float emSize, int style, Unit unit, ref GpFont* font) { fixed (GpFont** font2 = &font) { fixed (GpFontFamily* fontFamily2 = &fontFamily) { return GdipCreateFont(fontFamily2, emSize, style, unit, font2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFont(GpFontFamily* fontFamily, float emSize, int style, Unit unit, GpFont** font); internal unsafe static Status GdipCreateFontFamilyFromName(string name, ref GpFontCollection fontCollection, ref GpFontFamily* fontFamily) { fixed (GpFontFamily** fontFamily2 = &fontFamily) { fixed (GpFontCollection* fontCollection2 = &fontCollection) { IntPtr value; if (name == null) value = (IntPtr)(void*)null; else { ref pinnableReference = ref name.GetPinnableReference(); value = (IntPtr)(&pinnableReference); } return GdipCreateFontFamilyFromName((char*)(long)value, fontCollection2, fontFamily2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFontFamilyFromName(PCWSTR name, GpFontCollection* fontCollection, GpFontFamily** fontFamily); internal unsafe static Status GdipCreateFontFromDC(HDC hdc, ref GpFont* font) { fixed (GpFont** font2 = &font) { return GdipCreateFontFromDC(hdc, font2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFontFromDC(HDC hdc, GpFont** font); internal unsafe static Status GdipCreateFontFromLogfont(HDC hdc, [In] [IsReadOnly] ref LOGFONTW logfont, ref GpFont* font) { fixed (GpFont** font2 = &font) { fixed (LOGFONTW* logfont2 = &logfont) { return GdipCreateFontFromLogfont(hdc, logfont2, font2); } } } [DllImport("gdiplus.dll", EntryPoint = "GdipCreateFontFromLogfontW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFontFromLogfont(HDC hdc, LOGFONTW* logfont, GpFont** font); internal unsafe static Status GdipCreateFromHDC(HDC hdc, ref GpGraphics* graphics) { fixed (GpGraphics** graphics2 = &graphics) { return GdipCreateFromHDC(hdc, graphics2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFromHDC(HDC hdc, GpGraphics** graphics); internal unsafe static Status GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, ref GpGraphics* graphics) { fixed (GpGraphics** graphics2 = &graphics) { return GdipCreateFromHDC2(hdc, hDevice, graphics2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFromHDC2(HDC hdc, HANDLE hDevice, GpGraphics** graphics); internal unsafe static Status GdipCreateFromHWND(HWND hwnd, ref GpGraphics* graphics) { fixed (GpGraphics** graphics2 = &graphics) { return GdipCreateFromHWND(hwnd, graphics2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateFromHWND(HWND hwnd, GpGraphics** graphics); [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal static extern HPALETTE GdipCreateHalftonePalette(); internal unsafe static Status GdipCreateHatchBrush(HatchStyle hatchstyle, uint forecol, uint backcol, ref GpHatch* brush) { fixed (GpHatch** brush2 = &brush) { return GdipCreateHatchBrush(hatchstyle, forecol, backcol, brush2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateHatchBrush(HatchStyle hatchstyle, uint forecol, uint backcol, GpHatch** brush); internal unsafe static Status GdipCreateHBITMAPFromBitmap(ref GpBitmap bitmap, ref HBITMAP hbmReturn, uint background) { fixed (HBITMAP* hbmReturn2 = &hbmReturn) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipCreateHBITMAPFromBitmap(bitmap2, hbmReturn2, background); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateHBITMAPFromBitmap(GpBitmap* bitmap, HBITMAP* hbmReturn, uint background); internal unsafe static Status GdipCreateHICONFromBitmap(ref GpBitmap bitmap, ref HICON hbmReturn) { fixed (HICON* hbmReturn2 = &hbmReturn) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipCreateHICONFromBitmap(bitmap2, hbmReturn2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateHICONFromBitmap(GpBitmap* bitmap, HICON* hbmReturn); internal unsafe static Status GdipCreateImageAttributes(ref GpImageAttributes* imageattr) { fixed (GpImageAttributes** imageattr2 = &imageattr) { return GdipCreateImageAttributes(imageattr2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateImageAttributes(GpImageAttributes** imageattr); internal unsafe static Status GdipCreateLineBrush([In] [IsReadOnly] ref PointF point1, [In] [IsReadOnly] ref PointF point2, uint color1, uint color2, WrapMode wrapMode, ref GpLineGradient* lineGradient) { fixed (GpLineGradient** lineGradient2 = &lineGradient) { fixed (PointF* point4 = &point2) { fixed (PointF* point3 = &point1) { return GdipCreateLineBrush(point3, point4, color1, color2, wrapMode, lineGradient2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateLineBrush(PointF* point1, PointF* point2, uint color1, uint color2, WrapMode wrapMode, GpLineGradient** lineGradient); internal unsafe static Status GdipCreateLineBrushFromRect([In] [IsReadOnly] ref RectF rect, uint color1, uint color2, LinearGradientMode mode, WrapMode wrapMode, ref GpLineGradient* lineGradient) { fixed (GpLineGradient** lineGradient2 = &lineGradient) { fixed (RectF* rect2 = &rect) { return GdipCreateLineBrushFromRect(rect2, color1, color2, mode, wrapMode, lineGradient2); } } } [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); internal unsafe static Status GdipCreateLineBrushFromRectWithAngle([In] [IsReadOnly] ref RectF rect, uint color1, uint color2, float angle, BOOL isAngleScalable, WrapMode wrapMode, ref GpLineGradient* lineGradient) { fixed (GpLineGradient** lineGradient2 = &lineGradient) { fixed (RectF* rect2 = &rect) { return GdipCreateLineBrushFromRectWithAngle(rect2, color1, color2, angle, isAngleScalable, wrapMode, lineGradient2); } } } [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); internal unsafe static Status GdipCreateMatrix(ref Matrix* matrix) { fixed (Matrix** matrix2 = &matrix) { return GdipCreateMatrix(matrix2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMatrix(Matrix** matrix); internal unsafe static Status GdipCreateMatrix2(float m11, float m12, float m21, float m22, float dx, float dy, ref Matrix* matrix) { fixed (Matrix** matrix2 = &matrix) { return GdipCreateMatrix2(m11, m12, m21, m22, dx, dy, matrix2); } } [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); internal unsafe static Status GdipCreateMatrix3([In] [IsReadOnly] ref RectF rect, [In] [IsReadOnly] ref PointF dstplg, ref Matrix* matrix) { fixed (Matrix** matrix2 = &matrix) { fixed (PointF* dstplg2 = &dstplg) { fixed (RectF* rect2 = &rect) { return GdipCreateMatrix3(rect2, dstplg2, matrix2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMatrix3(RectF* rect, PointF* dstplg, Matrix** matrix); internal unsafe static Status GdipCreateMatrix3I([In] [IsReadOnly] ref Rect rect, [In] [IsReadOnly] ref Point dstplg, ref Matrix* matrix) { fixed (Matrix** matrix2 = &matrix) { fixed (Point* dstplg2 = &dstplg) { fixed (Rect* rect2 = &rect) { return GdipCreateMatrix3I(rect2, dstplg2, matrix2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMatrix3I(Rect* rect, Point* dstplg, Matrix** matrix); internal unsafe static Status GdipCreateMetafileFromEmf(HENHMETAFILE hEmf, BOOL deleteEmf, ref GpMetafile* metafile) { fixed (GpMetafile** metafile2 = &metafile) { return GdipCreateMetafileFromEmf(hEmf, deleteEmf, metafile2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMetafileFromEmf(HENHMETAFILE hEmf, BOOL deleteEmf, GpMetafile** metafile); internal unsafe static Status GdipCreateMetafileFromFile(string file, ref GpMetafile* metafile) { fixed (GpMetafile** metafile2 = &metafile) { IntPtr value; if (file == null) value = (IntPtr)(void*)null; else { ref pinnableReference = ref file.GetPinnableReference(); value = (IntPtr)(&pinnableReference); } return GdipCreateMetafileFromFile((char*)(long)value, metafile2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMetafileFromFile(PCWSTR file, GpMetafile** metafile); internal unsafe static Status GdipCreateMetafileFromStream(IStream* stream, ref GpMetafile* metafile) { fixed (GpMetafile** metafile2 = &metafile) { return GdipCreateMetafileFromStream(stream, metafile2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMetafileFromStream(IStream* stream, GpMetafile** metafile); internal unsafe static Status GdipCreateMetafileFromWmf(HMETAFILE hWmf, BOOL deleteWmf, [In] [IsReadOnly] ref WmfPlaceableFileHeader wmfPlaceableFileHeader, ref GpMetafile* metafile) { fixed (GpMetafile** metafile2 = &metafile) { fixed (WmfPlaceableFileHeader* wmfPlaceableFileHeader2 = &wmfPlaceableFileHeader) { return GdipCreateMetafileFromWmf(hWmf, deleteWmf, wmfPlaceableFileHeader2, metafile2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateMetafileFromWmf(HMETAFILE hWmf, BOOL deleteWmf, WmfPlaceableFileHeader* wmfPlaceableFileHeader, GpMetafile** metafile); internal unsafe static Status GdipCreatePath(FillMode brushMode, ref GpPath* path) { fixed (GpPath** path2 = &path) { return GdipCreatePath(brushMode, path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePath(FillMode brushMode, GpPath** path); internal unsafe static Status GdipCreatePath2([In] [IsReadOnly] ref PointF param0, [In] [IsReadOnly] ref byte param1, int param2, FillMode param3, ref GpPath* path) { fixed (GpPath** path2 = &path) { fixed (byte* param5 = &param1) { fixed (PointF* param4 = &param0) { return GdipCreatePath2(param4, param5, param2, param3, path2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePath2(PointF* param0, byte* param1, int param2, FillMode param3, GpPath** path); internal unsafe static Status GdipCreatePath2I([In] [IsReadOnly] ref Point param0, [In] [IsReadOnly] ref byte param1, int param2, FillMode param3, ref GpPath* path) { fixed (GpPath** path2 = &path) { fixed (byte* param5 = &param1) { fixed (Point* param4 = &param0) { return GdipCreatePath2I(param4, param5, param2, param3, path2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePath2I(Point* param0, byte* param1, int param2, FillMode param3, GpPath** path); internal unsafe static Status GdipCreatePathGradient([In] [IsReadOnly] ref PointF points, int count, WrapMode wrapMode, ref GpPathGradient* polyGradient) { fixed (GpPathGradient** polyGradient2 = &polyGradient) { fixed (PointF* points2 = &points) { return GdipCreatePathGradient(points2, count, wrapMode, polyGradient2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePathGradient(PointF* points, int count, WrapMode wrapMode, GpPathGradient** polyGradient); internal unsafe static Status GdipCreatePathGradientFromPath([In] [IsReadOnly] ref GpPath path, ref GpPathGradient* polyGradient) { fixed (GpPathGradient** polyGradient2 = &polyGradient) { fixed (GpPath* path2 = &path) { return GdipCreatePathGradientFromPath(path2, polyGradient2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePathGradientFromPath(GpPath* path, GpPathGradient** polyGradient); internal unsafe static Status GdipCreatePathGradientI([In] [IsReadOnly] ref Point points, int count, WrapMode wrapMode, ref GpPathGradient* polyGradient) { fixed (GpPathGradient** polyGradient2 = &polyGradient) { fixed (Point* points2 = &points) { return GdipCreatePathGradientI(points2, count, wrapMode, polyGradient2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePathGradientI(Point* points, int count, WrapMode wrapMode, GpPathGradient** polyGradient); internal unsafe static Status GdipCreatePathIter(ref GpPathIterator* iterator, ref GpPath path) { fixed (GpPath* path2 = &path) { fixed (GpPathIterator** iterator2 = &iterator) { return GdipCreatePathIter(iterator2, path2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePathIter(GpPathIterator** iterator, GpPath* path); internal unsafe static Status GdipCreatePen1(uint color, float width, Unit unit, ref GpPen* pen) { fixed (GpPen** pen2 = &pen) { return GdipCreatePen1(color, width, unit, pen2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePen1(uint color, float width, Unit unit, GpPen** pen); internal unsafe static Status GdipCreatePen2(ref GpBrush brush, float width, Unit unit, ref GpPen* pen) { fixed (GpPen** pen2 = &pen) { fixed (GpBrush* brush2 = &brush) { return GdipCreatePen2(brush2, width, unit, pen2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreatePen2(GpBrush* brush, float width, Unit unit, GpPen** pen); internal unsafe static Status GdipCreateRegion(ref GpRegion* region) { fixed (GpRegion** region2 = &region) { return GdipCreateRegion(region2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegion(GpRegion** region); internal unsafe static Status GdipCreateRegionHrgn(HRGN hRgn, ref GpRegion* region) { fixed (GpRegion** region2 = &region) { return GdipCreateRegionHrgn(hRgn, region2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegionHrgn(HRGN hRgn, GpRegion** region); internal unsafe static Status GdipCreateRegionPath(ref GpPath path, ref GpRegion* region) { fixed (GpRegion** region2 = &region) { fixed (GpPath* path2 = &path) { return GdipCreateRegionPath(path2, region2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegionPath(GpPath* path, GpRegion** region); internal unsafe static Status GdipCreateRegionRect([In] [IsReadOnly] ref RectF rect, ref GpRegion* region) { fixed (GpRegion** region2 = &region) { fixed (RectF* rect2 = &rect) { return GdipCreateRegionRect(rect2, region2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegionRect(RectF* rect, GpRegion** region); internal unsafe static Status GdipCreateRegionRgnData([In] [IsReadOnly] ref byte regionData, int size, ref GpRegion* region) { fixed (GpRegion** region2 = &region) { fixed (byte* regionData2 = &regionData) { return GdipCreateRegionRgnData(regionData2, size, region2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateRegionRgnData(byte* regionData, int size, GpRegion** region); internal unsafe static Status GdipCreateSolidFill(uint color, ref GpSolidFill* brush) { fixed (GpSolidFill** brush2 = &brush) { return GdipCreateSolidFill(color, brush2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateSolidFill(uint color, GpSolidFill** brush); internal unsafe static Status GdipCreateStringFormat(int formatAttributes, ushort language, ref GpStringFormat* format) { fixed (GpStringFormat** format2 = &format) { return GdipCreateStringFormat(formatAttributes, language, format2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateStringFormat(int formatAttributes, ushort language, GpStringFormat** format); internal unsafe static Status GdipCreateTexture(ref GpImage image, WrapMode wrapmode, ref GpTexture* texture) { fixed (GpTexture** texture2 = &texture) { fixed (GpImage* image2 = &image) { return GdipCreateTexture(image2, wrapmode, texture2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipCreateTexture(GpImage* image, WrapMode wrapmode, GpTexture** texture); internal unsafe static Status GdipCreateTexture2(ref GpImage image, WrapMode wrapmode, float x, float y, float width, float height, ref GpTexture* texture) { fixed (GpTexture** texture2 = &texture) { fixed (GpImage* image2 = &image) { return GdipCreateTexture2(image2, wrapmode, x, y, width, height, texture2); } } } [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); internal unsafe static Status GdipCreateTextureIA(ref GpImage image, [In] [IsReadOnly] ref GpImageAttributes imageAttributes, float x, float y, float width, float height, ref GpTexture* texture) { fixed (GpTexture** texture2 = &texture) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (GpImage* image2 = &image) { return GdipCreateTextureIA(image2, imageAttributes2, x, y, width, height, texture2); } } } } [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); internal unsafe static Status GdipDeleteBrush(ref GpBrush brush) { fixed (GpBrush* brush2 = &brush) { return GdipDeleteBrush(brush2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteBrush(GpBrush* brush); internal unsafe static Status GdipDeleteCachedBitmap(ref GpCachedBitmap cachedBitmap) { fixed (GpCachedBitmap* cachedBitmap2 = &cachedBitmap) { return GdipDeleteCachedBitmap(cachedBitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteCachedBitmap(GpCachedBitmap* cachedBitmap); internal unsafe static Status GdipDeleteCustomLineCap(ref GpCustomLineCap customCap) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipDeleteCustomLineCap(customCap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteCustomLineCap(GpCustomLineCap* customCap); internal unsafe static Status GdipDeleteEffect(ref CGpEffect effect) { fixed (CGpEffect* effect2 = &effect) { return GdipDeleteEffect(effect2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteEffect(CGpEffect* effect); internal unsafe static Status GdipDeleteFont(ref GpFont font) { fixed (GpFont* font2 = &font) { return GdipDeleteFont(font2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteFont(GpFont* font); internal unsafe static Status GdipDeleteFontFamily(ref GpFontFamily fontFamily) { fixed (GpFontFamily* fontFamily2 = &fontFamily) { return GdipDeleteFontFamily(fontFamily2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteFontFamily(GpFontFamily* fontFamily); internal unsafe static Status GdipDeleteGraphics(ref GpGraphics graphics) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDeleteGraphics(graphics2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteGraphics(GpGraphics* graphics); internal unsafe static Status GdipDeleteMatrix(ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { return GdipDeleteMatrix(matrix2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteMatrix(Matrix* matrix); internal unsafe static Status GdipDeletePath(ref GpPath path) { fixed (GpPath* path2 = &path) { return GdipDeletePath(path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeletePath(GpPath* path); internal unsafe static Status GdipDeletePathIter(ref GpPathIterator iterator) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipDeletePathIter(iterator2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeletePathIter(GpPathIterator* iterator); internal unsafe static Status GdipDeletePen(ref GpPen pen) { fixed (GpPen* pen2 = &pen) { return GdipDeletePen(pen2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeletePen(GpPen* pen); internal unsafe static Status GdipDeletePrivateFontCollection(ref GpFontCollection* fontCollection) { fixed (GpFontCollection** fontCollection2 = &fontCollection) { return GdipDeletePrivateFontCollection(fontCollection2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeletePrivateFontCollection(GpFontCollection** fontCollection); internal unsafe static Status GdipDeleteRegion(ref GpRegion region) { fixed (GpRegion* region2 = &region) { return GdipDeleteRegion(region2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteRegion(GpRegion* region); internal unsafe static Status GdipDeleteStringFormat(ref GpStringFormat format) { fixed (GpStringFormat* format2 = &format) { return GdipDeleteStringFormat(format2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDeleteStringFormat(GpStringFormat* format); internal unsafe static Status GdipDisposeImage(ref GpImage image) { fixed (GpImage* image2 = &image) { return GdipDisposeImage(image2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDisposeImage(GpImage* image); internal unsafe static Status GdipDisposeImageAttributes(ref GpImageAttributes imageattr) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipDisposeImageAttributes(imageattr2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDisposeImageAttributes(GpImageAttributes* imageattr); internal unsafe static Status GdipDrawArc(ref GpGraphics graphics, ref GpPen pen, float x, float y, float width, float height, float startAngle, float sweepAngle) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawArc(graphics2, pen2, x, y, width, height, startAngle, sweepAngle); } } } [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); internal unsafe static Status GdipDrawBezier(ref GpGraphics graphics, ref GpPen pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawBezier(graphics2, pen2, x1, y1, x2, y2, x3, y3, x4, y4); } } } [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); internal unsafe static Status GdipDrawBeziers(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawBeziers(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawBeziers(GpGraphics* graphics, GpPen* pen, PointF* points, int count); internal unsafe static Status GdipDrawBeziersI(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawBeziersI(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawBeziersI(GpGraphics* graphics, GpPen* pen, Point* points, int count); internal unsafe static Status GdipDrawCachedBitmap(ref GpGraphics graphics, ref GpCachedBitmap cachedBitmap, int x, int y) { fixed (GpCachedBitmap* cachedBitmap2 = &cachedBitmap) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawCachedBitmap(graphics2, cachedBitmap2, x, y); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCachedBitmap(GpGraphics* graphics, GpCachedBitmap* cachedBitmap, int x, int y); internal unsafe static Status GdipDrawClosedCurve(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawClosedCurve(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawClosedCurve(GpGraphics* graphics, GpPen* pen, PointF* points, int count); internal unsafe static Status GdipDrawClosedCurve2(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref PointF points, int count, float tension) { fixed (PointF* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawClosedCurve2(graphics2, pen2, points2, count, tension); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawClosedCurve2(GpGraphics* graphics, GpPen* pen, PointF* points, int count, float tension); internal unsafe static Status GdipDrawClosedCurve2I(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Point points, int count, float tension) { fixed (Point* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawClosedCurve2I(graphics2, pen2, points2, count, tension); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawClosedCurve2I(GpGraphics* graphics, GpPen* pen, Point* points, int count, float tension); internal unsafe static Status GdipDrawClosedCurveI(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawClosedCurveI(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawClosedCurveI(GpGraphics* graphics, GpPen* pen, Point* points, int count); internal unsafe static Status GdipDrawCurve(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawCurve(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve(GpGraphics* graphics, GpPen* pen, PointF* points, int count); internal unsafe static Status GdipDrawCurve2(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref PointF points, int count, float tension) { fixed (PointF* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawCurve2(graphics2, pen2, points2, count, tension); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve2(GpGraphics* graphics, GpPen* pen, PointF* points, int count, float tension); internal unsafe static Status GdipDrawCurve2I(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Point points, int count, float tension) { fixed (Point* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawCurve2I(graphics2, pen2, points2, count, tension); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve2I(GpGraphics* graphics, GpPen* pen, Point* points, int count, float tension); internal unsafe static Status GdipDrawCurve3(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref PointF points, int count, int offset, int numberOfSegments, float tension) { fixed (PointF* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawCurve3(graphics2, pen2, points2, count, offset, numberOfSegments, tension); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve3(GpGraphics* graphics, GpPen* pen, PointF* points, int count, int offset, int numberOfSegments, float tension); internal unsafe static Status GdipDrawCurve3I(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Point points, int count, int offset, int numberOfSegments, float tension) { fixed (Point* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawCurve3I(graphics2, pen2, points2, count, offset, numberOfSegments, tension); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurve3I(GpGraphics* graphics, GpPen* pen, Point* points, int count, int offset, int numberOfSegments, float tension); internal unsafe static Status GdipDrawCurveI(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawCurveI(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawCurveI(GpGraphics* graphics, GpPen* pen, Point* points, int count); internal unsafe static Status GdipDrawEllipse(ref GpGraphics graphics, ref GpPen pen, float x, float y, float width, float height) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawEllipse(graphics2, pen2, x, y, width, height); } } } [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); internal unsafe static Status GdipDrawImage(ref GpGraphics graphics, ref GpImage image, float x, float y) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImage(graphics2, image2, x, y); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImage(GpGraphics* graphics, GpImage* image, float x, float y); internal unsafe static Status GdipDrawImageFX(ref GpGraphics graphics, ref GpImage image, ref RectF source, ref Matrix xForm, ref CGpEffect effect, ref GpImageAttributes imageAttributes, Unit srcUnit) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (CGpEffect* effect2 = &effect) { fixed (Matrix* xForm2 = &xForm) { fixed (RectF* source2 = &source) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImageFX(graphics2, image2, source2, xForm2, effect2, imageAttributes2, srcUnit); } } } } } } } [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); internal unsafe static Status GdipDrawImagePointRect(ref GpGraphics graphics, ref GpImage image, float x, float y, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImagePointRect(graphics2, image2, x, y, srcx, srcy, srcwidth, srcheight, 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); internal unsafe static Status GdipDrawImagePoints(ref GpGraphics graphics, ref GpImage image, [In] [IsReadOnly] ref PointF dstpoints, int count) { fixed (PointF* dstpoints2 = &dstpoints) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImagePoints(graphics2, image2, dstpoints2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePoints(GpGraphics* graphics, GpImage* image, PointF* dstpoints, int count); internal unsafe static Status GdipDrawImagePointsI(ref GpGraphics graphics, ref GpImage image, [In] [IsReadOnly] ref Point dstpoints, int count) { fixed (Point* dstpoints2 = &dstpoints) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImagePointsI(graphics2, image2, dstpoints2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePointsI(GpGraphics* graphics, GpImage* image, Point* dstpoints, int count); internal unsafe static Status GdipDrawImagePointsRect(ref GpGraphics graphics, ref GpImage image, [In] [IsReadOnly] ref PointF points, int count, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit, [In] [IsReadOnly] ref GpImageAttributes imageAttributes, IntPtr callback, void* callbackData) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (PointF* points2 = &points) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImagePointsRect(graphics2, image2, points2, count, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes2, callback, callbackData); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePointsRect(GpGraphics* graphics, GpImage* image, PointF* points, int count, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit, GpImageAttributes* imageAttributes, IntPtr callback, void* callbackData); internal unsafe static Status GdipDrawImagePointsRectI(ref GpGraphics graphics, ref GpImage image, [In] [IsReadOnly] ref Point points, int count, int srcx, int srcy, int srcwidth, int srcheight, Unit srcUnit, [In] [IsReadOnly] ref GpImageAttributes imageAttributes, IntPtr callback, void* callbackData) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (Point* points2 = &points) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImagePointsRectI(graphics2, image2, points2, count, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes2, callback, callbackData); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawImagePointsRectI(GpGraphics* graphics, GpImage* image, Point* points, int count, int srcx, int srcy, int srcwidth, int srcheight, Unit srcUnit, GpImageAttributes* imageAttributes, IntPtr callback, void* callbackData); internal unsafe static Status GdipDrawImageRect(ref GpGraphics graphics, ref GpImage image, float x, float y, float width, float height) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImageRect(graphics2, image2, x, y, width, height); } } } [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); internal unsafe static Status GdipDrawImageRectRect(ref GpGraphics graphics, ref GpImage image, float dstx, float dsty, float dstwidth, float dstheight, float srcx, float srcy, float srcwidth, float srcheight, Unit srcUnit, [In] [IsReadOnly] ref GpImageAttributes imageAttributes, IntPtr callback, void* callbackData) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (GpImage* image2 = &image) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawImageRectRect(graphics2, image2, dstx, dsty, dstwidth, dstheight, srcx, srcy, srcwidth, srcheight, srcUnit, imageAttributes2, callback, callbackData); } } } } [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); internal unsafe static Status GdipDrawLine(ref GpGraphics graphics, ref GpPen pen, float x1, float y1, float x2, float y2) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawLine(graphics2, pen2, x1, y1, x2, y2); } } } [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); internal unsafe static Status GdipDrawLines(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawLines(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawLines(GpGraphics* graphics, GpPen* pen, PointF* points, int count); internal unsafe static Status GdipDrawLinesI(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawLinesI(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawLinesI(GpGraphics* graphics, GpPen* pen, Point* points, int count); internal unsafe static Status GdipDrawPath(ref GpGraphics graphics, ref GpPen pen, ref GpPath path) { fixed (GpPath* path2 = &path) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawPath(graphics2, pen2, path2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawPath(GpGraphics* graphics, GpPen* pen, GpPath* path); internal unsafe static Status GdipDrawPie(ref GpGraphics graphics, ref GpPen pen, float x, float y, float width, float height, float startAngle, float sweepAngle) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawPie(graphics2, pen2, x, y, width, height, startAngle, sweepAngle); } } } [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); internal unsafe static Status GdipDrawPolygon(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawPolygon(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawPolygon(GpGraphics* graphics, GpPen* pen, PointF* points, int count); internal unsafe static Status GdipDrawPolygonI(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawPolygonI(graphics2, pen2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawPolygonI(GpGraphics* graphics, GpPen* pen, Point* points, int count); internal unsafe static Status GdipDrawRectangle(ref GpGraphics graphics, ref GpPen pen, float x, float y, float width, float height) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawRectangle(graphics2, pen2, x, y, width, height); } } } [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); internal unsafe static Status GdipDrawRectangles(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref RectF rects, int count) { fixed (RectF* rects2 = &rects) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawRectangles(graphics2, pen2, rects2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawRectangles(GpGraphics* graphics, GpPen* pen, RectF* rects, int count); internal unsafe static Status GdipDrawRectanglesI(ref GpGraphics graphics, ref GpPen pen, [In] [IsReadOnly] ref Rect rects, int count) { fixed (Rect* rects2 = &rects) { fixed (GpPen* pen2 = &pen) { fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawRectanglesI(graphics2, pen2, rects2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipDrawRectanglesI(GpGraphics* graphics, GpPen* pen, Rect* rects, int count); internal unsafe static Status GdipDrawString(ref GpGraphics graphics, string string, int length, [In] [IsReadOnly] ref GpFont font, [In] [IsReadOnly] ref RectF layoutRect, [In] [IsReadOnly] ref GpStringFormat stringFormat, [In] [IsReadOnly] ref GpBrush brush) { fixed (GpBrush* brush2 = &brush) { fixed (GpStringFormat* stringFormat2 = &stringFormat) { fixed (RectF* layoutRect2 = &layoutRect) { fixed (GpFont* font2 = &font) { IntPtr intPtr; if (string == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref string.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (GpGraphics* graphics2 = &graphics) { return GdipDrawString(graphics2, value, length, font2, layoutRect2, stringFormat2, brush2); } } } } } } [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); internal unsafe static Status GdipEndContainer(ref GpGraphics graphics, uint state) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEndContainer(graphics2, state); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEndContainer(GpGraphics* graphics, uint state); internal unsafe static Status GdipEnumerateMetafileDestPoint(ref GpGraphics graphics, [In] [IsReadOnly] ref GpMetafile metafile, [In] [IsReadOnly] ref PointF destPoint, IntPtr callback, void* callbackData, [In] [IsReadOnly] ref GpImageAttributes imageAttributes) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (PointF* destPoint2 = &destPoint) { fixed (GpMetafile* metafile2 = &metafile) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEnumerateMetafileDestPoint(graphics2, metafile2, destPoint2, callback, callbackData, imageAttributes2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileDestPoint(GpGraphics* graphics, GpMetafile* metafile, PointF* destPoint, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); internal unsafe static Status GdipEnumerateMetafileDestPoints(ref GpGraphics graphics, [In] [IsReadOnly] ref GpMetafile metafile, [In] [IsReadOnly] ref PointF destPoints, int count, IntPtr callback, void* callbackData, [In] [IsReadOnly] ref GpImageAttributes imageAttributes) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (PointF* destPoints2 = &destPoints) { fixed (GpMetafile* metafile2 = &metafile) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEnumerateMetafileDestPoints(graphics2, metafile2, destPoints2, count, callback, callbackData, imageAttributes2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileDestPoints(GpGraphics* graphics, GpMetafile* metafile, PointF* destPoints, int count, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); internal unsafe static Status GdipEnumerateMetafileDestPointsI(ref GpGraphics graphics, [In] [IsReadOnly] ref GpMetafile metafile, [In] [IsReadOnly] ref Point destPoints, int count, IntPtr callback, void* callbackData, [In] [IsReadOnly] ref GpImageAttributes imageAttributes) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (Point* destPoints2 = &destPoints) { fixed (GpMetafile* metafile2 = &metafile) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEnumerateMetafileDestPointsI(graphics2, metafile2, destPoints2, count, callback, callbackData, imageAttributes2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileDestPointsI(GpGraphics* graphics, GpMetafile* metafile, Point* destPoints, int count, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); internal unsafe static Status GdipEnumerateMetafileDestRect(ref GpGraphics graphics, [In] [IsReadOnly] ref GpMetafile metafile, [In] [IsReadOnly] ref RectF destRect, IntPtr callback, void* callbackData, [In] [IsReadOnly] ref GpImageAttributes imageAttributes) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (RectF* destRect2 = &destRect) { fixed (GpMetafile* metafile2 = &metafile) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEnumerateMetafileDestRect(graphics2, metafile2, destRect2, callback, callbackData, imageAttributes2); } } } } } [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); internal unsafe static Status GdipEnumerateMetafileSrcRectDestPoint(ref GpGraphics graphics, [In] [IsReadOnly] ref GpMetafile metafile, [In] [IsReadOnly] ref PointF destPoint, [In] [IsReadOnly] ref RectF srcRect, Unit srcUnit, IntPtr callback, void* callbackData, [In] [IsReadOnly] ref GpImageAttributes imageAttributes) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (RectF* srcRect2 = &srcRect) { fixed (PointF* destPoint2 = &destPoint) { fixed (GpMetafile* metafile2 = &metafile) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEnumerateMetafileSrcRectDestPoint(graphics2, metafile2, destPoint2, srcRect2, srcUnit, callback, callbackData, imageAttributes2); } } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileSrcRectDestPoint(GpGraphics* graphics, GpMetafile* metafile, PointF* destPoint, RectF* srcRect, Unit srcUnit, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); internal unsafe static Status GdipEnumerateMetafileSrcRectDestPoints(ref GpGraphics graphics, [In] [IsReadOnly] ref GpMetafile metafile, [In] [IsReadOnly] ref PointF destPoints, int count, [In] [IsReadOnly] ref RectF srcRect, Unit srcUnit, IntPtr callback, void* callbackData, [In] [IsReadOnly] ref GpImageAttributes imageAttributes) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (RectF* srcRect2 = &srcRect) { fixed (PointF* destPoints2 = &destPoints) { fixed (GpMetafile* metafile2 = &metafile) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEnumerateMetafileSrcRectDestPoints(graphics2, metafile2, destPoints2, count, srcRect2, srcUnit, callback, callbackData, imageAttributes2); } } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileSrcRectDestPoints(GpGraphics* graphics, GpMetafile* metafile, PointF* destPoints, int count, RectF* srcRect, Unit srcUnit, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); internal unsafe static Status GdipEnumerateMetafileSrcRectDestPointsI(ref GpGraphics graphics, [In] [IsReadOnly] ref GpMetafile metafile, [In] [IsReadOnly] ref Point destPoints, int count, [In] [IsReadOnly] ref Rect srcRect, Unit srcUnit, IntPtr callback, void* callbackData, [In] [IsReadOnly] ref GpImageAttributes imageAttributes) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (Rect* srcRect2 = &srcRect) { fixed (Point* destPoints2 = &destPoints) { fixed (GpMetafile* metafile2 = &metafile) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEnumerateMetafileSrcRectDestPointsI(graphics2, metafile2, destPoints2, count, srcRect2, srcUnit, callback, callbackData, imageAttributes2); } } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipEnumerateMetafileSrcRectDestPointsI(GpGraphics* graphics, GpMetafile* metafile, Point* destPoints, int count, Rect* srcRect, Unit srcUnit, IntPtr callback, void* callbackData, GpImageAttributes* imageAttributes); internal unsafe static Status GdipEnumerateMetafileSrcRectDestRect(ref GpGraphics graphics, [In] [IsReadOnly] ref GpMetafile metafile, [In] [IsReadOnly] ref RectF destRect, [In] [IsReadOnly] ref RectF srcRect, Unit srcUnit, IntPtr callback, void* callbackData, [In] [IsReadOnly] ref GpImageAttributes imageAttributes) { fixed (GpImageAttributes* imageAttributes2 = &imageAttributes) { fixed (RectF* srcRect2 = &srcRect) { fixed (RectF* destRect2 = &destRect) { fixed (GpMetafile* metafile2 = &metafile) { fixed (GpGraphics* graphics2 = &graphics) { return GdipEnumerateMetafileSrcRectDestRect(graphics2, metafile2, destRect2, srcRect2, srcUnit, callback, callbackData, imageAttributes2); } } } } } } [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); internal unsafe static Status GdipFillClosedCurve(ref GpGraphics graphics, ref GpBrush brush, [In] [IsReadOnly] ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillClosedCurve(graphics2, brush2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillClosedCurve(GpGraphics* graphics, GpBrush* brush, PointF* points, int count); internal unsafe static Status GdipFillClosedCurve2(ref GpGraphics graphics, ref GpBrush brush, [In] [IsReadOnly] ref PointF points, int count, float tension, FillMode fillMode) { fixed (PointF* points2 = &points) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillClosedCurve2(graphics2, brush2, points2, count, tension, fillMode); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillClosedCurve2(GpGraphics* graphics, GpBrush* brush, PointF* points, int count, float tension, FillMode fillMode); internal unsafe static Status GdipFillClosedCurve2I(ref GpGraphics graphics, ref GpBrush brush, [In] [IsReadOnly] ref Point points, int count, float tension, FillMode fillMode) { fixed (Point* points2 = &points) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillClosedCurve2I(graphics2, brush2, points2, count, tension, fillMode); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillClosedCurve2I(GpGraphics* graphics, GpBrush* brush, Point* points, int count, float tension, FillMode fillMode); internal unsafe static Status GdipFillClosedCurveI(ref GpGraphics graphics, ref GpBrush brush, [In] [IsReadOnly] ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillClosedCurveI(graphics2, brush2, points2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillClosedCurveI(GpGraphics* graphics, GpBrush* brush, Point* points, int count); internal unsafe static Status GdipFillEllipse(ref GpGraphics graphics, ref GpBrush brush, float x, float y, float width, float height) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillEllipse(graphics2, brush2, x, y, width, height); } } } [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); internal unsafe static Status GdipFillPath(ref GpGraphics graphics, ref GpBrush brush, ref GpPath path) { fixed (GpPath* path2 = &path) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillPath(graphics2, brush2, path2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillPath(GpGraphics* graphics, GpBrush* brush, GpPath* path); internal unsafe static Status GdipFillPie(ref GpGraphics graphics, ref GpBrush brush, float x, float y, float width, float height, float startAngle, float sweepAngle) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillPie(graphics2, brush2, x, y, width, height, startAngle, sweepAngle); } } } [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); internal unsafe static Status GdipFillPolygon(ref GpGraphics graphics, ref GpBrush brush, [In] [IsReadOnly] ref PointF points, int count, FillMode fillMode) { fixed (PointF* points2 = &points) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillPolygon(graphics2, brush2, points2, count, fillMode); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillPolygon(GpGraphics* graphics, GpBrush* brush, PointF* points, int count, FillMode fillMode); internal unsafe static Status GdipFillPolygonI(ref GpGraphics graphics, ref GpBrush brush, [In] [IsReadOnly] ref Point points, int count, FillMode fillMode) { fixed (Point* points2 = &points) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillPolygonI(graphics2, brush2, points2, count, fillMode); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillPolygonI(GpGraphics* graphics, GpBrush* brush, Point* points, int count, FillMode fillMode); internal unsafe static Status GdipFillRectangle(ref GpGraphics graphics, ref GpBrush brush, float x, float y, float width, float height) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillRectangle(graphics2, brush2, x, y, width, height); } } } [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); internal unsafe static Status GdipFillRectangles(ref GpGraphics graphics, ref GpBrush brush, [In] [IsReadOnly] ref RectF rects, int count) { fixed (RectF* rects2 = &rects) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillRectangles(graphics2, brush2, rects2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillRectangles(GpGraphics* graphics, GpBrush* brush, RectF* rects, int count); internal unsafe static Status GdipFillRectanglesI(ref GpGraphics graphics, ref GpBrush brush, [In] [IsReadOnly] ref Rect rects, int count) { fixed (Rect* rects2 = &rects) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillRectanglesI(graphics2, brush2, rects2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillRectanglesI(GpGraphics* graphics, GpBrush* brush, Rect* rects, int count); internal unsafe static Status GdipFillRegion(ref GpGraphics graphics, ref GpBrush brush, ref GpRegion region) { fixed (GpRegion* region2 = &region) { fixed (GpBrush* brush2 = &brush) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFillRegion(graphics2, brush2, region2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFillRegion(GpGraphics* graphics, GpBrush* brush, GpRegion* region); internal unsafe static Status GdipFlattenPath(ref GpPath path, ref Matrix matrix, float flatness) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPath* path2 = &path) { return GdipFlattenPath(path2, matrix2, flatness); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFlattenPath(GpPath* path, Matrix* matrix, float flatness); internal unsafe static Status GdipFlush(ref GpGraphics graphics, FlushIntention intention) { fixed (GpGraphics* graphics2 = &graphics) { return GdipFlush(graphics2, intention); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipFlush(GpGraphics* graphics, FlushIntention intention); internal unsafe static Status GdipGetAdjustableArrowCapFillState(ref GpAdjustableArrowCap cap, ref BOOL fillState) { fixed (BOOL* fillState2 = &fillState) { fixed (GpAdjustableArrowCap* cap2 = &cap) { return GdipGetAdjustableArrowCapFillState(cap2, fillState2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL* fillState); internal unsafe static Status GdipGetAdjustableArrowCapHeight(ref GpAdjustableArrowCap cap, ref float height) { fixed (float* height2 = &height) { fixed (GpAdjustableArrowCap* cap2 = &cap) { return GdipGetAdjustableArrowCapHeight(cap2, height2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAdjustableArrowCapHeight(GpAdjustableArrowCap* cap, float* height); internal unsafe static Status GdipGetAdjustableArrowCapMiddleInset(ref GpAdjustableArrowCap cap, ref float middleInset) { fixed (float* middleInset2 = &middleInset) { fixed (GpAdjustableArrowCap* cap2 = &cap) { return GdipGetAdjustableArrowCapMiddleInset(cap2, middleInset2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAdjustableArrowCapMiddleInset(GpAdjustableArrowCap* cap, float* middleInset); internal unsafe static Status GdipGetAdjustableArrowCapWidth(ref GpAdjustableArrowCap cap, ref float width) { fixed (float* width2 = &width) { fixed (GpAdjustableArrowCap* cap2 = &cap) { return GdipGetAdjustableArrowCapWidth(cap2, width2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAdjustableArrowCapWidth(GpAdjustableArrowCap* cap, float* width); internal unsafe static Status GdipGetAllPropertyItems(ref GpImage image, uint totalBufferSize, uint numProperties, ref PropertyItem allItems) { fixed (PropertyItem* allItems2 = &allItems) { fixed (GpImage* image2 = &image) { return GdipGetAllPropertyItems(image2, totalBufferSize, numProperties, allItems2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetAllPropertyItems(GpImage* image, uint totalBufferSize, uint numProperties, PropertyItem* allItems); internal unsafe static Status GdipGetCellAscent([In] [IsReadOnly] ref GpFontFamily family, int style, ref ushort CellAscent) { fixed (ushort* cellAscent = &CellAscent) { fixed (GpFontFamily* family2 = &family) { return GdipGetCellAscent(family2, style, cellAscent); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCellAscent(GpFontFamily* family, int style, ushort* CellAscent); internal unsafe static Status GdipGetCellDescent([In] [IsReadOnly] ref GpFontFamily family, int style, ref ushort CellDescent) { fixed (ushort* cellDescent = &CellDescent) { fixed (GpFontFamily* family2 = &family) { return GdipGetCellDescent(family2, style, cellDescent); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCellDescent(GpFontFamily* family, int style, ushort* CellDescent); internal unsafe static Status GdipGetClip(ref GpGraphics graphics, ref GpRegion region) { fixed (GpRegion* region2 = &region) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetClip(graphics2, region2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetClip(GpGraphics* graphics, GpRegion* region); internal unsafe static Status GdipGetClipBounds(ref GpGraphics graphics, ref RectF rect) { fixed (RectF* rect2 = &rect) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetClipBounds(graphics2, rect2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetClipBounds(GpGraphics* graphics, RectF* rect); internal unsafe static Status GdipGetCompositingMode(ref GpGraphics graphics, ref CompositingMode compositingMode) { fixed (CompositingMode* compositingMode2 = &compositingMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetCompositingMode(graphics2, compositingMode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCompositingMode(GpGraphics* graphics, CompositingMode* compositingMode); internal unsafe static Status GdipGetCompositingQuality(ref GpGraphics graphics, ref CompositingQuality compositingQuality) { fixed (CompositingQuality* compositingQuality2 = &compositingQuality) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetCompositingQuality(graphics2, compositingQuality2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCompositingQuality(GpGraphics* graphics, CompositingQuality* compositingQuality); internal unsafe static Status GdipGetCustomLineCapBaseCap(ref GpCustomLineCap customCap, ref LineCap baseCap) { fixed (LineCap* baseCap2 = &baseCap) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipGetCustomLineCapBaseCap(customCap2, baseCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapBaseCap(GpCustomLineCap* customCap, LineCap* baseCap); internal unsafe static Status GdipGetCustomLineCapBaseInset(ref GpCustomLineCap customCap, ref float inset) { fixed (float* inset2 = &inset) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipGetCustomLineCapBaseInset(customCap2, inset2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapBaseInset(GpCustomLineCap* customCap, float* inset); internal unsafe static Status GdipGetCustomLineCapStrokeCaps(ref GpCustomLineCap customCap, ref LineCap startCap, ref LineCap endCap) { fixed (LineCap* endCap2 = &endCap) { fixed (LineCap* startCap2 = &startCap) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipGetCustomLineCapStrokeCaps(customCap2, startCap2, endCap2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapStrokeCaps(GpCustomLineCap* customCap, LineCap* startCap, LineCap* endCap); internal unsafe static Status GdipGetCustomLineCapStrokeJoin(ref GpCustomLineCap customCap, ref LineJoin lineJoin) { fixed (LineJoin* lineJoin2 = &lineJoin) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipGetCustomLineCapStrokeJoin(customCap2, lineJoin2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapStrokeJoin(GpCustomLineCap* customCap, LineJoin* lineJoin); internal unsafe static Status GdipGetCustomLineCapType(ref GpCustomLineCap customCap, ref CustomLineCapType capType) { fixed (CustomLineCapType* capType2 = &capType) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipGetCustomLineCapType(customCap2, capType2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapType(GpCustomLineCap* customCap, CustomLineCapType* capType); internal unsafe static Status GdipGetCustomLineCapWidthScale(ref GpCustomLineCap customCap, ref float widthScale) { fixed (float* widthScale2 = &widthScale) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipGetCustomLineCapWidthScale(customCap2, widthScale2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetCustomLineCapWidthScale(GpCustomLineCap* customCap, float* widthScale); internal unsafe static Status GdipGetDC(ref GpGraphics graphics, ref HDC hdc) { fixed (HDC* hdc2 = &hdc) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetDC(graphics2, hdc2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetDC(GpGraphics* graphics, HDC* hdc); internal unsafe static Status GdipGetDpiX(ref GpGraphics graphics, ref float dpi) { fixed (float* dpi2 = &dpi) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetDpiX(graphics2, dpi2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetDpiX(GpGraphics* graphics, float* dpi); internal unsafe static Status GdipGetDpiY(ref GpGraphics graphics, ref float dpi) { fixed (float* dpi2 = &dpi) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetDpiY(graphics2, dpi2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetDpiY(GpGraphics* graphics, float* dpi); internal unsafe static Status GdipGetEmHeight([In] [IsReadOnly] ref GpFontFamily family, int style, ref ushort EmHeight) { fixed (ushort* emHeight = &EmHeight) { fixed (GpFontFamily* family2 = &family) { return GdipGetEmHeight(family2, style, emHeight); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetEmHeight(GpFontFamily* family, int style, ushort* EmHeight); internal unsafe static Status GdipGetEncoderParameterList(ref GpImage image, [In] [IsReadOnly] ref Guid clsidEncoder, uint size, EncoderParameters* buffer) { fixed (Guid* clsidEncoder2 = &clsidEncoder) { fixed (GpImage* image2 = &image) { return GdipGetEncoderParameterList(image2, clsidEncoder2, size, buffer); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetEncoderParameterList(GpImage* image, Guid* clsidEncoder, uint size, EncoderParameters* buffer); internal unsafe static Status GdipGetEncoderParameterListSize(ref GpImage image, [In] [IsReadOnly] ref Guid clsidEncoder, ref uint size) { fixed (uint* size2 = &size) { fixed (Guid* clsidEncoder2 = &clsidEncoder) { fixed (GpImage* image2 = &image) { return GdipGetEncoderParameterListSize(image2, clsidEncoder2, size2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetEncoderParameterListSize(GpImage* image, Guid* clsidEncoder, uint* size); internal unsafe static Status GdipGetFamily(ref GpFont font, ref GpFontFamily* family) { fixed (GpFontFamily** family2 = &family) { fixed (GpFont* font2 = &font) { return GdipGetFamily(font2, family2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFamily(GpFont* font, GpFontFamily** family); internal unsafe static Status GdipGetFamilyName([In] [IsReadOnly] ref GpFontFamily family, PWSTR name, ushort language) { fixed (GpFontFamily* family2 = &family) { return GdipGetFamilyName(family2, name, language); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFamilyName(GpFontFamily* family, PWSTR name, ushort language); internal unsafe static Status GdipGetFontCollectionFamilyCount(ref GpFontCollection fontCollection, ref int numFound) { fixed (int* numFound2 = &numFound) { fixed (GpFontCollection* fontCollection2 = &fontCollection) { return GdipGetFontCollectionFamilyCount(fontCollection2, numFound2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontCollectionFamilyCount(GpFontCollection* fontCollection, int* numFound); internal unsafe static Status GdipGetFontCollectionFamilyList([In] [IsReadOnly] ref GpFontCollection fontCollection, int numSought, GpFontFamily** gpfamilies, out int numFound) { fixed (int* numFound2 = &numFound) { fixed (GpFontCollection* fontCollection2 = &fontCollection) { return GdipGetFontCollectionFamilyList(fontCollection2, numSought, gpfamilies, numFound2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontCollectionFamilyList(GpFontCollection* fontCollection, int numSought, GpFontFamily** gpfamilies, int* numFound); internal unsafe static Status GdipGetFontHeight([In] [IsReadOnly] ref GpFont font, [In] [IsReadOnly] ref GpGraphics graphics, ref float height) { fixed (float* height2 = &height) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpFont* font2 = &font) { return GdipGetFontHeight(font2, graphics2, height2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontHeight(GpFont* font, GpGraphics* graphics, float* height); internal unsafe static Status GdipGetFontHeightGivenDPI([In] [IsReadOnly] ref GpFont font, float dpi, ref float height) { fixed (float* height2 = &height) { fixed (GpFont* font2 = &font) { return GdipGetFontHeightGivenDPI(font2, dpi, height2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontHeightGivenDPI(GpFont* font, float dpi, float* height); internal unsafe static Status GdipGetFontSize(ref GpFont font, ref float size) { fixed (float* size2 = &size) { fixed (GpFont* font2 = &font) { return GdipGetFontSize(font2, size2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontSize(GpFont* font, float* size); internal unsafe static Status GdipGetFontStyle(ref GpFont font, ref int style) { fixed (int* style2 = &style) { fixed (GpFont* font2 = &font) { return GdipGetFontStyle(font2, style2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontStyle(GpFont* font, int* style); internal unsafe static Status GdipGetFontUnit(ref GpFont font, ref Unit unit) { fixed (Unit* unit2 = &unit) { fixed (GpFont* font2 = &font) { return GdipGetFontUnit(font2, unit2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetFontUnit(GpFont* font, Unit* unit); internal unsafe static Status GdipGetGenericFontFamilyMonospace(ref GpFontFamily* nativeFamily) { fixed (GpFontFamily** nativeFamily2 = &nativeFamily) { return GdipGetGenericFontFamilyMonospace(nativeFamily2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetGenericFontFamilyMonospace(GpFontFamily** nativeFamily); internal unsafe static Status GdipGetGenericFontFamilySansSerif(ref GpFontFamily* nativeFamily) { fixed (GpFontFamily** nativeFamily2 = &nativeFamily) { return GdipGetGenericFontFamilySansSerif(nativeFamily2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetGenericFontFamilySansSerif(GpFontFamily** nativeFamily); internal unsafe static Status GdipGetGenericFontFamilySerif(ref GpFontFamily* nativeFamily) { fixed (GpFontFamily** nativeFamily2 = &nativeFamily) { return GdipGetGenericFontFamilySerif(nativeFamily2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetGenericFontFamilySerif(GpFontFamily** nativeFamily); internal unsafe static Status GdipGetHatchBackgroundColor(ref GpHatch brush, ref uint backcol) { fixed (uint* backcol2 = &backcol) { fixed (GpHatch* brush2 = &brush) { return GdipGetHatchBackgroundColor(brush2, backcol2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetHatchBackgroundColor(GpHatch* brush, uint* backcol); internal unsafe static Status GdipGetHatchForegroundColor(ref GpHatch brush, ref uint forecol) { fixed (uint* forecol2 = &forecol) { fixed (GpHatch* brush2 = &brush) { return GdipGetHatchForegroundColor(brush2, forecol2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetHatchForegroundColor(GpHatch* brush, uint* forecol); internal unsafe static Status GdipGetHatchStyle(ref GpHatch brush, ref HatchStyle hatchstyle) { fixed (HatchStyle* hatchstyle2 = &hatchstyle) { fixed (GpHatch* brush2 = &brush) { return GdipGetHatchStyle(brush2, hatchstyle2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetHatchStyle(GpHatch* brush, HatchStyle* hatchstyle); internal unsafe static Status GdipGetHemfFromMetafile(ref GpMetafile metafile, ref HENHMETAFILE hEmf) { fixed (HENHMETAFILE* hEmf2 = &hEmf) { fixed (GpMetafile* metafile2 = &metafile) { return GdipGetHemfFromMetafile(metafile2, hEmf2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetHemfFromMetafile(GpMetafile* metafile, HENHMETAFILE* hEmf); internal unsafe static Status GdipGetImageAttributesAdjustedPalette(ref GpImageAttributes imageAttr, ColorPalette* colorPalette, ColorAdjustType colorAdjustType) { fixed (GpImageAttributes* imageAttr2 = &imageAttr) { return GdipGetImageAttributesAdjustedPalette(imageAttr2, colorPalette, colorAdjustType); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageAttributesAdjustedPalette(GpImageAttributes* imageAttr, ColorPalette* colorPalette, ColorAdjustType colorAdjustType); internal unsafe static Status GdipGetImageBounds(ref GpImage image, ref RectF srcRect, ref Unit srcUnit) { fixed (Unit* srcUnit2 = &srcUnit) { fixed (RectF* srcRect2 = &srcRect) { fixed (GpImage* image2 = &image) { return GdipGetImageBounds(image2, srcRect2, srcUnit2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageBounds(GpImage* image, RectF* srcRect, Unit* srcUnit); internal unsafe static Status GdipGetImageDecoders(uint numDecoders, uint size, out ImageCodecInfo decoders) { fixed (ImageCodecInfo* decoders2 = &decoders) { return GdipGetImageDecoders(numDecoders, size, decoders2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageDecoders(uint numDecoders, uint size, ImageCodecInfo* decoders); internal unsafe static Status GdipGetImageDecodersSize(out uint numDecoders, out uint size) { fixed (uint* size2 = &size) { fixed (uint* numDecoders2 = &numDecoders) { return GdipGetImageDecodersSize(numDecoders2, size2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageDecodersSize(uint* numDecoders, uint* size); internal unsafe static Status GdipGetImageDimension(ref GpImage image, ref float width, ref float height) { fixed (float* height2 = &height) { fixed (float* width2 = &width) { fixed (GpImage* image2 = &image) { return GdipGetImageDimension(image2, width2, height2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageDimension(GpImage* image, float* width, float* height); internal unsafe static Status GdipGetImageEncoders(uint numEncoders, uint size, out ImageCodecInfo encoders) { fixed (ImageCodecInfo* encoders2 = &encoders) { return GdipGetImageEncoders(numEncoders, size, encoders2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageEncoders(uint numEncoders, uint size, ImageCodecInfo* encoders); internal unsafe static Status GdipGetImageEncodersSize(out uint numEncoders, out uint size) { fixed (uint* size2 = &size) { fixed (uint* numEncoders2 = &numEncoders) { return GdipGetImageEncodersSize(numEncoders2, size2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageEncodersSize(uint* numEncoders, uint* size); internal unsafe static Status GdipGetImageFlags(ref GpImage image, ref uint flags) { fixed (uint* flags2 = &flags) { fixed (GpImage* image2 = &image) { return GdipGetImageFlags(image2, flags2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageFlags(GpImage* image, uint* flags); internal unsafe static Status GdipGetImageGraphicsContext(ref GpImage image, ref GpGraphics* graphics) { fixed (GpGraphics** graphics2 = &graphics) { fixed (GpImage* image2 = &image) { return GdipGetImageGraphicsContext(image2, graphics2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageGraphicsContext(GpImage* image, GpGraphics** graphics); internal unsafe static Status GdipGetImageHeight(ref GpImage image, ref uint height) { fixed (uint* height2 = &height) { fixed (GpImage* image2 = &image) { return GdipGetImageHeight(image2, height2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageHeight(GpImage* image, uint* height); internal unsafe static Status GdipGetImageHorizontalResolution(ref GpImage image, ref float resolution) { fixed (float* resolution2 = &resolution) { fixed (GpImage* image2 = &image) { return GdipGetImageHorizontalResolution(image2, resolution2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageHorizontalResolution(GpImage* image, float* resolution); internal unsafe static Status GdipGetImagePalette(ref GpImage image, ColorPalette* palette, int size) { fixed (GpImage* image2 = &image) { return GdipGetImagePalette(image2, palette, size); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImagePalette(GpImage* image, ColorPalette* palette, int size); internal unsafe static Status GdipGetImagePaletteSize(ref GpImage image, ref int size) { fixed (int* size2 = &size) { fixed (GpImage* image2 = &image) { return GdipGetImagePaletteSize(image2, size2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImagePaletteSize(GpImage* image, int* size); internal unsafe static Status GdipGetImagePixelFormat(ref GpImage image, ref int format) { fixed (int* format2 = &format) { fixed (GpImage* image2 = &image) { return GdipGetImagePixelFormat(image2, format2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImagePixelFormat(GpImage* image, int* format); internal unsafe static Status GdipGetImageRawFormat(ref GpImage image, ref Guid format) { fixed (Guid* format2 = &format) { fixed (GpImage* image2 = &image) { return GdipGetImageRawFormat(image2, format2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageRawFormat(GpImage* image, Guid* format); internal unsafe static Status GdipGetImageThumbnail(ref GpImage image, uint thumbWidth, uint thumbHeight, ref GpImage* thumbImage, IntPtr callback, void* callbackData) { fixed (GpImage** thumbImage2 = &thumbImage) { fixed (GpImage* image2 = &image) { return GdipGetImageThumbnail(image2, thumbWidth, thumbHeight, thumbImage2, callback, callbackData); } } } [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); internal unsafe static Status GdipGetImageType(ref GpImage image, ref ImageType type) { fixed (ImageType* type2 = &type) { fixed (GpImage* image2 = &image) { return GdipGetImageType(image2, type2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageType(GpImage* image, ImageType* type); internal unsafe static Status GdipGetImageVerticalResolution(ref GpImage image, ref float resolution) { fixed (float* resolution2 = &resolution) { fixed (GpImage* image2 = &image) { return GdipGetImageVerticalResolution(image2, resolution2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageVerticalResolution(GpImage* image, float* resolution); internal unsafe static Status GdipGetImageWidth(ref GpImage image, ref uint width) { fixed (uint* width2 = &width) { fixed (GpImage* image2 = &image) { return GdipGetImageWidth(image2, width2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetImageWidth(GpImage* image, uint* width); internal unsafe static Status GdipGetInterpolationMode(ref GpGraphics graphics, ref InterpolationMode interpolationMode) { fixed (InterpolationMode* interpolationMode2 = &interpolationMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetInterpolationMode(graphics2, interpolationMode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetInterpolationMode(GpGraphics* graphics, InterpolationMode* interpolationMode); internal unsafe static Status GdipGetLineBlend(ref GpLineGradient brush, ref float blend, ref float positions, int count) { fixed (float* positions2 = &positions) { fixed (float* blend2 = &blend) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLineBlend(brush2, blend2, positions2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineBlend(GpLineGradient* brush, float* blend, float* positions, int count); internal unsafe static Status GdipGetLineBlendCount(ref GpLineGradient brush, ref int count) { fixed (int* count2 = &count) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLineBlendCount(brush2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineBlendCount(GpLineGradient* brush, int* count); internal unsafe static Status GdipGetLineColors(ref GpLineGradient brush, ref uint colors) { fixed (uint* colors2 = &colors) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLineColors(brush2, colors2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineColors(GpLineGradient* brush, uint* colors); internal unsafe static Status GdipGetLineGammaCorrection(ref GpLineGradient brush, ref BOOL useGammaCorrection) { fixed (BOOL* useGammaCorrection2 = &useGammaCorrection) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLineGammaCorrection(brush2, useGammaCorrection2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineGammaCorrection(GpLineGradient* brush, BOOL* useGammaCorrection); internal unsafe static Status GdipGetLinePresetBlend(ref GpLineGradient brush, ref uint blend, ref float positions, int count) { fixed (float* positions2 = &positions) { fixed (uint* blend2 = &blend) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLinePresetBlend(brush2, blend2, positions2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLinePresetBlend(GpLineGradient* brush, uint* blend, float* positions, int count); internal unsafe static Status GdipGetLinePresetBlendCount(ref GpLineGradient brush, ref int count) { fixed (int* count2 = &count) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLinePresetBlendCount(brush2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLinePresetBlendCount(GpLineGradient* brush, int* count); internal unsafe static Status GdipGetLineRect(ref GpLineGradient brush, ref RectF rect) { fixed (RectF* rect2 = &rect) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLineRect(brush2, rect2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineRect(GpLineGradient* brush, RectF* rect); internal unsafe static Status GdipGetLineSpacing([In] [IsReadOnly] ref GpFontFamily family, int style, ref ushort LineSpacing) { fixed (ushort* lineSpacing = &LineSpacing) { fixed (GpFontFamily* family2 = &family) { return GdipGetLineSpacing(family2, style, lineSpacing); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineSpacing(GpFontFamily* family, int style, ushort* LineSpacing); internal unsafe static Status GdipGetLineTransform(ref GpLineGradient brush, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLineTransform(brush2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineTransform(GpLineGradient* brush, Matrix* matrix); internal unsafe static Status GdipGetLineWrapMode(ref GpLineGradient brush, ref WrapMode wrapmode) { fixed (WrapMode* wrapmode2 = &wrapmode) { fixed (GpLineGradient* brush2 = &brush) { return GdipGetLineWrapMode(brush2, wrapmode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLineWrapMode(GpLineGradient* brush, WrapMode* wrapmode); internal unsafe static Status GdipGetLogFont(ref GpFont font, ref GpGraphics graphics, ref LOGFONTW logfontW) { fixed (LOGFONTW* logfontW2 = &logfontW) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpFont* font2 = &font) { return GdipGetLogFont(font2, graphics2, logfontW2); } } } } [DllImport("gdiplus.dll", EntryPoint = "GdipGetLogFontW", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetLogFont(GpFont* font, GpGraphics* graphics, LOGFONTW* logfontW); internal unsafe static Status GdipGetMatrixElements([In] [IsReadOnly] ref Matrix matrix, ref float matrixOut) { fixed (float* matrixOut2 = &matrixOut) { fixed (Matrix* matrix2 = &matrix) { return GdipGetMatrixElements(matrix2, matrixOut2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMatrixElements(Matrix* matrix, float* matrixOut); internal unsafe static Status GdipGetMetafileHeaderFromEmf(HENHMETAFILE hEmf, ref MetafileHeader header) { fixed (MetafileHeader* header2 = &header) { return GdipGetMetafileHeaderFromEmf(hEmf, header2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromEmf(HENHMETAFILE hEmf, MetafileHeader* header); internal unsafe static Status GdipGetMetafileHeaderFromFile(string filename, ref MetafileHeader header) { fixed (MetafileHeader* header2 = &header) { IntPtr value; if (filename == null) value = (IntPtr)(void*)null; else { ref pinnableReference = ref filename.GetPinnableReference(); value = (IntPtr)(&pinnableReference); } return GdipGetMetafileHeaderFromFile((char*)(long)value, header2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromFile(PCWSTR filename, MetafileHeader* header); internal unsafe static Status GdipGetMetafileHeaderFromMetafile(ref GpMetafile metafile, ref MetafileHeader header) { fixed (MetafileHeader* header2 = &header) { fixed (GpMetafile* metafile2 = &metafile) { return GdipGetMetafileHeaderFromMetafile(metafile2, header2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromMetafile(GpMetafile* metafile, MetafileHeader* header); internal unsafe static Status GdipGetMetafileHeaderFromStream(IStream* stream, ref MetafileHeader header) { fixed (MetafileHeader* header2 = &header) { return GdipGetMetafileHeaderFromStream(stream, header2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromStream(IStream* stream, MetafileHeader* header); internal unsafe static Status GdipGetMetafileHeaderFromWmf(HMETAFILE hWmf, [In] [IsReadOnly] ref WmfPlaceableFileHeader wmfPlaceableFileHeader, ref MetafileHeader header) { fixed (MetafileHeader* header2 = &header) { fixed (WmfPlaceableFileHeader* wmfPlaceableFileHeader2 = &wmfPlaceableFileHeader) { return GdipGetMetafileHeaderFromWmf(hWmf, wmfPlaceableFileHeader2, header2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetMetafileHeaderFromWmf(HMETAFILE hWmf, WmfPlaceableFileHeader* wmfPlaceableFileHeader, MetafileHeader* header); internal unsafe static Status GdipGetNearestColor(ref GpGraphics graphics, ref uint argb) { fixed (uint* argb2 = &argb) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetNearestColor(graphics2, argb2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetNearestColor(GpGraphics* graphics, uint* argb); internal unsafe static Status GdipGetPageScale(ref GpGraphics graphics, ref float scale) { fixed (float* scale2 = &scale) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetPageScale(graphics2, scale2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPageScale(GpGraphics* graphics, float* scale); internal unsafe static Status GdipGetPageUnit(ref GpGraphics graphics, ref Unit unit) { fixed (Unit* unit2 = &unit) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetPageUnit(graphics2, unit2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPageUnit(GpGraphics* graphics, Unit* unit); internal unsafe static Status GdipGetPathData(ref GpPath path, ref PathData pathData) { fixed (PathData* pathData2 = &pathData) { fixed (GpPath* path2 = &path) { return GdipGetPathData(path2, pathData2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathData(GpPath* path, PathData* pathData); internal unsafe static Status GdipGetPathFillMode(ref GpPath path, ref FillMode fillmode) { fixed (FillMode* fillmode2 = &fillmode) { fixed (GpPath* path2 = &path) { return GdipGetPathFillMode(path2, fillmode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathFillMode(GpPath* path, FillMode* fillmode); internal unsafe static Status GdipGetPathGradientBlend(ref GpPathGradient brush, ref float blend, ref float positions, int count) { fixed (float* positions2 = &positions) { fixed (float* blend2 = &blend) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientBlend(brush2, blend2, positions2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientBlend(GpPathGradient* brush, float* blend, float* positions, int count); internal unsafe static Status GdipGetPathGradientBlendCount(ref GpPathGradient brush, ref int count) { fixed (int* count2 = &count) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientBlendCount(brush2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientBlendCount(GpPathGradient* brush, int* count); internal unsafe static Status GdipGetPathGradientCenterColor(ref GpPathGradient brush, ref uint colors) { fixed (uint* colors2 = &colors) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientCenterColor(brush2, colors2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientCenterColor(GpPathGradient* brush, uint* colors); internal unsafe static Status GdipGetPathGradientCenterPoint(ref GpPathGradient brush, ref PointF points) { fixed (PointF* points2 = &points) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientCenterPoint(brush2, points2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientCenterPoint(GpPathGradient* brush, PointF* points); internal unsafe static Status GdipGetPathGradientFocusScales(ref GpPathGradient brush, ref float xScale, ref float yScale) { fixed (float* yScale2 = &yScale) { fixed (float* xScale2 = &xScale) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientFocusScales(brush2, xScale2, yScale2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientFocusScales(GpPathGradient* brush, float* xScale, float* yScale); internal unsafe static Status GdipGetPathGradientPresetBlend(ref GpPathGradient brush, ref uint blend, ref float positions, int count) { fixed (float* positions2 = &positions) { fixed (uint* blend2 = &blend) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientPresetBlend(brush2, blend2, positions2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientPresetBlend(GpPathGradient* brush, uint* blend, float* positions, int count); internal unsafe static Status GdipGetPathGradientPresetBlendCount(ref GpPathGradient brush, ref int count) { fixed (int* count2 = &count) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientPresetBlendCount(brush2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientPresetBlendCount(GpPathGradient* brush, int* count); internal unsafe static Status GdipGetPathGradientRect(ref GpPathGradient brush, ref RectF rect) { fixed (RectF* rect2 = &rect) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientRect(brush2, rect2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientRect(GpPathGradient* brush, RectF* rect); internal unsafe static Status GdipGetPathGradientSurroundColorCount(ref GpPathGradient brush, ref int count) { fixed (int* count2 = &count) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientSurroundColorCount(brush2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientSurroundColorCount(GpPathGradient* brush, int* count); internal unsafe static Status GdipGetPathGradientSurroundColorsWithCount([In] [IsReadOnly] ref GpPathGradient brush, uint* color, ref int count) { fixed (int* count2 = &count) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientSurroundColorsWithCount(brush2, color, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientSurroundColorsWithCount(GpPathGradient* brush, uint* color, int* count); internal unsafe static Status GdipGetPathGradientTransform(ref GpPathGradient brush, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientTransform(brush2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientTransform(GpPathGradient* brush, Matrix* matrix); internal unsafe static Status GdipGetPathGradientWrapMode(ref GpPathGradient brush, ref WrapMode wrapmode) { fixed (WrapMode* wrapmode2 = &wrapmode) { fixed (GpPathGradient* brush2 = &brush) { return GdipGetPathGradientWrapMode(brush2, wrapmode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathGradientWrapMode(GpPathGradient* brush, WrapMode* wrapmode); internal unsafe static Status GdipGetPathLastPoint(ref GpPath path, ref PointF lastPoint) { fixed (PointF* lastPoint2 = &lastPoint) { fixed (GpPath* path2 = &path) { return GdipGetPathLastPoint(path2, lastPoint2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathLastPoint(GpPath* path, PointF* lastPoint); internal unsafe static Status GdipGetPathPoints(ref GpPath param0, ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpPath* param = &param0) { return GdipGetPathPoints(param, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathPoints(GpPath* param0, PointF* points, int count); internal unsafe static Status GdipGetPathTypes([In] [IsReadOnly] ref GpPath path, Span<byte> types) { fixed (byte* types2 = &types.GetPinnableReference()) { fixed (GpPath* path2 = &path) { return GdipGetPathTypes(path2, types2, types.Length); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathTypes(GpPath* path, byte* types, int count); internal unsafe static Status GdipGetPathWorldBounds(ref GpPath path, ref RectF bounds, [In] [IsReadOnly] ref Matrix matrix, [In] [IsReadOnly] ref GpPen pen) { fixed (GpPen* pen2 = &pen) { fixed (Matrix* matrix2 = &matrix) { fixed (RectF* bounds2 = &bounds) { fixed (GpPath* path2 = &path) { return GdipGetPathWorldBounds(path2, bounds2, matrix2, pen2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPathWorldBounds(GpPath* path, RectF* bounds, Matrix* matrix, GpPen* pen); internal unsafe static Status GdipGetPenBrushFill(ref GpPen pen, ref GpBrush* brush) { fixed (GpBrush** brush2 = &brush) { fixed (GpPen* pen2 = &pen) { return GdipGetPenBrushFill(pen2, brush2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenBrushFill(GpPen* pen, GpBrush** brush); internal unsafe static Status GdipGetPenColor(ref GpPen pen, ref uint argb) { fixed (uint* argb2 = &argb) { fixed (GpPen* pen2 = &pen) { return GdipGetPenColor(pen2, argb2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenColor(GpPen* pen, uint* argb); internal unsafe static Status GdipGetPenCompoundArray(ref GpPen pen, ref float dash, int count) { fixed (float* dash2 = &dash) { fixed (GpPen* pen2 = &pen) { return GdipGetPenCompoundArray(pen2, dash2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenCompoundArray(GpPen* pen, float* dash, int count); internal unsafe static Status GdipGetPenCompoundCount(ref GpPen pen, ref int count) { fixed (int* count2 = &count) { fixed (GpPen* pen2 = &pen) { return GdipGetPenCompoundCount(pen2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenCompoundCount(GpPen* pen, int* count); internal unsafe static Status GdipGetPenCustomEndCap(ref GpPen pen, ref GpCustomLineCap* customCap) { fixed (GpCustomLineCap** customCap2 = &customCap) { fixed (GpPen* pen2 = &pen) { return GdipGetPenCustomEndCap(pen2, customCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenCustomEndCap(GpPen* pen, GpCustomLineCap** customCap); internal unsafe static Status GdipGetPenCustomStartCap(ref GpPen pen, ref GpCustomLineCap* customCap) { fixed (GpCustomLineCap** customCap2 = &customCap) { fixed (GpPen* pen2 = &pen) { return GdipGetPenCustomStartCap(pen2, customCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenCustomStartCap(GpPen* pen, GpCustomLineCap** customCap); internal unsafe static Status GdipGetPenDashArray(ref GpPen pen, ref float dash, int count) { fixed (float* dash2 = &dash) { fixed (GpPen* pen2 = &pen) { return GdipGetPenDashArray(pen2, dash2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashArray(GpPen* pen, float* dash, int count); internal unsafe static Status GdipGetPenDashCap197819(ref GpPen pen, ref DashCap dashCap) { fixed (DashCap* dashCap2 = &dashCap) { fixed (GpPen* pen2 = &pen) { return GdipGetPenDashCap197819(pen2, dashCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashCap197819(GpPen* pen, DashCap* dashCap); internal unsafe static Status GdipGetPenDashCount(ref GpPen pen, ref int count) { fixed (int* count2 = &count) { fixed (GpPen* pen2 = &pen) { return GdipGetPenDashCount(pen2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashCount(GpPen* pen, int* count); internal unsafe static Status GdipGetPenDashOffset(ref GpPen pen, ref float offset) { fixed (float* offset2 = &offset) { fixed (GpPen* pen2 = &pen) { return GdipGetPenDashOffset(pen2, offset2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashOffset(GpPen* pen, float* offset); internal unsafe static Status GdipGetPenDashStyle(ref GpPen pen, ref DashStyle dashstyle) { fixed (DashStyle* dashstyle2 = &dashstyle) { fixed (GpPen* pen2 = &pen) { return GdipGetPenDashStyle(pen2, dashstyle2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenDashStyle(GpPen* pen, DashStyle* dashstyle); internal unsafe static Status GdipGetPenEndCap(ref GpPen pen, ref LineCap endCap) { fixed (LineCap* endCap2 = &endCap) { fixed (GpPen* pen2 = &pen) { return GdipGetPenEndCap(pen2, endCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenEndCap(GpPen* pen, LineCap* endCap); internal unsafe static Status GdipGetPenFillType(ref GpPen pen, ref PenType type) { fixed (PenType* type2 = &type) { fixed (GpPen* pen2 = &pen) { return GdipGetPenFillType(pen2, type2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenFillType(GpPen* pen, PenType* type); internal unsafe static Status GdipGetPenLineJoin(ref GpPen pen, ref LineJoin lineJoin) { fixed (LineJoin* lineJoin2 = &lineJoin) { fixed (GpPen* pen2 = &pen) { return GdipGetPenLineJoin(pen2, lineJoin2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenLineJoin(GpPen* pen, LineJoin* lineJoin); internal unsafe static Status GdipGetPenMiterLimit(ref GpPen pen, ref float miterLimit) { fixed (float* miterLimit2 = &miterLimit) { fixed (GpPen* pen2 = &pen) { return GdipGetPenMiterLimit(pen2, miterLimit2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenMiterLimit(GpPen* pen, float* miterLimit); internal unsafe static Status GdipGetPenMode(ref GpPen pen, ref PenAlignment penMode) { fixed (PenAlignment* penMode2 = &penMode) { fixed (GpPen* pen2 = &pen) { return GdipGetPenMode(pen2, penMode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenMode(GpPen* pen, PenAlignment* penMode); internal unsafe static Status GdipGetPenStartCap(ref GpPen pen, ref LineCap startCap) { fixed (LineCap* startCap2 = &startCap) { fixed (GpPen* pen2 = &pen) { return GdipGetPenStartCap(pen2, startCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenStartCap(GpPen* pen, LineCap* startCap); internal unsafe static Status GdipGetPenTransform(ref GpPen pen, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPen* pen2 = &pen) { return GdipGetPenTransform(pen2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenTransform(GpPen* pen, Matrix* matrix); internal unsafe static Status GdipGetPenWidth(ref GpPen pen, ref float width) { fixed (float* width2 = &width) { fixed (GpPen* pen2 = &pen) { return GdipGetPenWidth(pen2, width2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPenWidth(GpPen* pen, float* width); internal unsafe static Status GdipGetPixelOffsetMode(ref GpGraphics graphics, ref PixelOffsetMode pixelOffsetMode) { fixed (PixelOffsetMode* pixelOffsetMode2 = &pixelOffsetMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetPixelOffsetMode(graphics2, pixelOffsetMode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPixelOffsetMode(GpGraphics* graphics, PixelOffsetMode* pixelOffsetMode); internal unsafe static Status GdipGetPointCount(ref GpPath path, ref int count) { fixed (int* count2 = &count) { fixed (GpPath* path2 = &path) { return GdipGetPointCount(path2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPointCount(GpPath* path, int* count); internal unsafe static Status GdipGetPropertyCount(ref GpImage image, ref uint numOfProperty) { fixed (uint* numOfProperty2 = &numOfProperty) { fixed (GpImage* image2 = &image) { return GdipGetPropertyCount(image2, numOfProperty2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertyCount(GpImage* image, uint* numOfProperty); internal unsafe static Status GdipGetPropertyIdList(ref GpImage image, uint numOfProperty, ref uint list) { fixed (uint* list2 = &list) { fixed (GpImage* image2 = &image) { return GdipGetPropertyIdList(image2, numOfProperty, list2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertyIdList(GpImage* image, uint numOfProperty, uint* list); internal unsafe static Status GdipGetPropertyItem(ref GpImage image, uint propId, uint propSize, ref PropertyItem buffer) { fixed (PropertyItem* buffer2 = &buffer) { fixed (GpImage* image2 = &image) { return GdipGetPropertyItem(image2, propId, propSize, buffer2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertyItem(GpImage* image, uint propId, uint propSize, PropertyItem* buffer); internal unsafe static Status GdipGetPropertyItemSize(ref GpImage image, uint propId, ref uint size) { fixed (uint* size2 = &size) { fixed (GpImage* image2 = &image) { return GdipGetPropertyItemSize(image2, propId, size2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertyItemSize(GpImage* image, uint propId, uint* size); internal unsafe static Status GdipGetPropertySize(ref GpImage image, ref uint totalBufferSize, ref uint numProperties) { fixed (uint* numProperties2 = &numProperties) { fixed (uint* totalBufferSize2 = &totalBufferSize) { fixed (GpImage* image2 = &image) { return GdipGetPropertySize(image2, totalBufferSize2, numProperties2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetPropertySize(GpImage* image, uint* totalBufferSize, uint* numProperties); internal unsafe static Status GdipGetRegionBounds(ref GpRegion region, ref GpGraphics graphics, ref RectF rect) { fixed (RectF* rect2 = &rect) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpRegion* region2 = &region) { return GdipGetRegionBounds(region2, graphics2, rect2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionBounds(GpRegion* region, GpGraphics* graphics, RectF* rect); internal unsafe static Status GdipGetRegionData(ref GpRegion region, Span<byte> buffer, uint* sizeFilled) { fixed (byte* buffer2 = &buffer.GetPinnableReference()) { fixed (GpRegion* region2 = &region) { return GdipGetRegionData(region2, buffer2, (uint)buffer.Length, sizeFilled); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionData(GpRegion* region, byte* buffer, uint bufferSize, uint* sizeFilled = default(uint*)); internal unsafe static Status GdipGetRegionDataSize(ref GpRegion region, ref uint bufferSize) { fixed (uint* bufferSize2 = &bufferSize) { fixed (GpRegion* region2 = &region) { return GdipGetRegionDataSize(region2, bufferSize2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionDataSize(GpRegion* region, uint* bufferSize); internal unsafe static Status GdipGetRegionHRgn(ref GpRegion region, ref GpGraphics graphics, ref HRGN hRgn) { fixed (HRGN* hRgn2 = &hRgn) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpRegion* region2 = &region) { return GdipGetRegionHRgn(region2, graphics2, hRgn2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionHRgn(GpRegion* region, GpGraphics* graphics, HRGN* hRgn); internal unsafe static Status GdipGetRegionScans(ref GpRegion region, ref RectF rects, ref int count, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (int* count2 = &count) { fixed (RectF* rects2 = &rects) { fixed (GpRegion* region2 = &region) { return GdipGetRegionScans(region2, rects2, count2, matrix2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionScans(GpRegion* region, RectF* rects, int* count, Matrix* matrix); internal unsafe static Status GdipGetRegionScansCount(ref GpRegion region, ref uint count, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (uint* count2 = &count) { fixed (GpRegion* region2 = &region) { return GdipGetRegionScansCount(region2, count2, matrix2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRegionScansCount(GpRegion* region, uint* count, Matrix* matrix); internal unsafe static Status GdipGetRenderingOrigin(ref GpGraphics graphics, ref int x, ref int y) { fixed (int* y2 = &y) { fixed (int* x2 = &x) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetRenderingOrigin(graphics2, x2, y2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetRenderingOrigin(GpGraphics* graphics, int* x, int* y); internal unsafe static Status GdipGetSmoothingMode(ref GpGraphics graphics, ref SmoothingMode smoothingMode) { fixed (SmoothingMode* smoothingMode2 = &smoothingMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetSmoothingMode(graphics2, smoothingMode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetSmoothingMode(GpGraphics* graphics, SmoothingMode* smoothingMode); internal unsafe static Status GdipGetSolidFillColor(ref GpSolidFill brush, ref uint color) { fixed (uint* color2 = &color) { fixed (GpSolidFill* brush2 = &brush) { return GdipGetSolidFillColor(brush2, color2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetSolidFillColor(GpSolidFill* brush, uint* color); internal unsafe static Status GdipGetStringFormatAlign([In] [IsReadOnly] ref GpStringFormat format, ref StringAlignment align) { fixed (StringAlignment* align2 = &align) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatAlign(format2, align2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatAlign(GpStringFormat* format, StringAlignment* align); internal unsafe static Status GdipGetStringFormatDigitSubstitution([In] [IsReadOnly] ref GpStringFormat format, ref ushort language, ref StringDigitSubstitute substitute) { fixed (StringDigitSubstitute* substitute2 = &substitute) { fixed (ushort* language2 = &language) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatDigitSubstitution(format2, language2, substitute2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatDigitSubstitution(GpStringFormat* format, ushort* language, StringDigitSubstitute* substitute); internal unsafe static Status GdipGetStringFormatFlags([In] [IsReadOnly] ref GpStringFormat format, ref int flags) { fixed (int* flags2 = &flags) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatFlags(format2, flags2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatFlags(GpStringFormat* format, int* flags); internal unsafe static Status GdipGetStringFormatHotkeyPrefix([In] [IsReadOnly] ref GpStringFormat format, ref int hotkeyPrefix) { fixed (int* hotkeyPrefix2 = &hotkeyPrefix) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatHotkeyPrefix(format2, hotkeyPrefix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatHotkeyPrefix(GpStringFormat* format, int* hotkeyPrefix); internal unsafe static Status GdipGetStringFormatLineAlign([In] [IsReadOnly] ref GpStringFormat format, ref StringAlignment align) { fixed (StringAlignment* align2 = &align) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatLineAlign(format2, align2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatLineAlign(GpStringFormat* format, StringAlignment* align); internal unsafe static Status GdipGetStringFormatMeasurableCharacterRangeCount([In] [IsReadOnly] ref GpStringFormat format, ref int count) { fixed (int* count2 = &count) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatMeasurableCharacterRangeCount(format2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatMeasurableCharacterRangeCount(GpStringFormat* format, int* count); internal unsafe static Status GdipGetStringFormatTabStopCount([In] [IsReadOnly] ref GpStringFormat format, ref int count) { fixed (int* count2 = &count) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatTabStopCount(format2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatTabStopCount(GpStringFormat* format, int* count); internal unsafe static Status GdipGetStringFormatTabStops([In] [IsReadOnly] ref GpStringFormat format, int count, ref float firstTabOffset, ref float tabStops) { fixed (float* tabStops2 = &tabStops) { fixed (float* firstTabOffset2 = &firstTabOffset) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatTabStops(format2, count, firstTabOffset2, tabStops2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatTabStops(GpStringFormat* format, int count, float* firstTabOffset, float* tabStops); internal unsafe static Status GdipGetStringFormatTrimming([In] [IsReadOnly] ref GpStringFormat format, ref StringTrimming trimming) { fixed (StringTrimming* trimming2 = &trimming) { fixed (GpStringFormat* format2 = &format) { return GdipGetStringFormatTrimming(format2, trimming2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetStringFormatTrimming(GpStringFormat* format, StringTrimming* trimming); internal unsafe static Status GdipGetTextContrast(ref GpGraphics graphics, ref uint contrast) { fixed (uint* contrast2 = &contrast) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetTextContrast(graphics2, contrast2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextContrast(GpGraphics* graphics, uint* contrast); internal unsafe static Status GdipGetTextRenderingHint(ref GpGraphics graphics, ref TextRenderingHint mode) { fixed (TextRenderingHint* mode2 = &mode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetTextRenderingHint(graphics2, mode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextRenderingHint(GpGraphics* graphics, TextRenderingHint* mode); internal unsafe static Status GdipGetTextureImage(ref GpTexture brush, ref GpImage* image) { fixed (GpImage** image2 = &image) { fixed (GpTexture* brush2 = &brush) { return GdipGetTextureImage(brush2, image2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextureImage(GpTexture* brush, GpImage** image); internal unsafe static Status GdipGetTextureTransform(ref GpTexture brush, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpTexture* brush2 = &brush) { return GdipGetTextureTransform(brush2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextureTransform(GpTexture* brush, Matrix* matrix); internal unsafe static Status GdipGetTextureWrapMode(ref GpTexture brush, ref WrapMode wrapmode) { fixed (WrapMode* wrapmode2 = &wrapmode) { fixed (GpTexture* brush2 = &brush) { return GdipGetTextureWrapMode(brush2, wrapmode2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetTextureWrapMode(GpTexture* brush, WrapMode* wrapmode); internal unsafe static Status GdipGetVisibleClipBounds(ref GpGraphics graphics, ref RectF rect) { fixed (RectF* rect2 = &rect) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetVisibleClipBounds(graphics2, rect2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetVisibleClipBounds(GpGraphics* graphics, RectF* rect); internal unsafe static Status GdipGetWorldTransform(ref GpGraphics graphics, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGetWorldTransform(graphics2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGetWorldTransform(GpGraphics* graphics, Matrix* matrix); internal unsafe static Status GdipGraphicsClear(ref GpGraphics graphics, uint color) { fixed (GpGraphics* graphics2 = &graphics) { return GdipGraphicsClear(graphics2, color); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipGraphicsClear(GpGraphics* graphics, uint color); internal unsafe static Status GdipImageForceValidation(ref GpImage image) { fixed (GpImage* image2 = &image) { return GdipImageForceValidation(image2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageForceValidation(GpImage* image); internal unsafe static Status GdipImageGetFrameCount(ref GpImage image, [In] [IsReadOnly] ref Guid dimensionID, ref uint count) { fixed (uint* count2 = &count) { fixed (Guid* dimensionID2 = &dimensionID) { fixed (GpImage* image2 = &image) { return GdipImageGetFrameCount(image2, dimensionID2, count2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageGetFrameCount(GpImage* image, Guid* dimensionID, uint* count); internal unsafe static Status GdipImageGetFrameDimensionsCount(ref GpImage image, ref uint count) { fixed (uint* count2 = &count) { fixed (GpImage* image2 = &image) { return GdipImageGetFrameDimensionsCount(image2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageGetFrameDimensionsCount(GpImage* image, uint* count); internal unsafe static Status GdipImageGetFrameDimensionsList(ref GpImage image, ref Guid dimensionIDs, uint count) { fixed (Guid* dimensionIDs2 = &dimensionIDs) { fixed (GpImage* image2 = &image) { return GdipImageGetFrameDimensionsList(image2, dimensionIDs2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageGetFrameDimensionsList(GpImage* image, Guid* dimensionIDs, uint count); internal unsafe static Status GdipImageRotateFlip(ref GpImage image, RotateFlipType rfType) { fixed (GpImage* image2 = &image) { return GdipImageRotateFlip(image2, rfType); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageRotateFlip(GpImage* image, RotateFlipType rfType); internal unsafe static Status GdipImageSelectActiveFrame(ref GpImage image, [In] [IsReadOnly] ref Guid dimensionID, uint frameIndex) { fixed (Guid* dimensionID2 = &dimensionID) { fixed (GpImage* image2 = &image) { return GdipImageSelectActiveFrame(image2, dimensionID2, frameIndex); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipImageSelectActiveFrame(GpImage* image, Guid* dimensionID, uint frameIndex); internal unsafe static Status GdipInitializePalette(ColorPalette* palette, PaletteType palettetype, int optimalColors, BOOL useTransparentColor, ref GpBitmap bitmap) { fixed (GpBitmap* bitmap2 = &bitmap) { return GdipInitializePalette(palette, palettetype, optimalColors, useTransparentColor, bitmap2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipInitializePalette(ColorPalette* palette, PaletteType palettetype, int optimalColors, BOOL useTransparentColor, GpBitmap* bitmap); internal unsafe static Status GdipInvertMatrix(ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { return GdipInvertMatrix(matrix2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipInvertMatrix(Matrix* matrix); internal unsafe static Status GdipIsClipEmpty(ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { return GdipIsClipEmpty(graphics2, result2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsClipEmpty(GpGraphics* graphics, BOOL* result); internal unsafe static Status GdipIsEmptyRegion(ref GpRegion region, ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpRegion* region2 = &region) { return GdipIsEmptyRegion(region2, graphics2, result2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsEmptyRegion(GpRegion* region, GpGraphics* graphics, BOOL* result); internal unsafe static Status GdipIsEqualRegion(ref GpRegion region, ref GpRegion region2, ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpRegion* region4 = &region2) { fixed (GpRegion* region3 = &region) { return GdipIsEqualRegion(region3, region4, graphics2, result2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsEqualRegion(GpRegion* region, GpRegion* region2, GpGraphics* graphics, BOOL* result); internal unsafe static Status GdipIsInfiniteRegion(ref GpRegion region, ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpRegion* region2 = &region) { return GdipIsInfiniteRegion(region2, graphics2, result2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsInfiniteRegion(GpRegion* region, GpGraphics* graphics, BOOL* result); internal unsafe static Status GdipIsMatrixEqual([In] [IsReadOnly] ref Matrix matrix, [In] [IsReadOnly] ref Matrix matrix2, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (Matrix* matrix4 = &matrix2) { fixed (Matrix* matrix3 = &matrix) { return GdipIsMatrixEqual(matrix3, matrix4, result2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsMatrixEqual(Matrix* matrix, Matrix* matrix2, BOOL* result); internal unsafe static Status GdipIsMatrixIdentity([In] [IsReadOnly] ref Matrix matrix, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (Matrix* matrix2 = &matrix) { return GdipIsMatrixIdentity(matrix2, result2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsMatrixIdentity(Matrix* matrix, BOOL* result); internal unsafe static Status GdipIsMatrixInvertible([In] [IsReadOnly] ref Matrix matrix, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (Matrix* matrix2 = &matrix) { return GdipIsMatrixInvertible(matrix2, result2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsMatrixInvertible(Matrix* matrix, BOOL* result); internal unsafe static Status GdipIsOutlineVisiblePathPoint(ref GpPath path, float x, float y, ref GpPen pen, ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpPen* pen2 = &pen) { fixed (GpPath* path2 = &path) { return GdipIsOutlineVisiblePathPoint(path2, x, y, pen2, graphics2, result2); } } } } } [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); internal unsafe static Status GdipIsStyleAvailable([In] [IsReadOnly] ref GpFontFamily family, int style, ref BOOL IsStyleAvailable) { fixed (BOOL* isStyleAvailable = &IsStyleAvailable) { fixed (GpFontFamily* family2 = &family) { return GdipIsStyleAvailable(family2, style, isStyleAvailable); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsStyleAvailable(GpFontFamily* family, int style, BOOL* IsStyleAvailable); internal unsafe static Status GdipIsVisibleClipEmpty(ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { return GdipIsVisibleClipEmpty(graphics2, result2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisibleClipEmpty(GpGraphics* graphics, BOOL* result); internal unsafe static Status GdipIsVisiblePathPoint(ref GpPath path, float x, float y, ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpPath* path2 = &path) { return GdipIsVisiblePathPoint(path2, x, y, graphics2, result2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisiblePathPoint(GpPath* path, float x, float y, GpGraphics* graphics, BOOL* result); internal unsafe static Status GdipIsVisiblePoint(ref GpGraphics graphics, float x, float y, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { return GdipIsVisiblePoint(graphics2, x, y, result2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisiblePoint(GpGraphics* graphics, float x, float y, BOOL* result); internal unsafe static Status GdipIsVisibleRect(ref GpGraphics graphics, float x, float y, float width, float height, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { return GdipIsVisibleRect(graphics2, x, y, width, height, result2); } } } [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); internal unsafe static Status GdipIsVisibleRegionPoint(ref GpRegion region, float x, float y, ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpRegion* region2 = &region) { return GdipIsVisibleRegionPoint(region2, x, y, graphics2, result2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipIsVisibleRegionPoint(GpRegion* region, float x, float y, GpGraphics* graphics, BOOL* result); internal unsafe static Status GdipIsVisibleRegionRect(ref GpRegion region, float x, float y, float width, float height, ref GpGraphics graphics, ref BOOL result) { fixed (BOOL* result2 = &result) { fixed (GpGraphics* graphics2 = &graphics) { fixed (GpRegion* region2 = &region) { return GdipIsVisibleRegionRect(region2, x, y, width, height, graphics2, result2); } } } } [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); internal unsafe static Status GdipLoadImageFromFile(string filename, ref GpImage* image) { fixed (GpImage** image2 = &image) { IntPtr value; if (filename == null) value = (IntPtr)(void*)null; else { ref pinnableReference = ref filename.GetPinnableReference(); value = (IntPtr)(&pinnableReference); } return GdipLoadImageFromFile((char*)(long)value, image2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipLoadImageFromFile(PCWSTR filename, GpImage** image); internal unsafe static Status GdipLoadImageFromFileICM(string filename, ref GpImage* image) { fixed (GpImage** image2 = &image) { IntPtr value; if (filename == null) value = (IntPtr)(void*)null; else { ref pinnableReference = ref filename.GetPinnableReference(); value = (IntPtr)(&pinnableReference); } return GdipLoadImageFromFileICM((char*)(long)value, image2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipLoadImageFromFileICM(PCWSTR filename, GpImage** image); internal unsafe static Status GdipLoadImageFromStream(IStream* stream, ref GpImage* image) { fixed (GpImage** image2 = &image) { return GdipLoadImageFromStream(stream, image2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipLoadImageFromStream(IStream* stream, GpImage** image); internal unsafe static Status GdipLoadImageFromStreamICM(IStream* stream, ref GpImage* image) { fixed (GpImage** image2 = &image) { return GdipLoadImageFromStreamICM(stream, image2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipLoadImageFromStreamICM(IStream* stream, GpImage** image); internal unsafe static Status GdipMeasureCharacterRanges(ref GpGraphics graphics, string string, int length, [In] [IsReadOnly] ref GpFont font, [In] [IsReadOnly] ref RectF layoutRect, [In] [IsReadOnly] ref GpStringFormat stringFormat, int regionCount, ref GpRegion* regions) { fixed (GpRegion** regions2 = &regions) { fixed (GpStringFormat* stringFormat2 = &stringFormat) { fixed (RectF* layoutRect2 = &layoutRect) { fixed (GpFont* font2 = &font) { IntPtr intPtr; if (string == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref string.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (GpGraphics* graphics2 = &graphics) { return GdipMeasureCharacterRanges(graphics2, value, length, font2, layoutRect2, stringFormat2, regionCount, regions2); } } } } } } [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); internal unsafe static Status GdipMeasureString(ref GpGraphics graphics, string string, int length, [In] [IsReadOnly] ref GpFont font, [In] [IsReadOnly] ref RectF layoutRect, [In] [IsReadOnly] ref GpStringFormat stringFormat, ref RectF boundingBox, ref int codepointsFitted, ref int linesFilled) { fixed (int* linesFilled2 = &linesFilled) { fixed (int* codepointsFitted2 = &codepointsFitted) { fixed (RectF* boundingBox2 = &boundingBox) { fixed (GpStringFormat* stringFormat2 = &stringFormat) { fixed (RectF* layoutRect2 = &layoutRect) { fixed (GpFont* font2 = &font) { IntPtr intPtr; if (string == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref string.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (GpGraphics* graphics2 = &graphics) { return GdipMeasureString(graphics2, value, length, font2, layoutRect2, stringFormat2, boundingBox2, codepointsFitted2, linesFilled2); } } } } } } } } [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); internal unsafe static Status GdipMultiplyLineTransform(ref GpLineGradient brush, [In] [IsReadOnly] ref Matrix matrix, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { fixed (GpLineGradient* brush2 = &brush) { return GdipMultiplyLineTransform(brush2, matrix2, order); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyLineTransform(GpLineGradient* brush, Matrix* matrix, MatrixOrder order); internal unsafe static Status GdipMultiplyMatrix(ref Matrix matrix, ref Matrix matrix2, MatrixOrder order) { fixed (Matrix* matrix4 = &matrix2) { fixed (Matrix* matrix3 = &matrix) { return GdipMultiplyMatrix(matrix3, matrix4, order); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyMatrix(Matrix* matrix, Matrix* matrix2, MatrixOrder order); internal unsafe static Status GdipMultiplyPathGradientTransform(ref GpPathGradient brush, [In] [IsReadOnly] ref Matrix matrix, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPathGradient* brush2 = &brush) { return GdipMultiplyPathGradientTransform(brush2, matrix2, order); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyPathGradientTransform(GpPathGradient* brush, Matrix* matrix, MatrixOrder order); internal unsafe static Status GdipMultiplyPenTransform(ref GpPen pen, [In] [IsReadOnly] ref Matrix matrix, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPen* pen2 = &pen) { return GdipMultiplyPenTransform(pen2, matrix2, order); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyPenTransform(GpPen* pen, Matrix* matrix, MatrixOrder order); internal unsafe static Status GdipMultiplyTextureTransform(ref GpTexture brush, [In] [IsReadOnly] ref Matrix matrix, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { fixed (GpTexture* brush2 = &brush) { return GdipMultiplyTextureTransform(brush2, matrix2, order); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyTextureTransform(GpTexture* brush, Matrix* matrix, MatrixOrder order); internal unsafe static Status GdipMultiplyWorldTransform(ref GpGraphics graphics, [In] [IsReadOnly] ref Matrix matrix, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { fixed (GpGraphics* graphics2 = &graphics) { return GdipMultiplyWorldTransform(graphics2, matrix2, order); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipMultiplyWorldTransform(GpGraphics* graphics, Matrix* matrix, MatrixOrder order); internal unsafe static Status GdipNewInstalledFontCollection(ref GpFontCollection* fontCollection) { fixed (GpFontCollection** fontCollection2 = &fontCollection) { return GdipNewInstalledFontCollection(fontCollection2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipNewInstalledFontCollection(GpFontCollection** fontCollection); internal unsafe static Status GdipNewPrivateFontCollection(ref GpFontCollection* fontCollection) { fixed (GpFontCollection** fontCollection2 = &fontCollection) { return GdipNewPrivateFontCollection(fontCollection2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipNewPrivateFontCollection(GpFontCollection** fontCollection); internal unsafe static Status GdipPathIterCopyData(ref GpPathIterator iterator, out int resultCount, out PointF points, out byte types, int startIndex, int endIndex) { fixed (byte* types2 = &types) { fixed (PointF* points2 = &points) { fixed (int* resultCount2 = &resultCount) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterCopyData(iterator2, resultCount2, points2, types2, startIndex, endIndex); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterCopyData(GpPathIterator* iterator, int* resultCount, PointF* points, byte* types, int startIndex, int endIndex); internal unsafe static Status GdipPathIterEnumerate(ref GpPathIterator iterator, out int resultCount, Span<PointF> points, Span<byte> types) { fixed (byte* types2 = &types.GetPinnableReference()) { fixed (PointF* points2 = &points.GetPinnableReference()) { fixed (int* resultCount2 = &resultCount) { fixed (GpPathIterator* ptr = &iterator) { GpPathIterator* iterator2 = ptr; if (points.Length != types.Length) throw new ArgumentException(); return GdipPathIterEnumerate(iterator2, resultCount2, points2, types2, types.Length); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterEnumerate(GpPathIterator* iterator, int* resultCount, PointF* points, byte* types, int count); internal unsafe static Status GdipPathIterGetCount(ref GpPathIterator iterator, ref int count) { fixed (int* count2 = &count) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterGetCount(iterator2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterGetCount(GpPathIterator* iterator, int* count); internal unsafe static Status GdipPathIterGetSubpathCount(ref GpPathIterator iterator, ref int count) { fixed (int* count2 = &count) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterGetSubpathCount(iterator2, count2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterGetSubpathCount(GpPathIterator* iterator, int* count); internal unsafe static Status GdipPathIterHasCurve(ref GpPathIterator iterator, ref BOOL hasCurve) { fixed (BOOL* hasCurve2 = &hasCurve) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterHasCurve(iterator2, hasCurve2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterHasCurve(GpPathIterator* iterator, BOOL* hasCurve); internal unsafe static Status GdipPathIterIsValid(ref GpPathIterator iterator, ref BOOL valid) { fixed (BOOL* valid2 = &valid) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterIsValid(iterator2, valid2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterIsValid(GpPathIterator* iterator, BOOL* valid); internal unsafe static Status GdipPathIterNextMarker(ref GpPathIterator iterator, ref int resultCount, ref int startIndex, ref int endIndex) { fixed (int* endIndex2 = &endIndex) { fixed (int* startIndex2 = &startIndex) { fixed (int* resultCount2 = &resultCount) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterNextMarker(iterator2, resultCount2, startIndex2, endIndex2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextMarker(GpPathIterator* iterator, int* resultCount, int* startIndex, int* endIndex); internal unsafe static Status GdipPathIterNextMarkerPath(ref GpPathIterator iterator, ref int resultCount, ref GpPath path) { fixed (GpPath* path2 = &path) { fixed (int* resultCount2 = &resultCount) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterNextMarkerPath(iterator2, resultCount2, path2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextMarkerPath(GpPathIterator* iterator, int* resultCount, GpPath* path); internal unsafe static Status GdipPathIterNextPathType(ref GpPathIterator iterator, out int resultCount, out byte pathType, out int startIndex, out int endIndex) { fixed (int* endIndex2 = &endIndex) { fixed (int* startIndex2 = &startIndex) { fixed (byte* pathType2 = &pathType) { fixed (int* resultCount2 = &resultCount) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterNextPathType(iterator2, resultCount2, pathType2, startIndex2, endIndex2); } } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextPathType(GpPathIterator* iterator, int* resultCount, byte* pathType, int* startIndex, int* endIndex); internal unsafe static Status GdipPathIterNextSubpath(ref GpPathIterator iterator, ref int resultCount, ref int startIndex, ref int endIndex, ref BOOL isClosed) { fixed (BOOL* isClosed2 = &isClosed) { fixed (int* endIndex2 = &endIndex) { fixed (int* startIndex2 = &startIndex) { fixed (int* resultCount2 = &resultCount) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterNextSubpath(iterator2, resultCount2, startIndex2, endIndex2, isClosed2); } } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextSubpath(GpPathIterator* iterator, int* resultCount, int* startIndex, int* endIndex, BOOL* isClosed); internal unsafe static Status GdipPathIterNextSubpathPath(ref GpPathIterator iterator, ref int resultCount, ref GpPath path, ref BOOL isClosed) { fixed (BOOL* isClosed2 = &isClosed) { fixed (GpPath* path2 = &path) { fixed (int* resultCount2 = &resultCount) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterNextSubpathPath(iterator2, resultCount2, path2, isClosed2); } } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterNextSubpathPath(GpPathIterator* iterator, int* resultCount, GpPath* path, BOOL* isClosed); internal unsafe static Status GdipPathIterRewind(ref GpPathIterator iterator) { fixed (GpPathIterator* iterator2 = &iterator) { return GdipPathIterRewind(iterator2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPathIterRewind(GpPathIterator* iterator); internal unsafe static Status GdipPlayMetafileRecord([In] [IsReadOnly] ref GpMetafile metafile, EmfPlusRecordType recordType, uint flags, uint dataSize, [In] [IsReadOnly] ref byte data) { fixed (byte* data2 = &data) { fixed (GpMetafile* metafile2 = &metafile) { return GdipPlayMetafileRecord(metafile2, recordType, flags, dataSize, data2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPlayMetafileRecord(GpMetafile* metafile, EmfPlusRecordType recordType, uint flags, uint dataSize, byte* data); internal unsafe static Status GdipPrivateAddFontFile(ref GpFontCollection fontCollection, string filename) { IntPtr intPtr; if (filename == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref filename.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (GpFontCollection* fontCollection2 = &fontCollection) { return GdipPrivateAddFontFile(fontCollection2, value); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPrivateAddFontFile(GpFontCollection* fontCollection, PCWSTR filename); internal unsafe static Status GdipPrivateAddMemoryFont(ref GpFontCollection fontCollection, void* memory, int length) { fixed (GpFontCollection* fontCollection2 = &fontCollection) { return GdipPrivateAddMemoryFont(fontCollection2, memory, length); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipPrivateAddMemoryFont(GpFontCollection* fontCollection, void* memory, int length); internal unsafe static Status GdipRecordMetafile(HDC referenceHdc, EmfType type, [In] [IsReadOnly] ref RectF frameRect, MetafileFrameUnit frameUnit, string description, ref GpMetafile* metafile) { fixed (GpMetafile** metafile2 = &metafile) { IntPtr intPtr; if (description == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref description.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (RectF* frameRect2 = &frameRect) { return GdipRecordMetafile(referenceHdc, type, frameRect2, frameUnit, value, metafile2); } } } [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); internal unsafe static Status GdipRecordMetafileFileName(string fileName, HDC referenceHdc, EmfType type, [In] [IsReadOnly] ref RectF frameRect, MetafileFrameUnit frameUnit, string description, ref GpMetafile* metafile) { fixed (GpMetafile** metafile2 = &metafile) { IntPtr intPtr; if (description == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref description.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (RectF* frameRect2 = &frameRect) { IntPtr value2; if (fileName == null) value2 = (IntPtr)(void*)null; else { ref pinnableReference2 = ref fileName.GetPinnableReference(); value2 = (IntPtr)(&pinnableReference2); } return GdipRecordMetafileFileName((char*)(long)value2, referenceHdc, type, frameRect2, frameUnit, value, metafile2); } } } [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); internal unsafe static Status GdipRecordMetafileStream(IStream* stream, HDC referenceHdc, EmfType type, [In] [IsReadOnly] ref RectF frameRect, MetafileFrameUnit frameUnit, string description, ref GpMetafile* metafile) { fixed (GpMetafile** metafile2 = &metafile) { IntPtr intPtr; if (description == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref description.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (RectF* frameRect2 = &frameRect) { return GdipRecordMetafileStream(stream, referenceHdc, type, frameRect2, frameUnit, value, metafile2); } } } [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); internal unsafe static Status GdipReleaseDC(ref GpGraphics graphics, HDC hdc) { fixed (GpGraphics* graphics2 = &graphics) { return GdipReleaseDC(graphics2, hdc); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipReleaseDC(GpGraphics* graphics, HDC hdc); internal unsafe static Status GdipRemovePropertyItem(ref GpImage image, uint propId) { fixed (GpImage* image2 = &image) { return GdipRemovePropertyItem(image2, propId); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRemovePropertyItem(GpImage* image, uint propId); internal unsafe static Status GdipResetClip(ref GpGraphics graphics) { fixed (GpGraphics* graphics2 = &graphics) { return GdipResetClip(graphics2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetClip(GpGraphics* graphics); internal unsafe static Status GdipResetLineTransform(ref GpLineGradient brush) { fixed (GpLineGradient* brush2 = &brush) { return GdipResetLineTransform(brush2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetLineTransform(GpLineGradient* brush); internal unsafe static Status GdipResetPath(ref GpPath path) { fixed (GpPath* path2 = &path) { return GdipResetPath(path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetPath(GpPath* path); internal unsafe static Status GdipResetPathGradientTransform(ref GpPathGradient brush) { fixed (GpPathGradient* brush2 = &brush) { return GdipResetPathGradientTransform(brush2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetPathGradientTransform(GpPathGradient* brush); internal unsafe static Status GdipResetPenTransform(ref GpPen pen) { fixed (GpPen* pen2 = &pen) { return GdipResetPenTransform(pen2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetPenTransform(GpPen* pen); internal unsafe static Status GdipResetTextureTransform(ref GpTexture brush) { fixed (GpTexture* brush2 = &brush) { return GdipResetTextureTransform(brush2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetTextureTransform(GpTexture* brush); internal unsafe static Status GdipResetWorldTransform(ref GpGraphics graphics) { fixed (GpGraphics* graphics2 = &graphics) { return GdipResetWorldTransform(graphics2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipResetWorldTransform(GpGraphics* graphics); internal unsafe static Status GdipRestoreGraphics(ref GpGraphics graphics, uint state) { fixed (GpGraphics* graphics2 = &graphics) { return GdipRestoreGraphics(graphics2, state); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRestoreGraphics(GpGraphics* graphics, uint state); internal unsafe static Status GdipReversePath(ref GpPath path) { fixed (GpPath* path2 = &path) { return GdipReversePath(path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipReversePath(GpPath* path); internal unsafe static Status GdipRotateLineTransform(ref GpLineGradient brush, float angle, MatrixOrder order) { fixed (GpLineGradient* brush2 = &brush) { return GdipRotateLineTransform(brush2, angle, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotateLineTransform(GpLineGradient* brush, float angle, MatrixOrder order); internal unsafe static Status GdipRotateMatrix(ref Matrix matrix, float angle, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { return GdipRotateMatrix(matrix2, angle, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotateMatrix(Matrix* matrix, float angle, MatrixOrder order); internal unsafe static Status GdipRotatePathGradientTransform(ref GpPathGradient brush, float angle, MatrixOrder order) { fixed (GpPathGradient* brush2 = &brush) { return GdipRotatePathGradientTransform(brush2, angle, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotatePathGradientTransform(GpPathGradient* brush, float angle, MatrixOrder order); internal unsafe static Status GdipRotatePenTransform(ref GpPen pen, float angle, MatrixOrder order) { fixed (GpPen* pen2 = &pen) { return GdipRotatePenTransform(pen2, angle, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotatePenTransform(GpPen* pen, float angle, MatrixOrder order); internal unsafe static Status GdipRotateTextureTransform(ref GpTexture brush, float angle, MatrixOrder order) { fixed (GpTexture* brush2 = &brush) { return GdipRotateTextureTransform(brush2, angle, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotateTextureTransform(GpTexture* brush, float angle, MatrixOrder order); internal unsafe static Status GdipRotateWorldTransform(ref GpGraphics graphics, float angle, MatrixOrder order) { fixed (GpGraphics* graphics2 = &graphics) { return GdipRotateWorldTransform(graphics2, angle, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipRotateWorldTransform(GpGraphics* graphics, float angle, MatrixOrder order); internal unsafe static Status GdipSaveAdd(ref GpImage image, EncoderParameters* encoderParams) { fixed (GpImage* image2 = &image) { return GdipSaveAdd(image2, encoderParams); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveAdd(GpImage* image, EncoderParameters* encoderParams); internal unsafe static Status GdipSaveAddImage(ref GpImage image, ref GpImage newImage, EncoderParameters* encoderParams) { fixed (GpImage* newImage2 = &newImage) { fixed (GpImage* image2 = &image) { return GdipSaveAddImage(image2, newImage2, encoderParams); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveAddImage(GpImage* image, GpImage* newImage, EncoderParameters* encoderParams); internal unsafe static Status GdipSaveGraphics(ref GpGraphics graphics, ref uint state) { fixed (uint* state2 = &state) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSaveGraphics(graphics2, state2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveGraphics(GpGraphics* graphics, uint* state); internal unsafe static Status GdipSaveImageToFile(ref GpImage image, string filename, [In] [IsReadOnly] ref Guid clsidEncoder, EncoderParameters* encoderParams) { fixed (Guid* clsidEncoder2 = &clsidEncoder) { IntPtr intPtr; if (filename == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref filename.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (GpImage* image2 = &image) { return GdipSaveImageToFile(image2, value, clsidEncoder2, encoderParams); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveImageToFile(GpImage* image, PCWSTR filename, Guid* clsidEncoder, EncoderParameters* encoderParams); internal unsafe static Status GdipSaveImageToStream(ref GpImage image, IStream* stream, [In] [IsReadOnly] ref Guid clsidEncoder, EncoderParameters* encoderParams) { fixed (Guid* clsidEncoder2 = &clsidEncoder) { fixed (GpImage* image2 = &image) { return GdipSaveImageToStream(image2, stream, clsidEncoder2, encoderParams); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSaveImageToStream(GpImage* image, IStream* stream, Guid* clsidEncoder, EncoderParameters* encoderParams); internal unsafe static Status GdipScaleLineTransform(ref GpLineGradient brush, float sx, float sy, MatrixOrder order) { fixed (GpLineGradient* brush2 = &brush) { return GdipScaleLineTransform(brush2, sx, sy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScaleLineTransform(GpLineGradient* brush, float sx, float sy, MatrixOrder order); internal unsafe static Status GdipScaleMatrix(ref Matrix matrix, float scaleX, float scaleY, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { return GdipScaleMatrix(matrix2, scaleX, scaleY, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScaleMatrix(Matrix* matrix, float scaleX, float scaleY, MatrixOrder order); internal unsafe static Status GdipScalePathGradientTransform(ref GpPathGradient brush, float sx, float sy, MatrixOrder order) { fixed (GpPathGradient* brush2 = &brush) { return GdipScalePathGradientTransform(brush2, sx, sy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScalePathGradientTransform(GpPathGradient* brush, float sx, float sy, MatrixOrder order); internal unsafe static Status GdipScalePenTransform(ref GpPen pen, float sx, float sy, MatrixOrder order) { fixed (GpPen* pen2 = &pen) { return GdipScalePenTransform(pen2, sx, sy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScalePenTransform(GpPen* pen, float sx, float sy, MatrixOrder order); internal unsafe static Status GdipScaleTextureTransform(ref GpTexture brush, float sx, float sy, MatrixOrder order) { fixed (GpTexture* brush2 = &brush) { return GdipScaleTextureTransform(brush2, sx, sy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScaleTextureTransform(GpTexture* brush, float sx, float sy, MatrixOrder order); internal unsafe static Status GdipScaleWorldTransform(ref GpGraphics graphics, float sx, float sy, MatrixOrder order) { fixed (GpGraphics* graphics2 = &graphics) { return GdipScaleWorldTransform(graphics2, sx, sy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipScaleWorldTransform(GpGraphics* graphics, float sx, float sy, MatrixOrder order); internal unsafe static Status GdipSetAdjustableArrowCapFillState(ref GpAdjustableArrowCap cap, BOOL fillState) { fixed (GpAdjustableArrowCap* cap2 = &cap) { return GdipSetAdjustableArrowCapFillState(cap2, fillState); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetAdjustableArrowCapFillState(GpAdjustableArrowCap* cap, BOOL fillState); internal unsafe static Status GdipSetAdjustableArrowCapHeight(ref GpAdjustableArrowCap cap, float height) { fixed (GpAdjustableArrowCap* cap2 = &cap) { return GdipSetAdjustableArrowCapHeight(cap2, height); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetAdjustableArrowCapHeight(GpAdjustableArrowCap* cap, float height); internal unsafe static Status GdipSetAdjustableArrowCapMiddleInset(ref GpAdjustableArrowCap cap, float middleInset) { fixed (GpAdjustableArrowCap* cap2 = &cap) { return GdipSetAdjustableArrowCapMiddleInset(cap2, middleInset); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetAdjustableArrowCapMiddleInset(GpAdjustableArrowCap* cap, float middleInset); internal unsafe static Status GdipSetAdjustableArrowCapWidth(ref GpAdjustableArrowCap cap, float width) { fixed (GpAdjustableArrowCap* cap2 = &cap) { return GdipSetAdjustableArrowCapWidth(cap2, width); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetAdjustableArrowCapWidth(GpAdjustableArrowCap* cap, float width); internal unsafe static Status GdipSetClipGraphics(ref GpGraphics graphics, ref GpGraphics srcgraphics, CombineMode combineMode) { fixed (GpGraphics* srcgraphics2 = &srcgraphics) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetClipGraphics(graphics2, srcgraphics2, combineMode); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetClipGraphics(GpGraphics* graphics, GpGraphics* srcgraphics, CombineMode combineMode); internal unsafe static Status GdipSetClipPath(ref GpGraphics graphics, ref GpPath path, CombineMode combineMode) { fixed (GpPath* path2 = &path) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetClipPath(graphics2, path2, combineMode); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetClipPath(GpGraphics* graphics, GpPath* path, CombineMode combineMode); internal unsafe static Status GdipSetClipRect(ref GpGraphics graphics, float x, float y, float width, float height, CombineMode combineMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetClipRect(graphics2, x, y, width, height, 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); internal unsafe static Status GdipSetClipRegion(ref GpGraphics graphics, ref GpRegion region, CombineMode combineMode) { fixed (GpRegion* region2 = &region) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetClipRegion(graphics2, region2, combineMode); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetClipRegion(GpGraphics* graphics, GpRegion* region, CombineMode combineMode); internal unsafe static Status GdipSetCompositingMode(ref GpGraphics graphics, CompositingMode compositingMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetCompositingMode(graphics2, compositingMode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCompositingMode(GpGraphics* graphics, CompositingMode compositingMode); internal unsafe static Status GdipSetCompositingQuality(ref GpGraphics graphics, CompositingQuality compositingQuality) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetCompositingQuality(graphics2, compositingQuality); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCompositingQuality(GpGraphics* graphics, CompositingQuality compositingQuality); internal unsafe static Status GdipSetCustomLineCapBaseCap(ref GpCustomLineCap customCap, LineCap baseCap) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipSetCustomLineCapBaseCap(customCap2, baseCap); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapBaseCap(GpCustomLineCap* customCap, LineCap baseCap); internal unsafe static Status GdipSetCustomLineCapBaseInset(ref GpCustomLineCap customCap, float inset) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipSetCustomLineCapBaseInset(customCap2, inset); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapBaseInset(GpCustomLineCap* customCap, float inset); internal unsafe static Status GdipSetCustomLineCapStrokeCaps(ref GpCustomLineCap customCap, LineCap startCap, LineCap endCap) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipSetCustomLineCapStrokeCaps(customCap2, startCap, endCap); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapStrokeCaps(GpCustomLineCap* customCap, LineCap startCap, LineCap endCap); internal unsafe static Status GdipSetCustomLineCapStrokeJoin(ref GpCustomLineCap customCap, LineJoin lineJoin) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipSetCustomLineCapStrokeJoin(customCap2, lineJoin); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapStrokeJoin(GpCustomLineCap* customCap, LineJoin lineJoin); internal unsafe static Status GdipSetCustomLineCapWidthScale(ref GpCustomLineCap customCap, float widthScale) { fixed (GpCustomLineCap* customCap2 = &customCap) { return GdipSetCustomLineCapWidthScale(customCap2, widthScale); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetCustomLineCapWidthScale(GpCustomLineCap* customCap, float widthScale); internal unsafe static Status GdipSetEffectParameters(ref CGpEffect effect, void* params, uint size) { fixed (CGpEffect* effect2 = &effect) { return GdipSetEffectParameters(effect2, params, size); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetEffectParameters(CGpEffect* effect, void* params, uint size); internal unsafe static Status GdipSetEmpty(ref GpRegion region) { fixed (GpRegion* region2 = &region) { return GdipSetEmpty(region2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetEmpty(GpRegion* region); internal unsafe static Status GdipSetImageAttributesColorKeys(ref GpImageAttributes imageattr, ColorAdjustType type, BOOL enableFlag, uint colorLow, uint colorHigh) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipSetImageAttributesColorKeys(imageattr2, type, enableFlag, colorLow, colorHigh); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesColorKeys(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, uint colorLow, uint colorHigh); internal unsafe static Status GdipSetImageAttributesColorMatrix(ref GpImageAttributes imageattr, ColorAdjustType type, BOOL enableFlag, [In] [IsReadOnly] ref ColorMatrix colorMatrix, [In] [IsReadOnly] ref ColorMatrix grayMatrix, ColorMatrixFlags flags) { fixed (ColorMatrix* grayMatrix2 = &grayMatrix) { fixed (ColorMatrix* colorMatrix2 = &colorMatrix) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipSetImageAttributesColorMatrix(imageattr2, type, enableFlag, colorMatrix2, grayMatrix2, flags); } } } } [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); internal unsafe static Status GdipSetImageAttributesGamma(ref GpImageAttributes imageattr, ColorAdjustType type, BOOL enableFlag, float gamma) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipSetImageAttributesGamma(imageattr2, type, enableFlag, gamma); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesGamma(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, float gamma); internal unsafe static Status GdipSetImageAttributesNoOp(ref GpImageAttributes imageattr, ColorAdjustType type, BOOL enableFlag) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipSetImageAttributesNoOp(imageattr2, type, enableFlag); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesNoOp(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag); internal unsafe static Status GdipSetImageAttributesOutputChannel(ref GpImageAttributes imageattr, ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipSetImageAttributesOutputChannel(imageattr2, type, enableFlag, channelFlags); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesOutputChannel(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, ColorChannelFlags channelFlags); internal unsafe static Status GdipSetImageAttributesOutputChannelColorProfile(ref GpImageAttributes imageattr, ColorAdjustType type, BOOL enableFlag, string colorProfileFilename) { IntPtr intPtr; if (colorProfileFilename == null) intPtr = (IntPtr)(void*)null; else { ref pinnableReference = ref colorProfileFilename.GetPinnableReference(); intPtr = (IntPtr)(&pinnableReference); } char* value = (char*)(long)intPtr; fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipSetImageAttributesOutputChannelColorProfile(imageattr2, type, enableFlag, value); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesOutputChannelColorProfile(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, PCWSTR colorProfileFilename); internal unsafe static Status GdipSetImageAttributesRemapTable(ref GpImageAttributes imageattr, ColorAdjustType type, BOOL enableFlag, uint mapSize, [In] [IsReadOnly] ref ColorMap map) { fixed (ColorMap* map2 = &map) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipSetImageAttributesRemapTable(imageattr2, type, enableFlag, mapSize, map2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesRemapTable(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, uint mapSize, ColorMap* map); internal unsafe static Status GdipSetImageAttributesThreshold(ref GpImageAttributes imageattr, ColorAdjustType type, BOOL enableFlag, float threshold) { fixed (GpImageAttributes* imageattr2 = &imageattr) { return GdipSetImageAttributesThreshold(imageattr2, type, enableFlag, threshold); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesThreshold(GpImageAttributes* imageattr, ColorAdjustType type, BOOL enableFlag, float threshold); internal unsafe static Status GdipSetImageAttributesWrapMode(ref GpImageAttributes imageAttr, WrapMode wrap, uint argb, BOOL clamp) { fixed (GpImageAttributes* imageAttr2 = &imageAttr) { return GdipSetImageAttributesWrapMode(imageAttr2, wrap, argb, clamp); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImageAttributesWrapMode(GpImageAttributes* imageAttr, WrapMode wrap, uint argb, BOOL clamp); internal unsafe static Status GdipSetImagePalette(ref GpImage image, ColorPalette* palette) { fixed (GpImage* image2 = &image) { return GdipSetImagePalette(image2, palette); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetImagePalette(GpImage* image, ColorPalette* palette); internal unsafe static Status GdipSetInfinite(ref GpRegion region) { fixed (GpRegion* region2 = &region) { return GdipSetInfinite(region2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetInfinite(GpRegion* region); internal unsafe static Status GdipSetInterpolationMode(ref GpGraphics graphics, InterpolationMode interpolationMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetInterpolationMode(graphics2, interpolationMode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetInterpolationMode(GpGraphics* graphics, InterpolationMode interpolationMode); internal unsafe static Status GdipSetLineBlend(ref GpLineGradient brush, [In] [IsReadOnly] ref float blend, [In] [IsReadOnly] ref float positions, int count) { fixed (float* positions2 = &positions) { fixed (float* blend2 = &blend) { fixed (GpLineGradient* brush2 = &brush) { return GdipSetLineBlend(brush2, blend2, positions2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineBlend(GpLineGradient* brush, float* blend, float* positions, int count); internal unsafe static Status GdipSetLineColors(ref GpLineGradient brush, uint color1, uint color2) { fixed (GpLineGradient* brush2 = &brush) { return GdipSetLineColors(brush2, color1, color2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineColors(GpLineGradient* brush, uint color1, uint color2); internal unsafe static Status GdipSetLineGammaCorrection(ref GpLineGradient brush, BOOL useGammaCorrection) { fixed (GpLineGradient* brush2 = &brush) { return GdipSetLineGammaCorrection(brush2, useGammaCorrection); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineGammaCorrection(GpLineGradient* brush, BOOL useGammaCorrection); internal unsafe static Status GdipSetLineLinearBlend(ref GpLineGradient brush, float focus, float scale) { fixed (GpLineGradient* brush2 = &brush) { return GdipSetLineLinearBlend(brush2, focus, scale); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineLinearBlend(GpLineGradient* brush, float focus, float scale); internal unsafe static Status GdipSetLinePresetBlend(ref GpLineGradient brush, [In] [IsReadOnly] ref uint blend, [In] [IsReadOnly] ref float positions, int count) { fixed (float* positions2 = &positions) { fixed (uint* blend2 = &blend) { fixed (GpLineGradient* brush2 = &brush) { return GdipSetLinePresetBlend(brush2, blend2, positions2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLinePresetBlend(GpLineGradient* brush, uint* blend, float* positions, int count); internal unsafe static Status GdipSetLineSigmaBlend(ref GpLineGradient brush, float focus, float scale) { fixed (GpLineGradient* brush2 = &brush) { return GdipSetLineSigmaBlend(brush2, focus, scale); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineSigmaBlend(GpLineGradient* brush, float focus, float scale); internal unsafe static Status GdipSetLineTransform(ref GpLineGradient brush, [In] [IsReadOnly] ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpLineGradient* brush2 = &brush) { return GdipSetLineTransform(brush2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineTransform(GpLineGradient* brush, Matrix* matrix); internal unsafe static Status GdipSetLineWrapMode(ref GpLineGradient brush, WrapMode wrapmode) { fixed (GpLineGradient* brush2 = &brush) { return GdipSetLineWrapMode(brush2, wrapmode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetLineWrapMode(GpLineGradient* brush, WrapMode wrapmode); internal unsafe static Status GdipSetMatrixElements(ref Matrix matrix, float m11, float m12, float m21, float m22, float dx, float dy) { fixed (Matrix* matrix2 = &matrix) { return GdipSetMatrixElements(matrix2, m11, m12, m21, m22, dx, dy); } } [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); internal unsafe static Status GdipSetPageScale(ref GpGraphics graphics, float scale) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetPageScale(graphics2, scale); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPageScale(GpGraphics* graphics, float scale); internal unsafe static Status GdipSetPageUnit(ref GpGraphics graphics, Unit unit) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetPageUnit(graphics2, unit); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPageUnit(GpGraphics* graphics, Unit unit); internal unsafe static Status GdipSetPathFillMode(ref GpPath path, FillMode fillmode) { fixed (GpPath* path2 = &path) { return GdipSetPathFillMode(path2, fillmode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathFillMode(GpPath* path, FillMode fillmode); internal unsafe static Status GdipSetPathGradientBlend(ref GpPathGradient brush, [In] [IsReadOnly] ref float blend, [In] [IsReadOnly] ref float positions, int count) { fixed (float* positions2 = &positions) { fixed (float* blend2 = &blend) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientBlend(brush2, blend2, positions2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientBlend(GpPathGradient* brush, float* blend, float* positions, int count); internal unsafe static Status GdipSetPathGradientCenterColor(ref GpPathGradient brush, uint colors) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientCenterColor(brush2, colors); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientCenterColor(GpPathGradient* brush, uint colors); internal unsafe static Status GdipSetPathGradientCenterPoint(ref GpPathGradient brush, [In] [IsReadOnly] ref PointF points) { fixed (PointF* points2 = &points) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientCenterPoint(brush2, points2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientCenterPoint(GpPathGradient* brush, PointF* points); internal unsafe static Status GdipSetPathGradientFocusScales(ref GpPathGradient brush, float xScale, float yScale) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientFocusScales(brush2, xScale, yScale); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientFocusScales(GpPathGradient* brush, float xScale, float yScale); internal unsafe static Status GdipSetPathGradientLinearBlend(ref GpPathGradient brush, float focus, float scale) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientLinearBlend(brush2, focus, scale); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientLinearBlend(GpPathGradient* brush, float focus, float scale); internal unsafe static Status GdipSetPathGradientPresetBlend(ref GpPathGradient brush, [In] [IsReadOnly] ref uint blend, [In] [IsReadOnly] ref float positions, int count) { fixed (float* positions2 = &positions) { fixed (uint* blend2 = &blend) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientPresetBlend(brush2, blend2, positions2, count); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientPresetBlend(GpPathGradient* brush, uint* blend, float* positions, int count); internal unsafe static Status GdipSetPathGradientSigmaBlend(ref GpPathGradient brush, float focus, float scale) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientSigmaBlend(brush2, focus, scale); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientSigmaBlend(GpPathGradient* brush, float focus, float scale); internal unsafe static Status GdipSetPathGradientSurroundColorsWithCount(ref GpPathGradient brush, [In] [IsReadOnly] ref uint color, ref int count) { fixed (int* count2 = &count) { fixed (uint* color2 = &color) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientSurroundColorsWithCount(brush2, color2, count2); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientSurroundColorsWithCount(GpPathGradient* brush, uint* color, int* count); internal unsafe static Status GdipSetPathGradientTransform(ref GpPathGradient brush, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientTransform(brush2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientTransform(GpPathGradient* brush, Matrix* matrix); internal unsafe static Status GdipSetPathGradientWrapMode(ref GpPathGradient brush, WrapMode wrapmode) { fixed (GpPathGradient* brush2 = &brush) { return GdipSetPathGradientWrapMode(brush2, wrapmode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathGradientWrapMode(GpPathGradient* brush, WrapMode wrapmode); internal unsafe static Status GdipSetPathMarker(ref GpPath path) { fixed (GpPath* path2 = &path) { return GdipSetPathMarker(path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPathMarker(GpPath* path); internal unsafe static Status GdipSetPenBrushFill(ref GpPen pen, ref GpBrush brush) { fixed (GpBrush* brush2 = &brush) { fixed (GpPen* pen2 = &pen) { return GdipSetPenBrushFill(pen2, brush2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenBrushFill(GpPen* pen, GpBrush* brush); internal unsafe static Status GdipSetPenColor(ref GpPen pen, uint argb) { fixed (GpPen* pen2 = &pen) { return GdipSetPenColor(pen2, argb); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenColor(GpPen* pen, uint argb); internal unsafe static Status GdipSetPenCompoundArray(ref GpPen pen, [In] [IsReadOnly] ref float dash, int count) { fixed (float* dash2 = &dash) { fixed (GpPen* pen2 = &pen) { return GdipSetPenCompoundArray(pen2, dash2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenCompoundArray(GpPen* pen, float* dash, int count); internal unsafe static Status GdipSetPenCustomEndCap(ref GpPen pen, ref GpCustomLineCap customCap) { fixed (GpCustomLineCap* customCap2 = &customCap) { fixed (GpPen* pen2 = &pen) { return GdipSetPenCustomEndCap(pen2, customCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenCustomEndCap(GpPen* pen, GpCustomLineCap* customCap); internal unsafe static Status GdipSetPenCustomStartCap(ref GpPen pen, ref GpCustomLineCap customCap) { fixed (GpCustomLineCap* customCap2 = &customCap) { fixed (GpPen* pen2 = &pen) { return GdipSetPenCustomStartCap(pen2, customCap2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenCustomStartCap(GpPen* pen, GpCustomLineCap* customCap); internal unsafe static Status GdipSetPenDashArray(ref GpPen pen, [In] [IsReadOnly] ref float dash, int count) { fixed (float* dash2 = &dash) { fixed (GpPen* pen2 = &pen) { return GdipSetPenDashArray(pen2, dash2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenDashArray(GpPen* pen, float* dash, int count); internal unsafe static Status GdipSetPenDashCap197819(ref GpPen pen, DashCap dashCap) { fixed (GpPen* pen2 = &pen) { return GdipSetPenDashCap197819(pen2, dashCap); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenDashCap197819(GpPen* pen, DashCap dashCap); internal unsafe static Status GdipSetPenDashOffset(ref GpPen pen, float offset) { fixed (GpPen* pen2 = &pen) { return GdipSetPenDashOffset(pen2, offset); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenDashOffset(GpPen* pen, float offset); internal unsafe static Status GdipSetPenDashStyle(ref GpPen pen, DashStyle dashstyle) { fixed (GpPen* pen2 = &pen) { return GdipSetPenDashStyle(pen2, dashstyle); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenDashStyle(GpPen* pen, DashStyle dashstyle); internal unsafe static Status GdipSetPenEndCap(ref GpPen pen, LineCap endCap) { fixed (GpPen* pen2 = &pen) { return GdipSetPenEndCap(pen2, endCap); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenEndCap(GpPen* pen, LineCap endCap); internal unsafe static Status GdipSetPenLineCap197819(ref GpPen pen, LineCap startCap, LineCap endCap, DashCap dashCap) { fixed (GpPen* pen2 = &pen) { return GdipSetPenLineCap197819(pen2, startCap, endCap, dashCap); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenLineCap197819(GpPen* pen, LineCap startCap, LineCap endCap, DashCap dashCap); internal unsafe static Status GdipSetPenLineJoin(ref GpPen pen, LineJoin lineJoin) { fixed (GpPen* pen2 = &pen) { return GdipSetPenLineJoin(pen2, lineJoin); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenLineJoin(GpPen* pen, LineJoin lineJoin); internal unsafe static Status GdipSetPenMiterLimit(ref GpPen pen, float miterLimit) { fixed (GpPen* pen2 = &pen) { return GdipSetPenMiterLimit(pen2, miterLimit); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenMiterLimit(GpPen* pen, float miterLimit); internal unsafe static Status GdipSetPenMode(ref GpPen pen, PenAlignment penMode) { fixed (GpPen* pen2 = &pen) { return GdipSetPenMode(pen2, penMode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenMode(GpPen* pen, PenAlignment penMode); internal unsafe static Status GdipSetPenStartCap(ref GpPen pen, LineCap startCap) { fixed (GpPen* pen2 = &pen) { return GdipSetPenStartCap(pen2, startCap); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenStartCap(GpPen* pen, LineCap startCap); internal unsafe static Status GdipSetPenTransform(ref GpPen pen, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPen* pen2 = &pen) { return GdipSetPenTransform(pen2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenTransform(GpPen* pen, Matrix* matrix); internal unsafe static Status GdipSetPenWidth(ref GpPen pen, float width) { fixed (GpPen* pen2 = &pen) { return GdipSetPenWidth(pen2, width); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPenWidth(GpPen* pen, float width); internal unsafe static Status GdipSetPixelOffsetMode(ref GpGraphics graphics, PixelOffsetMode pixelOffsetMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetPixelOffsetMode(graphics2, pixelOffsetMode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPixelOffsetMode(GpGraphics* graphics, PixelOffsetMode pixelOffsetMode); internal unsafe static Status GdipSetPropertyItem(ref GpImage image, [In] [IsReadOnly] ref PropertyItem item) { fixed (PropertyItem* item2 = &item) { fixed (GpImage* image2 = &image) { return GdipSetPropertyItem(image2, item2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetPropertyItem(GpImage* image, PropertyItem* item); internal unsafe static Status GdipSetRenderingOrigin(ref GpGraphics graphics, int x, int y) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetRenderingOrigin(graphics2, x, y); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetRenderingOrigin(GpGraphics* graphics, int x, int y); internal unsafe static Status GdipSetSmoothingMode(ref GpGraphics graphics, SmoothingMode smoothingMode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetSmoothingMode(graphics2, smoothingMode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetSmoothingMode(GpGraphics* graphics, SmoothingMode smoothingMode); internal unsafe static Status GdipSetSolidFillColor(ref GpSolidFill brush, uint color) { fixed (GpSolidFill* brush2 = &brush) { return GdipSetSolidFillColor(brush2, color); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetSolidFillColor(GpSolidFill* brush, uint color); internal unsafe static Status GdipSetStringFormatAlign(ref GpStringFormat format, StringAlignment align) { fixed (GpStringFormat* format2 = &format) { return GdipSetStringFormatAlign(format2, align); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatAlign(GpStringFormat* format, StringAlignment align); internal unsafe static Status GdipSetStringFormatDigitSubstitution(ref GpStringFormat format, ushort language, StringDigitSubstitute substitute) { fixed (GpStringFormat* format2 = &format) { return GdipSetStringFormatDigitSubstitution(format2, language, substitute); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatDigitSubstitution(GpStringFormat* format, ushort language, StringDigitSubstitute substitute); internal unsafe static Status GdipSetStringFormatFlags(ref GpStringFormat format, int flags) { fixed (GpStringFormat* format2 = &format) { return GdipSetStringFormatFlags(format2, flags); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatFlags(GpStringFormat* format, int flags); internal unsafe static Status GdipSetStringFormatHotkeyPrefix(ref GpStringFormat format, int hotkeyPrefix) { fixed (GpStringFormat* format2 = &format) { return GdipSetStringFormatHotkeyPrefix(format2, hotkeyPrefix); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatHotkeyPrefix(GpStringFormat* format, int hotkeyPrefix); internal unsafe static Status GdipSetStringFormatLineAlign(ref GpStringFormat format, StringAlignment align) { fixed (GpStringFormat* format2 = &format) { return GdipSetStringFormatLineAlign(format2, align); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatLineAlign(GpStringFormat* format, StringAlignment align); internal unsafe static Status GdipSetStringFormatMeasurableCharacterRanges(ref GpStringFormat format, int rangeCount, [In] [IsReadOnly] ref CharacterRange ranges) { fixed (CharacterRange* ranges2 = &ranges) { fixed (GpStringFormat* format2 = &format) { return GdipSetStringFormatMeasurableCharacterRanges(format2, rangeCount, ranges2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatMeasurableCharacterRanges(GpStringFormat* format, int rangeCount, CharacterRange* ranges); internal unsafe static Status GdipSetStringFormatTabStops(ref GpStringFormat format, float firstTabOffset, int count, [In] [IsReadOnly] ref float tabStops) { fixed (float* tabStops2 = &tabStops) { fixed (GpStringFormat* format2 = &format) { return GdipSetStringFormatTabStops(format2, firstTabOffset, count, tabStops2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatTabStops(GpStringFormat* format, float firstTabOffset, int count, float* tabStops); internal unsafe static Status GdipSetStringFormatTrimming(ref GpStringFormat format, StringTrimming trimming) { fixed (GpStringFormat* format2 = &format) { return GdipSetStringFormatTrimming(format2, trimming); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetStringFormatTrimming(GpStringFormat* format, StringTrimming trimming); internal unsafe static Status GdipSetTextContrast(ref GpGraphics graphics, uint contrast) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetTextContrast(graphics2, contrast); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetTextContrast(GpGraphics* graphics, uint contrast); internal unsafe static Status GdipSetTextRenderingHint(ref GpGraphics graphics, TextRenderingHint mode) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetTextRenderingHint(graphics2, mode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetTextRenderingHint(GpGraphics* graphics, TextRenderingHint mode); internal unsafe static Status GdipSetTextureTransform(ref GpTexture brush, [In] [IsReadOnly] ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpTexture* brush2 = &brush) { return GdipSetTextureTransform(brush2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetTextureTransform(GpTexture* brush, Matrix* matrix); internal unsafe static Status GdipSetTextureWrapMode(ref GpTexture brush, WrapMode wrapmode) { fixed (GpTexture* brush2 = &brush) { return GdipSetTextureWrapMode(brush2, wrapmode); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetTextureWrapMode(GpTexture* brush, WrapMode wrapmode); internal unsafe static Status GdipSetWorldTransform(ref GpGraphics graphics, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpGraphics* graphics2 = &graphics) { return GdipSetWorldTransform(graphics2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipSetWorldTransform(GpGraphics* graphics, Matrix* matrix); internal unsafe static Status GdipShearMatrix(ref Matrix matrix, float shearX, float shearY, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { return GdipShearMatrix(matrix2, shearX, shearY, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipShearMatrix(Matrix* matrix, float shearX, float shearY, MatrixOrder order); internal unsafe static Status GdipStartPathFigure(ref GpPath path) { fixed (GpPath* path2 = &path) { return GdipStartPathFigure(path2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipStartPathFigure(GpPath* path); internal unsafe static Status GdipStringFormatGetGenericDefault(ref GpStringFormat* format) { fixed (GpStringFormat** format2 = &format) { return GdipStringFormatGetGenericDefault(format2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipStringFormatGetGenericDefault(GpStringFormat** format); internal unsafe static Status GdipStringFormatGetGenericTypographic(ref GpStringFormat* format) { fixed (GpStringFormat** format2 = &format) { return GdipStringFormatGetGenericTypographic(format2); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipStringFormatGetGenericTypographic(GpStringFormat** format); internal unsafe static Status GdipTransformMatrixPoints(ref Matrix matrix, ref PointF pts, int count) { fixed (PointF* pts2 = &pts) { fixed (Matrix* matrix2 = &matrix) { return GdipTransformMatrixPoints(matrix2, pts2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformMatrixPoints(Matrix* matrix, PointF* pts, int count); internal unsafe static Status GdipTransformMatrixPointsI(ref Matrix matrix, ref Point pts, int count) { fixed (Point* pts2 = &pts) { fixed (Matrix* matrix2 = &matrix) { return GdipTransformMatrixPointsI(matrix2, pts2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformMatrixPointsI(Matrix* matrix, Point* pts, int count); internal unsafe static Status GdipTransformPath(ref GpPath path, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPath* path2 = &path) { return GdipTransformPath(path2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformPath(GpPath* path, Matrix* matrix); internal unsafe static Status GdipTransformPoints(ref GpGraphics graphics, CoordinateSpace destSpace, CoordinateSpace srcSpace, ref PointF points, int count) { fixed (PointF* points2 = &points) { fixed (GpGraphics* graphics2 = &graphics) { return GdipTransformPoints(graphics2, destSpace, srcSpace, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformPoints(GpGraphics* graphics, CoordinateSpace destSpace, CoordinateSpace srcSpace, PointF* points, int count); internal unsafe static Status GdipTransformPointsI(ref GpGraphics graphics, CoordinateSpace destSpace, CoordinateSpace srcSpace, ref Point points, int count) { fixed (Point* points2 = &points) { fixed (GpGraphics* graphics2 = &graphics) { return GdipTransformPointsI(graphics2, destSpace, srcSpace, points2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformPointsI(GpGraphics* graphics, CoordinateSpace destSpace, CoordinateSpace srcSpace, Point* points, int count); internal unsafe static Status GdipTransformRegion(ref GpRegion region, ref Matrix matrix) { fixed (Matrix* matrix2 = &matrix) { fixed (GpRegion* region2 = &region) { return GdipTransformRegion(region2, matrix2); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTransformRegion(GpRegion* region, Matrix* matrix); internal unsafe static Status GdipTranslateClip(ref GpGraphics graphics, float dx, float dy) { fixed (GpGraphics* graphics2 = &graphics) { return GdipTranslateClip(graphics2, dx, dy); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateClip(GpGraphics* graphics, float dx, float dy); internal unsafe static Status GdipTranslateLineTransform(ref GpLineGradient brush, float dx, float dy, MatrixOrder order) { fixed (GpLineGradient* brush2 = &brush) { return GdipTranslateLineTransform(brush2, dx, dy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateLineTransform(GpLineGradient* brush, float dx, float dy, MatrixOrder order); internal unsafe static Status GdipTranslateMatrix(ref Matrix matrix, float offsetX, float offsetY, MatrixOrder order) { fixed (Matrix* matrix2 = &matrix) { return GdipTranslateMatrix(matrix2, offsetX, offsetY, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateMatrix(Matrix* matrix, float offsetX, float offsetY, MatrixOrder order); internal unsafe static Status GdipTranslatePathGradientTransform(ref GpPathGradient brush, float dx, float dy, MatrixOrder order) { fixed (GpPathGradient* brush2 = &brush) { return GdipTranslatePathGradientTransform(brush2, dx, dy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslatePathGradientTransform(GpPathGradient* brush, float dx, float dy, MatrixOrder order); internal unsafe static Status GdipTranslatePenTransform(ref GpPen pen, float dx, float dy, MatrixOrder order) { fixed (GpPen* pen2 = &pen) { return GdipTranslatePenTransform(pen2, dx, dy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslatePenTransform(GpPen* pen, float dx, float dy, MatrixOrder order); internal unsafe static Status GdipTranslateRegion(ref GpRegion region, float dx, float dy) { fixed (GpRegion* region2 = &region) { return GdipTranslateRegion(region2, dx, dy); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateRegion(GpRegion* region, float dx, float dy); internal unsafe static Status GdipTranslateTextureTransform(ref GpTexture brush, float dx, float dy, MatrixOrder order) { fixed (GpTexture* brush2 = &brush) { return GdipTranslateTextureTransform(brush2, dx, dy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateTextureTransform(GpTexture* brush, float dx, float dy, MatrixOrder order); internal unsafe static Status GdipTranslateWorldTransform(ref GpGraphics graphics, float dx, float dy, MatrixOrder order) { fixed (GpGraphics* graphics2 = &graphics) { return GdipTranslateWorldTransform(graphics2, dx, dy, order); } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipTranslateWorldTransform(GpGraphics* graphics, float dx, float dy, MatrixOrder order); internal unsafe static Status GdipVectorTransformMatrixPoints(ref Matrix matrix, ref PointF pts, int count) { fixed (PointF* pts2 = &pts) { fixed (Matrix* matrix2 = &matrix) { return GdipVectorTransformMatrixPoints(matrix2, pts2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipVectorTransformMatrixPoints(Matrix* matrix, PointF* pts, int count); internal unsafe static Status GdipVectorTransformMatrixPointsI(ref Matrix matrix, ref Point pts, int count) { fixed (Point* pts2 = &pts) { fixed (Matrix* matrix2 = &matrix) { return GdipVectorTransformMatrixPointsI(matrix2, pts2, count); } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipVectorTransformMatrixPointsI(Matrix* matrix, Point* pts, int count); internal unsafe static Status GdipWarpPath(ref GpPath path, ref Matrix matrix, [In] [IsReadOnly] ref PointF points, int count, float srcx, float srcy, float srcwidth, float srcheight, WarpMode warpMode, float flatness) { fixed (PointF* points2 = &points) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPath* path2 = &path) { return GdipWarpPath(path2, matrix2, points2, count, srcx, srcy, srcwidth, srcheight, warpMode, flatness); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipWarpPath(GpPath* path, Matrix* matrix, PointF* points, int count, float srcx, float srcy, float srcwidth, float srcheight, WarpMode warpMode, float flatness); internal unsafe static Status GdipWidenPath(ref GpPath nativePath, ref GpPen pen, ref Matrix matrix, float flatness) { fixed (Matrix* matrix2 = &matrix) { fixed (GpPen* pen2 = &pen) { fixed (GpPath* nativePath2 = &nativePath) { return GdipWidenPath(nativePath2, pen2, matrix2, flatness); } } } } [DllImport("gdiplus.dll", ExactSpelling = true)] [DefaultDllImportSearchPaths(DllImportSearchPath.System32)] internal unsafe static extern Status GdipWidenPath(GpPath* nativePath, GpPen* pen, Matrix* matrix, float flatness); } }