1 // Licensed to the .NET Foundation under one or more agreements. 2 // The .NET Foundation licenses this file to you under the MIT license. 3 // See the LICENSE file in the project root for more information. 4 5 using Microsoft.Win32.SafeHandles; 6 using System.Drawing.Drawing2D; 7 using System.Drawing.Imaging; 8 using System.Drawing.Internal; 9 using System.Drawing.Text; 10 using System.Runtime.InteropServices; 11 using System.Text; 12 13 namespace System.Drawing 14 { 15 internal partial class SafeNativeMethods 16 { 17 internal partial class Gdip 18 { 19 private const string LibraryName = "gdiplus.dll"; 20 21 private static SafeLibraryHandle s_gdipHandle; 22 LoadNativeLibrary()23 private static IntPtr LoadNativeLibrary() 24 { 25 s_gdipHandle = Interop.Kernel32.LoadLibraryExW(LibraryName, IntPtr.Zero, 0); 26 return s_gdipHandle.DangerousGetHandle(); 27 } 28 PlatformInitialize()29 private static void PlatformInitialize() 30 { 31 LoadFunctionPointers(); 32 } 33 LoadFunctionPointers()34 private static void LoadFunctionPointers() 35 { 36 GdiplusStartup_ptr = FunctionWrapper.Load<GdiplusStartup_delegate>(s_gdipModule, "GdiplusStartup", LibraryName); 37 GdipCreatePath_ptr = FunctionWrapper.Load<GdipCreatePath_delegate>(s_gdipModule, "GdipCreatePath", LibraryName); 38 GdipCreatePath2_ptr = FunctionWrapper.Load<GdipCreatePath2_delegate>(s_gdipModule, "GdipCreatePath2", LibraryName); 39 GdipCreatePath2I_ptr = FunctionWrapper.Load<GdipCreatePath2I_delegate>(s_gdipModule, "GdipCreatePath2I", LibraryName); 40 GdipClonePath_ptr = FunctionWrapper.Load<GdipClonePath_delegate>(s_gdipModule, "GdipClonePath", LibraryName); 41 GdipDeletePath_ptr = FunctionWrapper.Load<GdipDeletePath_delegate>(s_gdipModule, "GdipDeletePath", LibraryName); 42 GdipResetPath_ptr = FunctionWrapper.Load<GdipResetPath_delegate>(s_gdipModule, "GdipResetPath", LibraryName); 43 GdipGetPointCount_ptr = FunctionWrapper.Load<GdipGetPointCount_delegate>(s_gdipModule, "GdipGetPointCount", LibraryName); 44 GdipGetPathTypes_ptr = FunctionWrapper.Load<GdipGetPathTypes_delegate>(s_gdipModule, "GdipGetPathTypes", LibraryName); 45 GdipGetPathPoints_ptr = FunctionWrapper.Load<GdipGetPathPoints_delegate>(s_gdipModule, "GdipGetPathPoints", LibraryName); 46 GdipGetPathFillMode_ptr = FunctionWrapper.Load<GdipGetPathFillMode_delegate>(s_gdipModule, "GdipGetPathFillMode", LibraryName); 47 GdipSetPathFillMode_ptr = FunctionWrapper.Load<GdipSetPathFillMode_delegate>(s_gdipModule, "GdipSetPathFillMode", LibraryName); 48 GdipGetPathData_ptr = FunctionWrapper.Load<GdipGetPathData_delegate>(s_gdipModule, "GdipGetPathData", LibraryName); 49 GdipStartPathFigure_ptr = FunctionWrapper.Load<GdipStartPathFigure_delegate>(s_gdipModule, "GdipStartPathFigure", LibraryName); 50 GdipClosePathFigure_ptr = FunctionWrapper.Load<GdipClosePathFigure_delegate>(s_gdipModule, "GdipClosePathFigure", LibraryName); 51 GdipClosePathFigures_ptr = FunctionWrapper.Load<GdipClosePathFigures_delegate>(s_gdipModule, "GdipClosePathFigures", LibraryName); 52 GdipSetPathMarker_ptr = FunctionWrapper.Load<GdipSetPathMarker_delegate>(s_gdipModule, "GdipSetPathMarker", LibraryName); 53 GdipClearPathMarkers_ptr = FunctionWrapper.Load<GdipClearPathMarkers_delegate>(s_gdipModule, "GdipClearPathMarkers", LibraryName); 54 GdipReversePath_ptr = FunctionWrapper.Load<GdipReversePath_delegate>(s_gdipModule, "GdipReversePath", LibraryName); 55 GdipGetPathLastPoint_ptr = FunctionWrapper.Load<GdipGetPathLastPoint_delegate>(s_gdipModule, "GdipGetPathLastPoint", LibraryName); 56 GdipAddPathLine_ptr = FunctionWrapper.Load<GdipAddPathLine_delegate>(s_gdipModule, "GdipAddPathLine", LibraryName); 57 GdipAddPathLine2_ptr = FunctionWrapper.Load<GdipAddPathLine2_delegate>(s_gdipModule, "GdipAddPathLine2", LibraryName); 58 GdipAddPathArc_ptr = FunctionWrapper.Load<GdipAddPathArc_delegate>(s_gdipModule, "GdipAddPathArc", LibraryName); 59 GdipAddPathBezier_ptr = FunctionWrapper.Load<GdipAddPathBezier_delegate>(s_gdipModule, "GdipAddPathBezier", LibraryName); 60 GdipAddPathBeziers_ptr = FunctionWrapper.Load<GdipAddPathBeziers_delegate>(s_gdipModule, "GdipAddPathBeziers", LibraryName); 61 GdipAddPathCurve_ptr = FunctionWrapper.Load<GdipAddPathCurve_delegate>(s_gdipModule, "GdipAddPathCurve", LibraryName); 62 GdipAddPathCurve2_ptr = FunctionWrapper.Load<GdipAddPathCurve2_delegate>(s_gdipModule, "GdipAddPathCurve2", LibraryName); 63 GdipAddPathCurve3_ptr = FunctionWrapper.Load<GdipAddPathCurve3_delegate>(s_gdipModule, "GdipAddPathCurve3", LibraryName); 64 GdipAddPathClosedCurve_ptr = FunctionWrapper.Load<GdipAddPathClosedCurve_delegate>(s_gdipModule, "GdipAddPathClosedCurve", LibraryName); 65 GdipAddPathClosedCurve2_ptr = FunctionWrapper.Load<GdipAddPathClosedCurve2_delegate>(s_gdipModule, "GdipAddPathClosedCurve2", LibraryName); 66 GdipAddPathRectangle_ptr = FunctionWrapper.Load<GdipAddPathRectangle_delegate>(s_gdipModule, "GdipAddPathRectangle", LibraryName); 67 GdipAddPathRectangles_ptr = FunctionWrapper.Load<GdipAddPathRectangles_delegate>(s_gdipModule, "GdipAddPathRectangles", LibraryName); 68 GdipAddPathEllipse_ptr = FunctionWrapper.Load<GdipAddPathEllipse_delegate>(s_gdipModule, "GdipAddPathEllipse", LibraryName); 69 GdipAddPathPie_ptr = FunctionWrapper.Load<GdipAddPathPie_delegate>(s_gdipModule, "GdipAddPathPie", LibraryName); 70 GdipAddPathPolygon_ptr = FunctionWrapper.Load<GdipAddPathPolygon_delegate>(s_gdipModule, "GdipAddPathPolygon", LibraryName); 71 GdipAddPathPath_ptr = FunctionWrapper.Load<GdipAddPathPath_delegate>(s_gdipModule, "GdipAddPathPath", LibraryName); 72 GdipAddPathString_ptr = FunctionWrapper.Load<GdipAddPathString_delegate>(s_gdipModule, "GdipAddPathString", LibraryName); 73 GdipAddPathStringI_ptr = FunctionWrapper.Load<GdipAddPathStringI_delegate>(s_gdipModule, "GdipAddPathStringI", LibraryName); 74 GdipAddPathLineI_ptr = FunctionWrapper.Load<GdipAddPathLineI_delegate>(s_gdipModule, "GdipAddPathLineI", LibraryName); 75 GdipAddPathLine2I_ptr = FunctionWrapper.Load<GdipAddPathLine2I_delegate>(s_gdipModule, "GdipAddPathLine2I", LibraryName); 76 GdipAddPathArcI_ptr = FunctionWrapper.Load<GdipAddPathArcI_delegate>(s_gdipModule, "GdipAddPathArcI", LibraryName); 77 GdipAddPathBezierI_ptr = FunctionWrapper.Load<GdipAddPathBezierI_delegate>(s_gdipModule, "GdipAddPathBezierI", LibraryName); 78 GdipAddPathBeziersI_ptr = FunctionWrapper.Load<GdipAddPathBeziersI_delegate>(s_gdipModule, "GdipAddPathBeziersI", LibraryName); 79 GdipAddPathCurveI_ptr = FunctionWrapper.Load<GdipAddPathCurveI_delegate>(s_gdipModule, "GdipAddPathCurveI", LibraryName); 80 GdipAddPathCurve2I_ptr = FunctionWrapper.Load<GdipAddPathCurve2I_delegate>(s_gdipModule, "GdipAddPathCurve2I", LibraryName); 81 GdipAddPathCurve3I_ptr = FunctionWrapper.Load<GdipAddPathCurve3I_delegate>(s_gdipModule, "GdipAddPathCurve3I", LibraryName); 82 GdipAddPathClosedCurveI_ptr = FunctionWrapper.Load<GdipAddPathClosedCurveI_delegate>(s_gdipModule, "GdipAddPathClosedCurveI", LibraryName); 83 GdipAddPathClosedCurve2I_ptr = FunctionWrapper.Load<GdipAddPathClosedCurve2I_delegate>(s_gdipModule, "GdipAddPathClosedCurve2I", LibraryName); 84 GdipAddPathRectangleI_ptr = FunctionWrapper.Load<GdipAddPathRectangleI_delegate>(s_gdipModule, "GdipAddPathRectangleI", LibraryName); 85 GdipAddPathRectanglesI_ptr = FunctionWrapper.Load<GdipAddPathRectanglesI_delegate>(s_gdipModule, "GdipAddPathRectanglesI", LibraryName); 86 GdipAddPathEllipseI_ptr = FunctionWrapper.Load<GdipAddPathEllipseI_delegate>(s_gdipModule, "GdipAddPathEllipseI", LibraryName); 87 GdipAddPathPieI_ptr = FunctionWrapper.Load<GdipAddPathPieI_delegate>(s_gdipModule, "GdipAddPathPieI", LibraryName); 88 GdipAddPathPolygonI_ptr = FunctionWrapper.Load<GdipAddPathPolygonI_delegate>(s_gdipModule, "GdipAddPathPolygonI", LibraryName); 89 GdipFlattenPath_ptr = FunctionWrapper.Load<GdipFlattenPath_delegate>(s_gdipModule, "GdipFlattenPath", LibraryName); 90 GdipWidenPath_ptr = FunctionWrapper.Load<GdipWidenPath_delegate>(s_gdipModule, "GdipWidenPath", LibraryName); 91 GdipWarpPath_ptr = FunctionWrapper.Load<GdipWarpPath_delegate>(s_gdipModule, "GdipWarpPath", LibraryName); 92 GdipTransformPath_ptr = FunctionWrapper.Load<GdipTransformPath_delegate>(s_gdipModule, "GdipTransformPath", LibraryName); 93 GdipGetPathWorldBounds_ptr = FunctionWrapper.Load<GdipGetPathWorldBounds_delegate>(s_gdipModule, "GdipGetPathWorldBounds", LibraryName); 94 GdipIsVisiblePathPoint_ptr = FunctionWrapper.Load<GdipIsVisiblePathPoint_delegate>(s_gdipModule, "GdipIsVisiblePathPoint", LibraryName); 95 GdipIsVisiblePathPointI_ptr = FunctionWrapper.Load<GdipIsVisiblePathPointI_delegate>(s_gdipModule, "GdipIsVisiblePathPointI", LibraryName); 96 GdipIsOutlineVisiblePathPoint_ptr = FunctionWrapper.Load<GdipIsOutlineVisiblePathPoint_delegate>(s_gdipModule, "GdipIsOutlineVisiblePathPoint", LibraryName); 97 GdipIsOutlineVisiblePathPointI_ptr = FunctionWrapper.Load<GdipIsOutlineVisiblePathPointI_delegate>(s_gdipModule, "GdipIsOutlineVisiblePathPointI", LibraryName); 98 GdipDeleteBrush_ptr = FunctionWrapper.Load<GdipDeleteBrush_delegate>(s_gdipModule, "GdipDeleteBrush", LibraryName); 99 GdipLoadImageFromStream_ptr = FunctionWrapper.Load<GdipLoadImageFromStream_delegate>(s_gdipModule, "GdipLoadImageFromStream", LibraryName); 100 GdipLoadImageFromFile_ptr = FunctionWrapper.Load<GdipLoadImageFromFile_delegate>(s_gdipModule, "GdipLoadImageFromFile", LibraryName); 101 GdipLoadImageFromStreamICM_ptr = FunctionWrapper.Load<GdipLoadImageFromStreamICM_delegate>(s_gdipModule, "GdipLoadImageFromStreamICM", LibraryName); 102 GdipLoadImageFromFileICM_ptr = FunctionWrapper.Load<GdipLoadImageFromFileICM_delegate>(s_gdipModule, "GdipLoadImageFromFileICM", LibraryName); 103 GdipCloneImage_ptr = FunctionWrapper.Load<GdipCloneImage_delegate>(s_gdipModule, "GdipCloneImage", LibraryName); 104 GdipDisposeImage_ptr = FunctionWrapper.Load<GdipDisposeImage_delegate>(s_gdipModule, "GdipDisposeImage", LibraryName); 105 GdipSaveImageToFile_ptr = FunctionWrapper.Load<GdipSaveImageToFile_delegate>(s_gdipModule, "GdipSaveImageToFile", LibraryName); 106 GdipSaveImageToStream_ptr = FunctionWrapper.Load<GdipSaveImageToStream_delegate>(s_gdipModule, "GdipSaveImageToStream", LibraryName); 107 GdipSaveAdd_ptr = FunctionWrapper.Load<GdipSaveAdd_delegate>(s_gdipModule, "GdipSaveAdd", LibraryName); 108 GdipSaveAddImage_ptr = FunctionWrapper.Load<GdipSaveAddImage_delegate>(s_gdipModule, "GdipSaveAddImage", LibraryName); 109 GdipGetImageGraphicsContext_ptr = FunctionWrapper.Load<GdipGetImageGraphicsContext_delegate>(s_gdipModule, "GdipGetImageGraphicsContext", LibraryName); 110 GdipGetImageBounds_ptr = FunctionWrapper.Load<GdipGetImageBounds_delegate>(s_gdipModule, "GdipGetImageBounds", LibraryName); 111 GdipGetImageDimension_ptr = FunctionWrapper.Load<GdipGetImageDimension_delegate>(s_gdipModule, "GdipGetImageDimension", LibraryName); 112 GdipGetImageType_ptr = FunctionWrapper.Load<GdipGetImageType_delegate>(s_gdipModule, "GdipGetImageType", LibraryName); 113 GdipGetImageWidth_ptr = FunctionWrapper.Load<GdipGetImageWidth_delegate>(s_gdipModule, "GdipGetImageWidth", LibraryName); 114 GdipGetImageHeight_ptr = FunctionWrapper.Load<GdipGetImageHeight_delegate>(s_gdipModule, "GdipGetImageHeight", LibraryName); 115 GdipGetImageHorizontalResolution_ptr = FunctionWrapper.Load<GdipGetImageHorizontalResolution_delegate>(s_gdipModule, "GdipGetImageHorizontalResolution", LibraryName); 116 GdipGetImageVerticalResolution_ptr = FunctionWrapper.Load<GdipGetImageVerticalResolution_delegate>(s_gdipModule, "GdipGetImageVerticalResolution", LibraryName); 117 GdipGetImageFlags_ptr = FunctionWrapper.Load<GdipGetImageFlags_delegate>(s_gdipModule, "GdipGetImageFlags", LibraryName); 118 GdipGetImageRawFormat_ptr = FunctionWrapper.Load<GdipGetImageRawFormat_delegate>(s_gdipModule, "GdipGetImageRawFormat", LibraryName); 119 GdipGetImagePixelFormat_ptr = FunctionWrapper.Load<GdipGetImagePixelFormat_delegate>(s_gdipModule, "GdipGetImagePixelFormat", LibraryName); 120 GdipGetImageThumbnail_ptr = FunctionWrapper.Load<GdipGetImageThumbnail_delegate>(s_gdipModule, "GdipGetImageThumbnail", LibraryName); 121 GdipGetEncoderParameterListSize_ptr = FunctionWrapper.Load<GdipGetEncoderParameterListSize_delegate>(s_gdipModule, "GdipGetEncoderParameterListSize", LibraryName); 122 GdipGetEncoderParameterList_ptr = FunctionWrapper.Load<GdipGetEncoderParameterList_delegate>(s_gdipModule, "GdipGetEncoderParameterList", LibraryName); 123 GdipImageGetFrameDimensionsCount_ptr = FunctionWrapper.Load<GdipImageGetFrameDimensionsCount_delegate>(s_gdipModule, "GdipImageGetFrameDimensionsCount", LibraryName); 124 GdipImageGetFrameDimensionsList_ptr = FunctionWrapper.Load<GdipImageGetFrameDimensionsList_delegate>(s_gdipModule, "GdipImageGetFrameDimensionsList", LibraryName); 125 GdipImageGetFrameCount_ptr = FunctionWrapper.Load<GdipImageGetFrameCount_delegate>(s_gdipModule, "GdipImageGetFrameCount", LibraryName); 126 GdipImageSelectActiveFrame_ptr = FunctionWrapper.Load<GdipImageSelectActiveFrame_delegate>(s_gdipModule, "GdipImageSelectActiveFrame", LibraryName); 127 GdipImageRotateFlip_ptr = FunctionWrapper.Load<GdipImageRotateFlip_delegate>(s_gdipModule, "GdipImageRotateFlip", LibraryName); 128 GdipGetImagePalette_ptr = FunctionWrapper.Load<GdipGetImagePalette_delegate>(s_gdipModule, "GdipGetImagePalette", LibraryName); 129 GdipSetImagePalette_ptr = FunctionWrapper.Load<GdipSetImagePalette_delegate>(s_gdipModule, "GdipSetImagePalette", LibraryName); 130 GdipGetImagePaletteSize_ptr = FunctionWrapper.Load<GdipGetImagePaletteSize_delegate>(s_gdipModule, "GdipGetImagePaletteSize", LibraryName); 131 GdipGetPropertyCount_ptr = FunctionWrapper.Load<GdipGetPropertyCount_delegate>(s_gdipModule, "GdipGetPropertyCount", LibraryName); 132 GdipGetPropertyIdList_ptr = FunctionWrapper.Load<GdipGetPropertyIdList_delegate>(s_gdipModule, "GdipGetPropertyIdList", LibraryName); 133 GdipGetPropertyItemSize_ptr = FunctionWrapper.Load<GdipGetPropertyItemSize_delegate>(s_gdipModule, "GdipGetPropertyItemSize", LibraryName); 134 GdipGetPropertyItem_ptr = FunctionWrapper.Load<GdipGetPropertyItem_delegate>(s_gdipModule, "GdipGetPropertyItem", LibraryName); 135 GdipGetPropertySize_ptr = FunctionWrapper.Load<GdipGetPropertySize_delegate>(s_gdipModule, "GdipGetPropertySize", LibraryName); 136 GdipGetAllPropertyItems_ptr = FunctionWrapper.Load<GdipGetAllPropertyItems_delegate>(s_gdipModule, "GdipGetAllPropertyItems", LibraryName); 137 GdipRemovePropertyItem_ptr = FunctionWrapper.Load<GdipRemovePropertyItem_delegate>(s_gdipModule, "GdipRemovePropertyItem", LibraryName); 138 GdipSetPropertyItem_ptr = FunctionWrapper.Load<GdipSetPropertyItem_delegate>(s_gdipModule, "GdipSetPropertyItem", LibraryName); 139 GdipImageForceValidation_ptr = FunctionWrapper.Load<GdipImageForceValidation_delegate>(s_gdipModule, "GdipImageForceValidation", LibraryName); 140 GdipFlush_ptr = FunctionWrapper.Load<GdipFlush_delegate>(s_gdipModule, "GdipFlush", LibraryName); 141 GdipCreateFromHDC_ptr = FunctionWrapper.Load<GdipCreateFromHDC_delegate>(s_gdipModule, "GdipCreateFromHDC", LibraryName); 142 GdipCreateFromHDC2_ptr = FunctionWrapper.Load<GdipCreateFromHDC2_delegate>(s_gdipModule, "GdipCreateFromHDC2", LibraryName); 143 GdipCreateFromHWND_ptr = FunctionWrapper.Load<GdipCreateFromHWND_delegate>(s_gdipModule, "GdipCreateFromHWND", LibraryName); 144 GdipDeleteGraphics_ptr = FunctionWrapper.Load<GdipDeleteGraphics_delegate>(s_gdipModule, "GdipDeleteGraphics", LibraryName); 145 GdipGetDC_ptr = FunctionWrapper.Load<GdipGetDC_delegate>(s_gdipModule, "GdipGetDC", LibraryName); 146 GdipReleaseDC_ptr = FunctionWrapper.Load<GdipReleaseDC_delegate>(s_gdipModule, "GdipReleaseDC", LibraryName); 147 GdipSetCompositingMode_ptr = FunctionWrapper.Load<GdipSetCompositingMode_delegate>(s_gdipModule, "GdipSetCompositingMode", LibraryName); 148 GdipSetTextRenderingHint_ptr = FunctionWrapper.Load<GdipSetTextRenderingHint_delegate>(s_gdipModule, "GdipSetTextRenderingHint", LibraryName); 149 GdipSetTextContrast_ptr = FunctionWrapper.Load<GdipSetTextContrast_delegate>(s_gdipModule, "GdipSetTextContrast", LibraryName); 150 GdipSetInterpolationMode_ptr = FunctionWrapper.Load<GdipSetInterpolationMode_delegate>(s_gdipModule, "GdipSetInterpolationMode", LibraryName); 151 GdipGetCompositingMode_ptr = FunctionWrapper.Load<GdipGetCompositingMode_delegate>(s_gdipModule, "GdipGetCompositingMode", LibraryName); 152 GdipSetRenderingOrigin_ptr = FunctionWrapper.Load<GdipSetRenderingOrigin_delegate>(s_gdipModule, "GdipSetRenderingOrigin", LibraryName); 153 GdipGetRenderingOrigin_ptr = FunctionWrapper.Load<GdipGetRenderingOrigin_delegate>(s_gdipModule, "GdipGetRenderingOrigin", LibraryName); 154 GdipSetCompositingQuality_ptr = FunctionWrapper.Load<GdipSetCompositingQuality_delegate>(s_gdipModule, "GdipSetCompositingQuality", LibraryName); 155 GdipGetCompositingQuality_ptr = FunctionWrapper.Load<GdipGetCompositingQuality_delegate>(s_gdipModule, "GdipGetCompositingQuality", LibraryName); 156 GdipSetSmoothingMode_ptr = FunctionWrapper.Load<GdipSetSmoothingMode_delegate>(s_gdipModule, "GdipSetSmoothingMode", LibraryName); 157 GdipGetSmoothingMode_ptr = FunctionWrapper.Load<GdipGetSmoothingMode_delegate>(s_gdipModule, "GdipGetSmoothingMode", LibraryName); 158 GdipSetPixelOffsetMode_ptr = FunctionWrapper.Load<GdipSetPixelOffsetMode_delegate>(s_gdipModule, "GdipSetPixelOffsetMode", LibraryName); 159 GdipGetPixelOffsetMode_ptr = FunctionWrapper.Load<GdipGetPixelOffsetMode_delegate>(s_gdipModule, "GdipGetPixelOffsetMode", LibraryName); 160 GdipGetTextRenderingHint_ptr = FunctionWrapper.Load<GdipGetTextRenderingHint_delegate>(s_gdipModule, "GdipGetTextRenderingHint", LibraryName); 161 GdipGetTextContrast_ptr = FunctionWrapper.Load<GdipGetTextContrast_delegate>(s_gdipModule, "GdipGetTextContrast", LibraryName); 162 GdipGetInterpolationMode_ptr = FunctionWrapper.Load<GdipGetInterpolationMode_delegate>(s_gdipModule, "GdipGetInterpolationMode", LibraryName); 163 GdipGetPageUnit_ptr = FunctionWrapper.Load<GdipGetPageUnit_delegate>(s_gdipModule, "GdipGetPageUnit", LibraryName); 164 GdipGetPageScale_ptr = FunctionWrapper.Load<GdipGetPageScale_delegate>(s_gdipModule, "GdipGetPageScale", LibraryName); 165 GdipSetPageUnit_ptr = FunctionWrapper.Load<GdipSetPageUnit_delegate>(s_gdipModule, "GdipSetPageUnit", LibraryName); 166 GdipSetPageScale_ptr = FunctionWrapper.Load<GdipSetPageScale_delegate>(s_gdipModule, "GdipSetPageScale", LibraryName); 167 GdipGetDpiX_ptr = FunctionWrapper.Load<GdipGetDpiX_delegate>(s_gdipModule, "GdipGetDpiX", LibraryName); 168 GdipGetDpiY_ptr = FunctionWrapper.Load<GdipGetDpiY_delegate>(s_gdipModule, "GdipGetDpiY", LibraryName); 169 GdipTransformPoints_ptr = FunctionWrapper.Load<GdipTransformPoints_delegate>(s_gdipModule, "GdipTransformPoints", LibraryName); 170 GdipTransformPointsI_ptr = FunctionWrapper.Load<GdipTransformPointsI_delegate>(s_gdipModule, "GdipTransformPointsI", LibraryName); 171 GdipGetNearestColor_ptr = FunctionWrapper.Load<GdipGetNearestColor_delegate>(s_gdipModule, "GdipGetNearestColor", LibraryName); 172 GdipCreateHalftonePalette_ptr = FunctionWrapper.Load<GdipCreateHalftonePalette_delegate>(s_gdipModule, "GdipCreateHalftonePalette", LibraryName); 173 GdipDrawLine_ptr = FunctionWrapper.Load<GdipDrawLine_delegate>(s_gdipModule, "GdipDrawLine", LibraryName); 174 GdipDrawLineI_ptr = FunctionWrapper.Load<GdipDrawLineI_delegate>(s_gdipModule, "GdipDrawLineI", LibraryName); 175 GdipDrawLines_ptr = FunctionWrapper.Load<GdipDrawLines_delegate>(s_gdipModule, "GdipDrawLines", LibraryName); 176 GdipDrawLinesI_ptr = FunctionWrapper.Load<GdipDrawLinesI_delegate>(s_gdipModule, "GdipDrawLinesI", LibraryName); 177 GdipDrawArc_ptr = FunctionWrapper.Load<GdipDrawArc_delegate>(s_gdipModule, "GdipDrawArc", LibraryName); 178 GdipDrawArcI_ptr = FunctionWrapper.Load<GdipDrawArcI_delegate>(s_gdipModule, "GdipDrawArcI", LibraryName); 179 GdipDrawBezier_ptr = FunctionWrapper.Load<GdipDrawBezier_delegate>(s_gdipModule, "GdipDrawBezier", LibraryName); 180 GdipDrawBeziers_ptr = FunctionWrapper.Load<GdipDrawBeziers_delegate>(s_gdipModule, "GdipDrawBeziers", LibraryName); 181 GdipDrawBeziersI_ptr = FunctionWrapper.Load<GdipDrawBeziersI_delegate>(s_gdipModule, "GdipDrawBeziersI", LibraryName); 182 GdipDrawRectangle_ptr = FunctionWrapper.Load<GdipDrawRectangle_delegate>(s_gdipModule, "GdipDrawRectangle", LibraryName); 183 GdipDrawRectangleI_ptr = FunctionWrapper.Load<GdipDrawRectangleI_delegate>(s_gdipModule, "GdipDrawRectangleI", LibraryName); 184 GdipDrawRectangles_ptr = FunctionWrapper.Load<GdipDrawRectangles_delegate>(s_gdipModule, "GdipDrawRectangles", LibraryName); 185 GdipDrawRectanglesI_ptr = FunctionWrapper.Load<GdipDrawRectanglesI_delegate>(s_gdipModule, "GdipDrawRectanglesI", LibraryName); 186 GdipDrawEllipse_ptr = FunctionWrapper.Load<GdipDrawEllipse_delegate>(s_gdipModule, "GdipDrawEllipse", LibraryName); 187 GdipDrawEllipseI_ptr = FunctionWrapper.Load<GdipDrawEllipseI_delegate>(s_gdipModule, "GdipDrawEllipseI", LibraryName); 188 GdipDrawPie_ptr = FunctionWrapper.Load<GdipDrawPie_delegate>(s_gdipModule, "GdipDrawPie", LibraryName); 189 GdipDrawPieI_ptr = FunctionWrapper.Load<GdipDrawPieI_delegate>(s_gdipModule, "GdipDrawPieI", LibraryName); 190 GdipDrawPolygon_ptr = FunctionWrapper.Load<GdipDrawPolygon_delegate>(s_gdipModule, "GdipDrawPolygon", LibraryName); 191 GdipDrawPolygonI_ptr = FunctionWrapper.Load<GdipDrawPolygonI_delegate>(s_gdipModule, "GdipDrawPolygonI", LibraryName); 192 GdipDrawPath_ptr = FunctionWrapper.Load<GdipDrawPath_delegate>(s_gdipModule, "GdipDrawPath", LibraryName); 193 GdipDrawCurve_ptr = FunctionWrapper.Load<GdipDrawCurve_delegate>(s_gdipModule, "GdipDrawCurve", LibraryName); 194 GdipDrawCurveI_ptr = FunctionWrapper.Load<GdipDrawCurveI_delegate>(s_gdipModule, "GdipDrawCurveI", LibraryName); 195 GdipDrawCurve2_ptr = FunctionWrapper.Load<GdipDrawCurve2_delegate>(s_gdipModule, "GdipDrawCurve2", LibraryName); 196 GdipDrawCurve2I_ptr = FunctionWrapper.Load<GdipDrawCurve2I_delegate>(s_gdipModule, "GdipDrawCurve2I", LibraryName); 197 GdipDrawCurve3_ptr = FunctionWrapper.Load<GdipDrawCurve3_delegate>(s_gdipModule, "GdipDrawCurve3", LibraryName); 198 GdipDrawCurve3I_ptr = FunctionWrapper.Load<GdipDrawCurve3I_delegate>(s_gdipModule, "GdipDrawCurve3I", LibraryName); 199 GdipDrawClosedCurve_ptr = FunctionWrapper.Load<GdipDrawClosedCurve_delegate>(s_gdipModule, "GdipDrawClosedCurve", LibraryName); 200 GdipDrawClosedCurveI_ptr = FunctionWrapper.Load<GdipDrawClosedCurveI_delegate>(s_gdipModule, "GdipDrawClosedCurveI", LibraryName); 201 GdipDrawClosedCurve2_ptr = FunctionWrapper.Load<GdipDrawClosedCurve2_delegate>(s_gdipModule, "GdipDrawClosedCurve2", LibraryName); 202 GdipDrawClosedCurve2I_ptr = FunctionWrapper.Load<GdipDrawClosedCurve2I_delegate>(s_gdipModule, "GdipDrawClosedCurve2I", LibraryName); 203 GdipGraphicsClear_ptr = FunctionWrapper.Load<GdipGraphicsClear_delegate>(s_gdipModule, "GdipGraphicsClear", LibraryName); 204 GdipFillRectangle_ptr = FunctionWrapper.Load<GdipFillRectangle_delegate>(s_gdipModule, "GdipFillRectangle", LibraryName); 205 GdipFillRectangleI_ptr = FunctionWrapper.Load<GdipFillRectangleI_delegate>(s_gdipModule, "GdipFillRectangleI", LibraryName); 206 GdipFillRectangles_ptr = FunctionWrapper.Load<GdipFillRectangles_delegate>(s_gdipModule, "GdipFillRectangles", LibraryName); 207 GdipFillRectanglesI_ptr = FunctionWrapper.Load<GdipFillRectanglesI_delegate>(s_gdipModule, "GdipFillRectanglesI", LibraryName); 208 GdipFillPolygon_ptr = FunctionWrapper.Load<GdipFillPolygon_delegate>(s_gdipModule, "GdipFillPolygon", LibraryName); 209 GdipFillPolygonI_ptr = FunctionWrapper.Load<GdipFillPolygonI_delegate>(s_gdipModule, "GdipFillPolygonI", LibraryName); 210 GdipFillEllipse_ptr = FunctionWrapper.Load<GdipFillEllipse_delegate>(s_gdipModule, "GdipFillEllipse", LibraryName); 211 GdipFillEllipseI_ptr = FunctionWrapper.Load<GdipFillEllipseI_delegate>(s_gdipModule, "GdipFillEllipseI", LibraryName); 212 GdipFillPie_ptr = FunctionWrapper.Load<GdipFillPie_delegate>(s_gdipModule, "GdipFillPie", LibraryName); 213 GdipFillPieI_ptr = FunctionWrapper.Load<GdipFillPieI_delegate>(s_gdipModule, "GdipFillPieI", LibraryName); 214 GdipFillPath_ptr = FunctionWrapper.Load<GdipFillPath_delegate>(s_gdipModule, "GdipFillPath", LibraryName); 215 GdipFillClosedCurve_ptr = FunctionWrapper.Load<GdipFillClosedCurve_delegate>(s_gdipModule, "GdipFillClosedCurve", LibraryName); 216 GdipFillClosedCurveI_ptr = FunctionWrapper.Load<GdipFillClosedCurveI_delegate>(s_gdipModule, "GdipFillClosedCurveI", LibraryName); 217 GdipFillClosedCurve2_ptr = FunctionWrapper.Load<GdipFillClosedCurve2_delegate>(s_gdipModule, "GdipFillClosedCurve2", LibraryName); 218 GdipFillClosedCurve2I_ptr = FunctionWrapper.Load<GdipFillClosedCurve2I_delegate>(s_gdipModule, "GdipFillClosedCurve2I", LibraryName); 219 GdipDrawImage_ptr = FunctionWrapper.Load<GdipDrawImage_delegate>(s_gdipModule, "GdipDrawImage", LibraryName); 220 GdipDrawImageI_ptr = FunctionWrapper.Load<GdipDrawImageI_delegate>(s_gdipModule, "GdipDrawImageI", LibraryName); 221 GdipDrawImageRect_ptr = FunctionWrapper.Load<GdipDrawImageRect_delegate>(s_gdipModule, "GdipDrawImageRect", LibraryName); 222 GdipDrawImageRectI_ptr = FunctionWrapper.Load<GdipDrawImageRectI_delegate>(s_gdipModule, "GdipDrawImageRectI", LibraryName); 223 GdipDrawImagePoints_ptr = FunctionWrapper.Load<GdipDrawImagePoints_delegate>(s_gdipModule, "GdipDrawImagePoints", LibraryName); 224 GdipDrawImagePointsI_ptr = FunctionWrapper.Load<GdipDrawImagePointsI_delegate>(s_gdipModule, "GdipDrawImagePointsI", LibraryName); 225 GdipDrawImagePointRect_ptr = FunctionWrapper.Load<GdipDrawImagePointRect_delegate>(s_gdipModule, "GdipDrawImagePointRect", LibraryName); 226 GdipDrawImagePointRectI_ptr = FunctionWrapper.Load<GdipDrawImagePointRectI_delegate>(s_gdipModule, "GdipDrawImagePointRectI", LibraryName); 227 GdipDrawImageRectRect_ptr = FunctionWrapper.Load<GdipDrawImageRectRect_delegate>(s_gdipModule, "GdipDrawImageRectRect", LibraryName); 228 GdipDrawImageRectRectI_ptr = FunctionWrapper.Load<GdipDrawImageRectRectI_delegate>(s_gdipModule, "GdipDrawImageRectRectI", LibraryName); 229 GdipDrawImagePointsRect_ptr = FunctionWrapper.Load<GdipDrawImagePointsRect_delegate>(s_gdipModule, "GdipDrawImagePointsRect", LibraryName); 230 GdipDrawImagePointsRectI_ptr = FunctionWrapper.Load<GdipDrawImagePointsRectI_delegate>(s_gdipModule, "GdipDrawImagePointsRectI", LibraryName); 231 GdipEnumerateMetafileDestPoint_ptr = FunctionWrapper.Load<GdipEnumerateMetafileDestPoint_delegate>(s_gdipModule, "GdipEnumerateMetafileDestPoint", LibraryName); 232 GdipEnumerateMetafileDestPointI_ptr = FunctionWrapper.Load<GdipEnumerateMetafileDestPointI_delegate>(s_gdipModule, "GdipEnumerateMetafileDestPointI", LibraryName); 233 GdipEnumerateMetafileDestRect_ptr = FunctionWrapper.Load<GdipEnumerateMetafileDestRect_delegate>(s_gdipModule, "GdipEnumerateMetafileDestRect", LibraryName); 234 GdipEnumerateMetafileDestRectI_ptr = FunctionWrapper.Load<GdipEnumerateMetafileDestRectI_delegate>(s_gdipModule, "GdipEnumerateMetafileDestRectI", LibraryName); 235 GdipEnumerateMetafileDestPoints_ptr = FunctionWrapper.Load<GdipEnumerateMetafileDestPoints_delegate>(s_gdipModule, "GdipEnumerateMetafileDestPoints", LibraryName); 236 GdipEnumerateMetafileDestPointsI_ptr = FunctionWrapper.Load<GdipEnumerateMetafileDestPointsI_delegate>(s_gdipModule, "GdipEnumerateMetafileDestPointsI", LibraryName); 237 GdipEnumerateMetafileSrcRectDestPoint_ptr = FunctionWrapper.Load<GdipEnumerateMetafileSrcRectDestPoint_delegate>(s_gdipModule, "GdipEnumerateMetafileSrcRectDestPoint", LibraryName); 238 GdipEnumerateMetafileSrcRectDestPointI_ptr = FunctionWrapper.Load<GdipEnumerateMetafileSrcRectDestPointI_delegate>(s_gdipModule, "GdipEnumerateMetafileSrcRectDestPointI", LibraryName); 239 GdipEnumerateMetafileSrcRectDestRect_ptr = FunctionWrapper.Load<GdipEnumerateMetafileSrcRectDestRect_delegate>(s_gdipModule, "GdipEnumerateMetafileSrcRectDestRect", LibraryName); 240 GdipEnumerateMetafileSrcRectDestRectI_ptr = FunctionWrapper.Load<GdipEnumerateMetafileSrcRectDestRectI_delegate>(s_gdipModule, "GdipEnumerateMetafileSrcRectDestRectI", LibraryName); 241 GdipEnumerateMetafileSrcRectDestPoints_ptr = FunctionWrapper.Load<GdipEnumerateMetafileSrcRectDestPoints_delegate>(s_gdipModule, "GdipEnumerateMetafileSrcRectDestPoints", LibraryName); 242 GdipEnumerateMetafileSrcRectDestPointsI_ptr = FunctionWrapper.Load<GdipEnumerateMetafileSrcRectDestPointsI_delegate>(s_gdipModule, "GdipEnumerateMetafileSrcRectDestPointsI", LibraryName); 243 GdipPlayMetafileRecord_ptr = FunctionWrapper.Load<GdipPlayMetafileRecord_delegate>(s_gdipModule, "GdipPlayMetafileRecord", LibraryName); 244 GdipSaveGraphics_ptr = FunctionWrapper.Load<GdipSaveGraphics_delegate>(s_gdipModule, "GdipSaveGraphics", LibraryName); 245 GdipRestoreGraphics_ptr = FunctionWrapper.Load<GdipRestoreGraphics_delegate>(s_gdipModule, "GdipRestoreGraphics", LibraryName); 246 GdipEndContainer_ptr = FunctionWrapper.Load<GdipEndContainer_delegate>(s_gdipModule, "GdipEndContainer", LibraryName); 247 GdipGetMetafileHeaderFromWmf_ptr = FunctionWrapper.Load<GdipGetMetafileHeaderFromWmf_delegate>(s_gdipModule, "GdipGetMetafileHeaderFromWmf", LibraryName); 248 GdipGetMetafileHeaderFromEmf_ptr = FunctionWrapper.Load<GdipGetMetafileHeaderFromEmf_delegate>(s_gdipModule, "GdipGetMetafileHeaderFromEmf", LibraryName); 249 GdipGetMetafileHeaderFromFile_ptr = FunctionWrapper.Load<GdipGetMetafileHeaderFromFile_delegate>(s_gdipModule, "GdipGetMetafileHeaderFromFile", LibraryName); 250 GdipGetMetafileHeaderFromStream_ptr = FunctionWrapper.Load<GdipGetMetafileHeaderFromStream_delegate>(s_gdipModule, "GdipGetMetafileHeaderFromStream", LibraryName); 251 GdipGetMetafileHeaderFromMetafile_ptr = FunctionWrapper.Load<GdipGetMetafileHeaderFromMetafile_delegate>(s_gdipModule, "GdipGetMetafileHeaderFromMetafile", LibraryName); 252 GdipGetHemfFromMetafile_ptr = FunctionWrapper.Load<GdipGetHemfFromMetafile_delegate>(s_gdipModule, "GdipGetHemfFromMetafile", LibraryName); 253 GdipCreateMetafileFromWmf_ptr = FunctionWrapper.Load<GdipCreateMetafileFromWmf_delegate>(s_gdipModule, "GdipCreateMetafileFromWmf", LibraryName); 254 GdipCreateMetafileFromEmf_ptr = FunctionWrapper.Load<GdipCreateMetafileFromEmf_delegate>(s_gdipModule, "GdipCreateMetafileFromEmf", LibraryName); 255 GdipCreateMetafileFromFile_ptr = FunctionWrapper.Load<GdipCreateMetafileFromFile_delegate>(s_gdipModule, "GdipCreateMetafileFromFile", LibraryName); 256 GdipCreateMetafileFromStream_ptr = FunctionWrapper.Load<GdipCreateMetafileFromStream_delegate>(s_gdipModule, "GdipCreateMetafileFromStream", LibraryName); 257 GdipRecordMetafile_ptr = FunctionWrapper.Load<GdipRecordMetafile_delegate>(s_gdipModule, "GdipRecordMetafile", LibraryName); 258 GdipRecordMetafile2_ptr = FunctionWrapper.Load<GdipRecordMetafile2_delegate>(s_gdipModule, "GdipRecordMetafile", LibraryName); 259 GdipRecordMetafileI_ptr = FunctionWrapper.Load<GdipRecordMetafileI_delegate>(s_gdipModule, "GdipRecordMetafileI", LibraryName); 260 GdipRecordMetafileFileName_ptr = FunctionWrapper.Load<GdipRecordMetafileFileName_delegate>(s_gdipModule, "GdipRecordMetafileFileName", LibraryName); 261 GdipRecordMetafileFileName2_ptr = FunctionWrapper.Load<GdipRecordMetafileFileName2_delegate>(s_gdipModule, "GdipRecordMetafileFileName", LibraryName); 262 GdipRecordMetafileFileNameI_ptr = FunctionWrapper.Load<GdipRecordMetafileFileNameI_delegate>(s_gdipModule, "GdipRecordMetafileFileNameI", LibraryName); 263 GdipRecordMetafileStream_ptr = FunctionWrapper.Load<GdipRecordMetafileStream_delegate>(s_gdipModule, "GdipRecordMetafileStream", LibraryName); 264 GdipRecordMetafileStream2_ptr = FunctionWrapper.Load<GdipRecordMetafileStream2_delegate>(s_gdipModule, "GdipRecordMetafileStream", LibraryName); 265 GdipRecordMetafileStreamI_ptr = FunctionWrapper.Load<GdipRecordMetafileStreamI_delegate>(s_gdipModule, "GdipRecordMetafileStreamI", LibraryName); 266 GdipComment_ptr = FunctionWrapper.Load<GdipComment_delegate>(s_gdipModule, "GdipComment", LibraryName); 267 GdipCreateFontFromDC_ptr = FunctionWrapper.Load<GdipCreateFontFromDC_delegate>(s_gdipModule, "GdipCreateFontFromDC", LibraryName); 268 GdipCreateFontFromLogfontW_ptr = FunctionWrapper.Load<GdipCreateFontFromLogfontW_delegate>(s_gdipModule, "GdipCreateFontFromLogfontW", LibraryName); 269 GdipCreateFont_ptr = FunctionWrapper.Load<GdipCreateFont_delegate>(s_gdipModule, "GdipCreateFont", LibraryName); 270 GdipGetLogFontW_ptr = FunctionWrapper.Load<GdipGetLogFontW_delegate>(s_gdipModule, "GdipGetLogFontW", LibraryName); 271 GdipCloneFont_ptr = FunctionWrapper.Load<GdipCloneFont_delegate>(s_gdipModule, "GdipCloneFont", LibraryName); 272 GdipDeleteFont_ptr = FunctionWrapper.Load<GdipDeleteFont_delegate>(s_gdipModule, "GdipDeleteFont", LibraryName); 273 GdipGetFamily_ptr = FunctionWrapper.Load<GdipGetFamily_delegate>(s_gdipModule, "GdipGetFamily", LibraryName); 274 GdipGetFontStyle_ptr = FunctionWrapper.Load<GdipGetFontStyle_delegate>(s_gdipModule, "GdipGetFontStyle", LibraryName); 275 GdipGetFontSize_ptr = FunctionWrapper.Load<GdipGetFontSize_delegate>(s_gdipModule, "GdipGetFontSize", LibraryName); 276 GdipGetFontHeight_ptr = FunctionWrapper.Load<GdipGetFontHeight_delegate>(s_gdipModule, "GdipGetFontHeight", LibraryName); 277 GdipGetFontHeightGivenDPI_ptr = FunctionWrapper.Load<GdipGetFontHeightGivenDPI_delegate>(s_gdipModule, "GdipGetFontHeightGivenDPI", LibraryName); 278 GdipGetFontUnit_ptr = FunctionWrapper.Load<GdipGetFontUnit_delegate>(s_gdipModule, "GdipGetFontUnit", LibraryName); 279 GdipDrawString_ptr = FunctionWrapper.Load<GdipDrawString_delegate>(s_gdipModule, "GdipDrawString", LibraryName); 280 GdipMeasureString_ptr = FunctionWrapper.Load<GdipMeasureString_delegate>(s_gdipModule, "GdipMeasureString", LibraryName); 281 GdipMeasureCharacterRanges_ptr = FunctionWrapper.Load<GdipMeasureCharacterRanges_delegate>(s_gdipModule, "GdipMeasureCharacterRanges", LibraryName); 282 } 283 284 // Imported functions 285 GdiplusStartup_delegate(out IntPtr token, ref StartupInput input, out StartupOutput output)286 private delegate int GdiplusStartup_delegate(out IntPtr token, ref StartupInput input, out StartupOutput output); 287 private static FunctionWrapper<GdiplusStartup_delegate> GdiplusStartup_ptr; GdiplusStartup(out IntPtr token, ref StartupInput input, out StartupOutput output)288 private static int GdiplusStartup(out IntPtr token, ref StartupInput input, out StartupOutput output) => GdiplusStartup_ptr.Delegate(out token, ref input, out output); 289 GdipCreatePath_delegate(int brushMode, out IntPtr path)290 private delegate int GdipCreatePath_delegate(int brushMode, out IntPtr path); 291 private static FunctionWrapper<GdipCreatePath_delegate> GdipCreatePath_ptr; GdipCreatePath(int brushMode, out IntPtr path)292 internal static int GdipCreatePath(int brushMode, out IntPtr path) => GdipCreatePath_ptr.Delegate(brushMode, out path); 293 GdipCreatePath2_delegate(HandleRef points, HandleRef types, int count, int brushMode, out IntPtr path)294 private delegate int GdipCreatePath2_delegate(HandleRef points, HandleRef types, int count, int brushMode, out IntPtr path); 295 private static FunctionWrapper<GdipCreatePath2_delegate> GdipCreatePath2_ptr; GdipCreatePath2(HandleRef points, HandleRef types, int count, int brushMode, out IntPtr path)296 internal static int GdipCreatePath2(HandleRef points, HandleRef types, int count, int brushMode, out IntPtr path) => GdipCreatePath2_ptr.Delegate(points, types, count, brushMode, out path); 297 GdipCreatePath2I_delegate(HandleRef points, HandleRef types, int count, int brushMode, out IntPtr path)298 private delegate int GdipCreatePath2I_delegate(HandleRef points, HandleRef types, int count, int brushMode, out IntPtr path); 299 private static FunctionWrapper<GdipCreatePath2I_delegate> GdipCreatePath2I_ptr; GdipCreatePath2I(HandleRef points, HandleRef types, int count, int brushMode, out IntPtr path)300 internal static int GdipCreatePath2I(HandleRef points, HandleRef types, int count, int brushMode, out IntPtr path) => GdipCreatePath2I_ptr.Delegate(points, types, count, brushMode, out path); 301 GdipClonePath_delegate(HandleRef path, out IntPtr clonepath)302 private delegate int GdipClonePath_delegate(HandleRef path, out IntPtr clonepath); 303 private static FunctionWrapper<GdipClonePath_delegate> GdipClonePath_ptr; GdipClonePath(HandleRef path, out IntPtr clonepath)304 internal static int GdipClonePath(HandleRef path, out IntPtr clonepath) => GdipClonePath_ptr.Delegate(path, out clonepath); 305 GdipDeletePath_delegate(HandleRef path)306 private delegate int GdipDeletePath_delegate(HandleRef path); 307 private static FunctionWrapper<GdipDeletePath_delegate> GdipDeletePath_ptr; 308 internal static int IntGdipDeletePath(HandleRef path) => GdipDeletePath_ptr.Delegate(path); 309 GdipResetPath_delegate(HandleRef path)310 private delegate int GdipResetPath_delegate(HandleRef path); 311 private static FunctionWrapper<GdipResetPath_delegate> GdipResetPath_ptr; 312 internal static int GdipResetPath(HandleRef path) => GdipResetPath_ptr.Delegate(path); 313 GdipGetPointCount_delegate(HandleRef path, out int count)314 private delegate int GdipGetPointCount_delegate(HandleRef path, out int count); 315 private static FunctionWrapper<GdipGetPointCount_delegate> GdipGetPointCount_ptr; GdipGetPointCount(HandleRef path, out int count)316 internal static int GdipGetPointCount(HandleRef path, out int count) => GdipGetPointCount_ptr.Delegate(path, out count); 317 GdipGetPathTypes_delegate(HandleRef path, byte[] types, int count)318 private delegate int GdipGetPathTypes_delegate(HandleRef path, byte[] types, int count); 319 private static FunctionWrapper<GdipGetPathTypes_delegate> GdipGetPathTypes_ptr; GdipGetPathTypes(HandleRef path, byte[] types, int count)320 internal static int GdipGetPathTypes(HandleRef path, byte[] types, int count) => GdipGetPathTypes_ptr.Delegate(path, types, count); 321 GdipGetPathPoints_delegate(HandleRef path, HandleRef points, int count)322 private delegate int GdipGetPathPoints_delegate(HandleRef path, HandleRef points, int count); 323 private static FunctionWrapper<GdipGetPathPoints_delegate> GdipGetPathPoints_ptr; GdipGetPathPoints(HandleRef path, HandleRef points, int count)324 internal static int GdipGetPathPoints(HandleRef path, HandleRef points, int count) => GdipGetPathPoints_ptr.Delegate(path, points, count); 325 GdipGetPathFillMode_delegate(HandleRef path, out int fillmode)326 private delegate int GdipGetPathFillMode_delegate(HandleRef path, out int fillmode); 327 private static FunctionWrapper<GdipGetPathFillMode_delegate> GdipGetPathFillMode_ptr; GdipGetPathFillMode(HandleRef path, out int fillmode)328 internal static int GdipGetPathFillMode(HandleRef path, out int fillmode) => GdipGetPathFillMode_ptr.Delegate(path, out fillmode); 329 GdipSetPathFillMode_delegate(HandleRef path, int fillmode)330 private delegate int GdipSetPathFillMode_delegate(HandleRef path, int fillmode); 331 private static FunctionWrapper<GdipSetPathFillMode_delegate> GdipSetPathFillMode_ptr; GdipSetPathFillMode(HandleRef path, int fillmode)332 internal static int GdipSetPathFillMode(HandleRef path, int fillmode) => GdipSetPathFillMode_ptr.Delegate(path, fillmode); 333 GdipGetPathData_delegate(HandleRef path, IntPtr pathData)334 private delegate int GdipGetPathData_delegate(HandleRef path, IntPtr pathData); 335 private static FunctionWrapper<GdipGetPathData_delegate> GdipGetPathData_ptr; GdipGetPathData(HandleRef path, IntPtr pathData)336 internal static int GdipGetPathData(HandleRef path, IntPtr pathData) => GdipGetPathData_ptr.Delegate(path, pathData); 337 GdipStartPathFigure_delegate(HandleRef path)338 private delegate int GdipStartPathFigure_delegate(HandleRef path); 339 private static FunctionWrapper<GdipStartPathFigure_delegate> GdipStartPathFigure_ptr; 340 internal static int GdipStartPathFigure(HandleRef path) => GdipStartPathFigure_ptr.Delegate(path); 341 GdipClosePathFigure_delegate(HandleRef path)342 private delegate int GdipClosePathFigure_delegate(HandleRef path); 343 private static FunctionWrapper<GdipClosePathFigure_delegate> GdipClosePathFigure_ptr; 344 internal static int GdipClosePathFigure(HandleRef path) => GdipClosePathFigure_ptr.Delegate(path); 345 GdipClosePathFigures_delegate(HandleRef path)346 private delegate int GdipClosePathFigures_delegate(HandleRef path); 347 private static FunctionWrapper<GdipClosePathFigures_delegate> GdipClosePathFigures_ptr; 348 internal static int GdipClosePathFigures(HandleRef path) => GdipClosePathFigures_ptr.Delegate(path); 349 GdipSetPathMarker_delegate(HandleRef path)350 private delegate int GdipSetPathMarker_delegate(HandleRef path); 351 private static FunctionWrapper<GdipSetPathMarker_delegate> GdipSetPathMarker_ptr; 352 internal static int GdipSetPathMarker(HandleRef path) => GdipSetPathMarker_ptr.Delegate(path); 353 GdipClearPathMarkers_delegate(HandleRef path)354 private delegate int GdipClearPathMarkers_delegate(HandleRef path); 355 private static FunctionWrapper<GdipClearPathMarkers_delegate> GdipClearPathMarkers_ptr; 356 internal static int GdipClearPathMarkers(HandleRef path) => GdipClearPathMarkers_ptr.Delegate(path); 357 GdipReversePath_delegate(HandleRef path)358 private delegate int GdipReversePath_delegate(HandleRef path); 359 private static FunctionWrapper<GdipReversePath_delegate> GdipReversePath_ptr; 360 internal static int GdipReversePath(HandleRef path) => GdipReversePath_ptr.Delegate(path); 361 GdipGetPathLastPoint_delegate(HandleRef path, GPPOINTF lastPoint)362 private delegate int GdipGetPathLastPoint_delegate(HandleRef path, GPPOINTF lastPoint); 363 private static FunctionWrapper<GdipGetPathLastPoint_delegate> GdipGetPathLastPoint_ptr; GdipGetPathLastPoint(HandleRef path, GPPOINTF lastPoint)364 internal static int GdipGetPathLastPoint(HandleRef path, GPPOINTF lastPoint) => GdipGetPathLastPoint_ptr.Delegate(path, lastPoint); 365 GdipAddPathLine_delegate(HandleRef path, float x1, float y1, float x2, float y2)366 private delegate int GdipAddPathLine_delegate(HandleRef path, float x1, float y1, float x2, float y2); 367 private static FunctionWrapper<GdipAddPathLine_delegate> GdipAddPathLine_ptr; GdipAddPathLine(HandleRef path, float x1, float y1, float x2, float y2)368 internal static int GdipAddPathLine(HandleRef path, float x1, float y1, float x2, float y2) => GdipAddPathLine_ptr.Delegate(path, x1, y1, x2, y2); 369 GdipAddPathLine2_delegate(HandleRef path, HandleRef memorypts, int count)370 private delegate int GdipAddPathLine2_delegate(HandleRef path, HandleRef memorypts, int count); 371 private static FunctionWrapper<GdipAddPathLine2_delegate> GdipAddPathLine2_ptr; GdipAddPathLine2(HandleRef path, HandleRef memorypts, int count)372 internal static int GdipAddPathLine2(HandleRef path, HandleRef memorypts, int count) => GdipAddPathLine2_ptr.Delegate(path, memorypts, count); 373 GdipAddPathArc_delegate(HandleRef path, float x, float y, float width, float height, float startAngle, float sweepAngle)374 private delegate int GdipAddPathArc_delegate(HandleRef path, float x, float y, float width, float height, float startAngle, float sweepAngle); 375 private static FunctionWrapper<GdipAddPathArc_delegate> GdipAddPathArc_ptr; GdipAddPathArc(HandleRef path, float x, float y, float width, float height, float startAngle, float sweepAngle)376 internal static int GdipAddPathArc(HandleRef path, float x, float y, float width, float height, float startAngle, float sweepAngle) => GdipAddPathArc_ptr.Delegate(path, x, y, width, height, startAngle, sweepAngle); 377 GdipAddPathBezier_delegate(HandleRef path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)378 private delegate int GdipAddPathBezier_delegate(HandleRef path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4); 379 private static FunctionWrapper<GdipAddPathBezier_delegate> GdipAddPathBezier_ptr; GdipAddPathBezier(HandleRef path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)380 internal static int GdipAddPathBezier(HandleRef path, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) => GdipAddPathBezier_ptr.Delegate(path, x1, y1, x2, y2, x3, y3, x4, y4); 381 GdipAddPathBeziers_delegate(HandleRef path, HandleRef memorypts, int count)382 private delegate int GdipAddPathBeziers_delegate(HandleRef path, HandleRef memorypts, int count); 383 private static FunctionWrapper<GdipAddPathBeziers_delegate> GdipAddPathBeziers_ptr; GdipAddPathBeziers(HandleRef path, HandleRef memorypts, int count)384 internal static int GdipAddPathBeziers(HandleRef path, HandleRef memorypts, int count) => GdipAddPathBeziers_ptr.Delegate(path, memorypts, count); 385 GdipAddPathCurve_delegate(HandleRef path, HandleRef memorypts, int count)386 private delegate int GdipAddPathCurve_delegate(HandleRef path, HandleRef memorypts, int count); 387 private static FunctionWrapper<GdipAddPathCurve_delegate> GdipAddPathCurve_ptr; GdipAddPathCurve(HandleRef path, HandleRef memorypts, int count)388 internal static int GdipAddPathCurve(HandleRef path, HandleRef memorypts, int count) => GdipAddPathCurve_ptr.Delegate(path, memorypts, count); 389 GdipAddPathCurve2_delegate(HandleRef path, HandleRef memorypts, int count, float tension)390 private delegate int GdipAddPathCurve2_delegate(HandleRef path, HandleRef memorypts, int count, float tension); 391 private static FunctionWrapper<GdipAddPathCurve2_delegate> GdipAddPathCurve2_ptr; GdipAddPathCurve2(HandleRef path, HandleRef memorypts, int count, float tension)392 internal static int GdipAddPathCurve2(HandleRef path, HandleRef memorypts, int count, float tension) => GdipAddPathCurve2_ptr.Delegate(path, memorypts, count, tension); 393 GdipAddPathCurve3_delegate(HandleRef path, HandleRef memorypts, int count, int offset, int numberOfSegments, float tension)394 private delegate int GdipAddPathCurve3_delegate(HandleRef path, HandleRef memorypts, int count, int offset, int numberOfSegments, float tension); 395 private static FunctionWrapper<GdipAddPathCurve3_delegate> GdipAddPathCurve3_ptr; GdipAddPathCurve3(HandleRef path, HandleRef memorypts, int count, int offset, int numberOfSegments, float tension)396 internal static int GdipAddPathCurve3(HandleRef path, HandleRef memorypts, int count, int offset, int numberOfSegments, float tension) => GdipAddPathCurve3_ptr.Delegate(path, memorypts, count, offset, numberOfSegments, tension); 397 GdipAddPathClosedCurve_delegate(HandleRef path, HandleRef memorypts, int count)398 private delegate int GdipAddPathClosedCurve_delegate(HandleRef path, HandleRef memorypts, int count); 399 private static FunctionWrapper<GdipAddPathClosedCurve_delegate> GdipAddPathClosedCurve_ptr; GdipAddPathClosedCurve(HandleRef path, HandleRef memorypts, int count)400 internal static int GdipAddPathClosedCurve(HandleRef path, HandleRef memorypts, int count) => GdipAddPathClosedCurve_ptr.Delegate(path, memorypts, count); 401 GdipAddPathClosedCurve2_delegate(HandleRef path, HandleRef memorypts, int count, float tension)402 private delegate int GdipAddPathClosedCurve2_delegate(HandleRef path, HandleRef memorypts, int count, float tension); 403 private static FunctionWrapper<GdipAddPathClosedCurve2_delegate> GdipAddPathClosedCurve2_ptr; GdipAddPathClosedCurve2(HandleRef path, HandleRef memorypts, int count, float tension)404 internal static int GdipAddPathClosedCurve2(HandleRef path, HandleRef memorypts, int count, float tension) => GdipAddPathClosedCurve2_ptr.Delegate(path, memorypts, count, tension); 405 GdipAddPathRectangle_delegate(HandleRef path, float x, float y, float width, float height)406 private delegate int GdipAddPathRectangle_delegate(HandleRef path, float x, float y, float width, float height); 407 private static FunctionWrapper<GdipAddPathRectangle_delegate> GdipAddPathRectangle_ptr; GdipAddPathRectangle(HandleRef path, float x, float y, float width, float height)408 internal static int GdipAddPathRectangle(HandleRef path, float x, float y, float width, float height) => GdipAddPathRectangle_ptr.Delegate(path, x, y, width, height); 409 GdipAddPathRectangles_delegate(HandleRef path, HandleRef rects, int count)410 private delegate int GdipAddPathRectangles_delegate(HandleRef path, HandleRef rects, int count); 411 private static FunctionWrapper<GdipAddPathRectangles_delegate> GdipAddPathRectangles_ptr; GdipAddPathRectangles(HandleRef path, HandleRef rects, int count)412 internal static int GdipAddPathRectangles(HandleRef path, HandleRef rects, int count) => GdipAddPathRectangles_ptr.Delegate(path, rects, count); 413 GdipAddPathEllipse_delegate(HandleRef path, float x, float y, float width, float height)414 private delegate int GdipAddPathEllipse_delegate(HandleRef path, float x, float y, float width, float height); 415 private static FunctionWrapper<GdipAddPathEllipse_delegate> GdipAddPathEllipse_ptr; GdipAddPathEllipse(HandleRef path, float x, float y, float width, float height)416 internal static int GdipAddPathEllipse(HandleRef path, float x, float y, float width, float height) => GdipAddPathEllipse_ptr.Delegate(path, x, y, width, height); 417 GdipAddPathPie_delegate(HandleRef path, float x, float y, float width, float height, float startAngle, float sweepAngle)418 private delegate int GdipAddPathPie_delegate(HandleRef path, float x, float y, float width, float height, float startAngle, float sweepAngle); 419 private static FunctionWrapper<GdipAddPathPie_delegate> GdipAddPathPie_ptr; GdipAddPathPie(HandleRef path, float x, float y, float width, float height, float startAngle, float sweepAngle)420 internal static int GdipAddPathPie(HandleRef path, float x, float y, float width, float height, float startAngle, float sweepAngle) => GdipAddPathPie_ptr.Delegate(path, x, y, width, height, startAngle, sweepAngle); 421 GdipAddPathPolygon_delegate(HandleRef path, HandleRef memorypts, int count)422 private delegate int GdipAddPathPolygon_delegate(HandleRef path, HandleRef memorypts, int count); 423 private static FunctionWrapper<GdipAddPathPolygon_delegate> GdipAddPathPolygon_ptr; GdipAddPathPolygon(HandleRef path, HandleRef memorypts, int count)424 internal static int GdipAddPathPolygon(HandleRef path, HandleRef memorypts, int count) => GdipAddPathPolygon_ptr.Delegate(path, memorypts, count); 425 GdipAddPathPath_delegate(HandleRef path, HandleRef addingPath, bool connect)426 private delegate int GdipAddPathPath_delegate(HandleRef path, HandleRef addingPath, bool connect); 427 private static FunctionWrapper<GdipAddPathPath_delegate> GdipAddPathPath_ptr; GdipAddPathPath(HandleRef path, HandleRef addingPath, bool connect)428 internal static int GdipAddPathPath(HandleRef path, HandleRef addingPath, bool connect) => GdipAddPathPath_ptr.Delegate(path, addingPath, connect); 429 GdipAddPathString_delegate(HandleRef path, [MarshalAs(UnmanagedType.LPWStr)]string s, int length, HandleRef fontFamily, int style, float emSize, ref GPRECTF layoutRect, HandleRef format)430 private delegate int GdipAddPathString_delegate(HandleRef path, [MarshalAs(UnmanagedType.LPWStr)]string s, int length, HandleRef fontFamily, int style, float emSize, ref GPRECTF layoutRect, HandleRef format); 431 private static FunctionWrapper<GdipAddPathString_delegate> GdipAddPathString_ptr; GdipAddPathString(HandleRef path, string s, int length, HandleRef fontFamily, int style, float emSize, ref GPRECTF layoutRect, HandleRef format)432 internal static int GdipAddPathString(HandleRef path, string s, int length, HandleRef fontFamily, int style, float emSize, ref GPRECTF layoutRect, HandleRef format) => GdipAddPathString_ptr.Delegate(path, s, length, fontFamily, style, emSize, ref layoutRect, format); 433 GdipAddPathStringI_delegate(HandleRef path, [MarshalAs(UnmanagedType.LPWStr)]string s, int length, HandleRef fontFamily, int style, float emSize, ref GPRECT layoutRect, HandleRef format)434 private delegate int GdipAddPathStringI_delegate(HandleRef path, [MarshalAs(UnmanagedType.LPWStr)]string s, int length, HandleRef fontFamily, int style, float emSize, ref GPRECT layoutRect, HandleRef format); 435 private static FunctionWrapper<GdipAddPathStringI_delegate> GdipAddPathStringI_ptr; GdipAddPathStringI(HandleRef path, string s, int length, HandleRef fontFamily, int style, float emSize, ref GPRECT layoutRect, HandleRef format)436 internal static int GdipAddPathStringI(HandleRef path, string s, int length, HandleRef fontFamily, int style, float emSize, ref GPRECT layoutRect, HandleRef format) => GdipAddPathStringI_ptr.Delegate(path, s, length, fontFamily, style, emSize, ref layoutRect, format); 437 GdipAddPathLineI_delegate(HandleRef path, int x1, int y1, int x2, int y2)438 private delegate int GdipAddPathLineI_delegate(HandleRef path, int x1, int y1, int x2, int y2); 439 private static FunctionWrapper<GdipAddPathLineI_delegate> GdipAddPathLineI_ptr; GdipAddPathLineI(HandleRef path, int x1, int y1, int x2, int y2)440 internal static int GdipAddPathLineI(HandleRef path, int x1, int y1, int x2, int y2) => GdipAddPathLineI_ptr.Delegate(path, x1, y1, x2, y2); 441 GdipAddPathLine2I_delegate(HandleRef path, HandleRef memorypts, int count)442 private delegate int GdipAddPathLine2I_delegate(HandleRef path, HandleRef memorypts, int count); 443 private static FunctionWrapper<GdipAddPathLine2I_delegate> GdipAddPathLine2I_ptr; GdipAddPathLine2I(HandleRef path, HandleRef memorypts, int count)444 internal static int GdipAddPathLine2I(HandleRef path, HandleRef memorypts, int count) => GdipAddPathLine2I_ptr.Delegate(path, memorypts, count); 445 GdipAddPathArcI_delegate(HandleRef path, int x, int y, int width, int height, float startAngle, float sweepAngle)446 private delegate int GdipAddPathArcI_delegate(HandleRef path, int x, int y, int width, int height, float startAngle, float sweepAngle); 447 private static FunctionWrapper<GdipAddPathArcI_delegate> GdipAddPathArcI_ptr; GdipAddPathArcI(HandleRef path, int x, int y, int width, int height, float startAngle, float sweepAngle)448 internal static int GdipAddPathArcI(HandleRef path, int x, int y, int width, int height, float startAngle, float sweepAngle) => GdipAddPathArcI_ptr.Delegate(path, x, y, width, height, startAngle, sweepAngle); 449 GdipAddPathBezierI_delegate(HandleRef path, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)450 private delegate int GdipAddPathBezierI_delegate(HandleRef path, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4); 451 private static FunctionWrapper<GdipAddPathBezierI_delegate> GdipAddPathBezierI_ptr; GdipAddPathBezierI(HandleRef path, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4)452 internal static int GdipAddPathBezierI(HandleRef path, int x1, int y1, int x2, int y2, int x3, int y3, int x4, int y4) => GdipAddPathBezierI_ptr.Delegate(path, x1, y1, x2, y2, x3, y3, x4, y4); 453 GdipAddPathBeziersI_delegate(HandleRef path, HandleRef memorypts, int count)454 private delegate int GdipAddPathBeziersI_delegate(HandleRef path, HandleRef memorypts, int count); 455 private static FunctionWrapper<GdipAddPathBeziersI_delegate> GdipAddPathBeziersI_ptr; GdipAddPathBeziersI(HandleRef path, HandleRef memorypts, int count)456 internal static int GdipAddPathBeziersI(HandleRef path, HandleRef memorypts, int count) => GdipAddPathBeziersI_ptr.Delegate(path, memorypts, count); 457 GdipAddPathCurveI_delegate(HandleRef path, HandleRef memorypts, int count)458 private delegate int GdipAddPathCurveI_delegate(HandleRef path, HandleRef memorypts, int count); 459 private static FunctionWrapper<GdipAddPathCurveI_delegate> GdipAddPathCurveI_ptr; GdipAddPathCurveI(HandleRef path, HandleRef memorypts, int count)460 internal static int GdipAddPathCurveI(HandleRef path, HandleRef memorypts, int count) => GdipAddPathCurveI_ptr.Delegate(path, memorypts, count); 461 GdipAddPathCurve2I_delegate(HandleRef path, HandleRef memorypts, int count, float tension)462 private delegate int GdipAddPathCurve2I_delegate(HandleRef path, HandleRef memorypts, int count, float tension); 463 private static FunctionWrapper<GdipAddPathCurve2I_delegate> GdipAddPathCurve2I_ptr; GdipAddPathCurve2I(HandleRef path, HandleRef memorypts, int count, float tension)464 internal static int GdipAddPathCurve2I(HandleRef path, HandleRef memorypts, int count, float tension) => GdipAddPathCurve2I_ptr.Delegate(path, memorypts, count, tension); 465 GdipAddPathCurve3I_delegate(HandleRef path, HandleRef memorypts, int count, int offset, int numberOfSegments, float tension)466 private delegate int GdipAddPathCurve3I_delegate(HandleRef path, HandleRef memorypts, int count, int offset, int numberOfSegments, float tension); 467 private static FunctionWrapper<GdipAddPathCurve3I_delegate> GdipAddPathCurve3I_ptr; GdipAddPathCurve3I(HandleRef path, HandleRef memorypts, int count, int offset, int numberOfSegments, float tension)468 internal static int GdipAddPathCurve3I(HandleRef path, HandleRef memorypts, int count, int offset, int numberOfSegments, float tension) => GdipAddPathCurve3I_ptr.Delegate(path, memorypts, count, offset, numberOfSegments, tension); 469 GdipAddPathClosedCurveI_delegate(HandleRef path, HandleRef memorypts, int count)470 private delegate int GdipAddPathClosedCurveI_delegate(HandleRef path, HandleRef memorypts, int count); 471 private static FunctionWrapper<GdipAddPathClosedCurveI_delegate> GdipAddPathClosedCurveI_ptr; GdipAddPathClosedCurveI(HandleRef path, HandleRef memorypts, int count)472 internal static int GdipAddPathClosedCurveI(HandleRef path, HandleRef memorypts, int count) => GdipAddPathClosedCurveI_ptr.Delegate(path, memorypts, count); 473 GdipAddPathClosedCurve2I_delegate(HandleRef path, HandleRef memorypts, int count, float tension)474 private delegate int GdipAddPathClosedCurve2I_delegate(HandleRef path, HandleRef memorypts, int count, float tension); 475 private static FunctionWrapper<GdipAddPathClosedCurve2I_delegate> GdipAddPathClosedCurve2I_ptr; GdipAddPathClosedCurve2I(HandleRef path, HandleRef memorypts, int count, float tension)476 internal static int GdipAddPathClosedCurve2I(HandleRef path, HandleRef memorypts, int count, float tension) => GdipAddPathClosedCurve2I_ptr.Delegate(path, memorypts, count, tension); 477 GdipAddPathRectangleI_delegate(HandleRef path, int x, int y, int width, int height)478 private delegate int GdipAddPathRectangleI_delegate(HandleRef path, int x, int y, int width, int height); 479 private static FunctionWrapper<GdipAddPathRectangleI_delegate> GdipAddPathRectangleI_ptr; GdipAddPathRectangleI(HandleRef path, int x, int y, int width, int height)480 internal static int GdipAddPathRectangleI(HandleRef path, int x, int y, int width, int height) => GdipAddPathRectangleI_ptr.Delegate(path, x, y, width, height); 481 GdipAddPathRectanglesI_delegate(HandleRef path, HandleRef rects, int count)482 private delegate int GdipAddPathRectanglesI_delegate(HandleRef path, HandleRef rects, int count); 483 private static FunctionWrapper<GdipAddPathRectanglesI_delegate> GdipAddPathRectanglesI_ptr; GdipAddPathRectanglesI(HandleRef path, HandleRef rects, int count)484 internal static int GdipAddPathRectanglesI(HandleRef path, HandleRef rects, int count) => GdipAddPathRectanglesI_ptr.Delegate(path, rects, count); 485 GdipAddPathEllipseI_delegate(HandleRef path, int x, int y, int width, int height)486 private delegate int GdipAddPathEllipseI_delegate(HandleRef path, int x, int y, int width, int height); 487 private static FunctionWrapper<GdipAddPathEllipseI_delegate> GdipAddPathEllipseI_ptr; GdipAddPathEllipseI(HandleRef path, int x, int y, int width, int height)488 internal static int GdipAddPathEllipseI(HandleRef path, int x, int y, int width, int height) => GdipAddPathEllipseI_ptr.Delegate(path, x, y, width, height); 489 GdipAddPathPieI_delegate(HandleRef path, int x, int y, int width, int height, float startAngle, float sweepAngle)490 private delegate int GdipAddPathPieI_delegate(HandleRef path, int x, int y, int width, int height, float startAngle, float sweepAngle); 491 private static FunctionWrapper<GdipAddPathPieI_delegate> GdipAddPathPieI_ptr; GdipAddPathPieI(HandleRef path, int x, int y, int width, int height, float startAngle, float sweepAngle)492 internal static int GdipAddPathPieI(HandleRef path, int x, int y, int width, int height, float startAngle, float sweepAngle) => GdipAddPathPieI_ptr.Delegate(path, x, y, width, height, startAngle, sweepAngle); 493 GdipAddPathPolygonI_delegate(HandleRef path, HandleRef memorypts, int count)494 private delegate int GdipAddPathPolygonI_delegate(HandleRef path, HandleRef memorypts, int count); 495 private static FunctionWrapper<GdipAddPathPolygonI_delegate> GdipAddPathPolygonI_ptr; GdipAddPathPolygonI(HandleRef path, HandleRef memorypts, int count)496 internal static int GdipAddPathPolygonI(HandleRef path, HandleRef memorypts, int count) => GdipAddPathPolygonI_ptr.Delegate(path, memorypts, count); 497 GdipFlattenPath_delegate(HandleRef path, HandleRef matrixfloat, float flatness)498 private delegate int GdipFlattenPath_delegate(HandleRef path, HandleRef matrixfloat, float flatness); 499 private static FunctionWrapper<GdipFlattenPath_delegate> GdipFlattenPath_ptr; GdipFlattenPath(HandleRef path, HandleRef matrixfloat, float flatness)500 internal static int GdipFlattenPath(HandleRef path, HandleRef matrixfloat, float flatness) => GdipFlattenPath_ptr.Delegate(path, matrixfloat, flatness); 501 GdipWidenPath_delegate(HandleRef path, HandleRef pen, HandleRef matrix, float flatness)502 private delegate int GdipWidenPath_delegate(HandleRef path, HandleRef pen, HandleRef matrix, float flatness); 503 private static FunctionWrapper<GdipWidenPath_delegate> GdipWidenPath_ptr; GdipWidenPath(HandleRef path, HandleRef pen, HandleRef matrix, float flatness)504 internal static int GdipWidenPath(HandleRef path, HandleRef pen, HandleRef matrix, float flatness) => GdipWidenPath_ptr.Delegate(path, pen, matrix, flatness); 505 GdipWarpPath_delegate(HandleRef path, HandleRef matrix, HandleRef points, int count, float srcX, float srcY, float srcWidth, float srcHeight, WarpMode warpMode, float flatness)506 private delegate int GdipWarpPath_delegate(HandleRef path, HandleRef matrix, HandleRef points, int count, float srcX, float srcY, float srcWidth, float srcHeight, WarpMode warpMode, float flatness); 507 private static FunctionWrapper<GdipWarpPath_delegate> GdipWarpPath_ptr; GdipWarpPath(HandleRef path, HandleRef matrix, HandleRef points, int count, float srcX, float srcY, float srcWidth, float srcHeight, WarpMode warpMode, float flatness)508 internal static int GdipWarpPath(HandleRef path, HandleRef matrix, HandleRef points, int count, float srcX, float srcY, float srcWidth, float srcHeight, WarpMode warpMode, float flatness) => GdipWarpPath_ptr.Delegate(path, matrix, points, count, srcX, srcY, srcWidth, srcHeight, warpMode, flatness); 509 GdipTransformPath_delegate(HandleRef path, HandleRef matrix)510 private delegate int GdipTransformPath_delegate(HandleRef path, HandleRef matrix); 511 private static FunctionWrapper<GdipTransformPath_delegate> GdipTransformPath_ptr; GdipTransformPath(HandleRef path, HandleRef matrix)512 internal static int GdipTransformPath(HandleRef path, HandleRef matrix) => GdipTransformPath_ptr.Delegate(path, matrix); 513 GdipGetPathWorldBounds_delegate(HandleRef path, ref GPRECTF gprectf, HandleRef matrix, HandleRef pen)514 private delegate int GdipGetPathWorldBounds_delegate(HandleRef path, ref GPRECTF gprectf, HandleRef matrix, HandleRef pen); 515 private static FunctionWrapper<GdipGetPathWorldBounds_delegate> GdipGetPathWorldBounds_ptr; GdipGetPathWorldBounds(HandleRef path, ref GPRECTF gprectf, HandleRef matrix, HandleRef pen)516 internal static int GdipGetPathWorldBounds(HandleRef path, ref GPRECTF gprectf, HandleRef matrix, HandleRef pen) => GdipGetPathWorldBounds_ptr.Delegate(path, ref gprectf, matrix, pen); 517 GdipIsVisiblePathPoint_delegate(HandleRef path, float x, float y, HandleRef graphics, out int boolean)518 private delegate int GdipIsVisiblePathPoint_delegate(HandleRef path, float x, float y, HandleRef graphics, out int boolean); 519 private static FunctionWrapper<GdipIsVisiblePathPoint_delegate> GdipIsVisiblePathPoint_ptr; GdipIsVisiblePathPoint(HandleRef path, float x, float y, HandleRef graphics, out int boolean)520 internal static int GdipIsVisiblePathPoint(HandleRef path, float x, float y, HandleRef graphics, out int boolean) => GdipIsVisiblePathPoint_ptr.Delegate(path, x, y, graphics, out boolean); 521 GdipIsVisiblePathPointI_delegate(HandleRef path, int x, int y, HandleRef graphics, out int boolean)522 private delegate int GdipIsVisiblePathPointI_delegate(HandleRef path, int x, int y, HandleRef graphics, out int boolean); 523 private static FunctionWrapper<GdipIsVisiblePathPointI_delegate> GdipIsVisiblePathPointI_ptr; GdipIsVisiblePathPointI(HandleRef path, int x, int y, HandleRef graphics, out int boolean)524 internal static int GdipIsVisiblePathPointI(HandleRef path, int x, int y, HandleRef graphics, out int boolean) => GdipIsVisiblePathPointI_ptr.Delegate(path, x, y, graphics, out boolean); 525 GdipIsOutlineVisiblePathPoint_delegate(HandleRef path, float x, float y, HandleRef pen, HandleRef graphics, out int boolean)526 private delegate int GdipIsOutlineVisiblePathPoint_delegate(HandleRef path, float x, float y, HandleRef pen, HandleRef graphics, out int boolean); 527 private static FunctionWrapper<GdipIsOutlineVisiblePathPoint_delegate> GdipIsOutlineVisiblePathPoint_ptr; GdipIsOutlineVisiblePathPoint(HandleRef path, float x, float y, HandleRef pen, HandleRef graphics, out int boolean)528 internal static int GdipIsOutlineVisiblePathPoint(HandleRef path, float x, float y, HandleRef pen, HandleRef graphics, out int boolean) => GdipIsOutlineVisiblePathPoint_ptr.Delegate(path, x, y, pen, graphics, out boolean); 529 GdipIsOutlineVisiblePathPointI_delegate(HandleRef path, int x, int y, HandleRef pen, HandleRef graphics, out int boolean)530 private delegate int GdipIsOutlineVisiblePathPointI_delegate(HandleRef path, int x, int y, HandleRef pen, HandleRef graphics, out int boolean); 531 private static FunctionWrapper<GdipIsOutlineVisiblePathPointI_delegate> GdipIsOutlineVisiblePathPointI_ptr; GdipIsOutlineVisiblePathPointI(HandleRef path, int x, int y, HandleRef pen, HandleRef graphics, out int boolean)532 internal static int GdipIsOutlineVisiblePathPointI(HandleRef path, int x, int y, HandleRef pen, HandleRef graphics, out int boolean) => GdipIsOutlineVisiblePathPointI_ptr.Delegate(path, x, y, pen, graphics, out boolean); 533 GdipDeleteBrush_delegate(HandleRef brush)534 private delegate int GdipDeleteBrush_delegate(HandleRef brush); 535 private static FunctionWrapper<GdipDeleteBrush_delegate> GdipDeleteBrush_ptr; 536 internal static int IntGdipDeleteBrush(HandleRef brush) => GdipDeleteBrush_ptr.Delegate(brush); 537 GdipLoadImageFromStream_delegate(UnsafeNativeMethods.IStream stream, out IntPtr image)538 private delegate int GdipLoadImageFromStream_delegate(UnsafeNativeMethods.IStream stream, out IntPtr image); 539 private static FunctionWrapper<GdipLoadImageFromStream_delegate> GdipLoadImageFromStream_ptr; GdipLoadImageFromStream(UnsafeNativeMethods.IStream stream, out IntPtr image)540 internal static int GdipLoadImageFromStream(UnsafeNativeMethods.IStream stream, out IntPtr image) => GdipLoadImageFromStream_ptr.Delegate(stream, out image); 541 GdipLoadImageFromFile_delegate([MarshalAs(UnmanagedType.LPWStr)]string filename, out IntPtr image)542 private delegate int GdipLoadImageFromFile_delegate([MarshalAs(UnmanagedType.LPWStr)]string filename, out IntPtr image); 543 private static FunctionWrapper<GdipLoadImageFromFile_delegate> GdipLoadImageFromFile_ptr; GdipLoadImageFromFile(string filename, out IntPtr image)544 internal static int GdipLoadImageFromFile(string filename, out IntPtr image) => GdipLoadImageFromFile_ptr.Delegate(filename, out image); 545 GdipLoadImageFromStreamICM_delegate(UnsafeNativeMethods.IStream stream, out IntPtr image)546 private delegate int GdipLoadImageFromStreamICM_delegate(UnsafeNativeMethods.IStream stream, out IntPtr image); 547 private static FunctionWrapper<GdipLoadImageFromStreamICM_delegate> GdipLoadImageFromStreamICM_ptr; GdipLoadImageFromStreamICM(UnsafeNativeMethods.IStream stream, out IntPtr image)548 internal static int GdipLoadImageFromStreamICM(UnsafeNativeMethods.IStream stream, out IntPtr image) => GdipLoadImageFromStreamICM_ptr.Delegate(stream, out image); 549 GdipLoadImageFromFileICM_delegate([MarshalAs(UnmanagedType.LPWStr)]string filename, out IntPtr image)550 private delegate int GdipLoadImageFromFileICM_delegate([MarshalAs(UnmanagedType.LPWStr)]string filename, out IntPtr image); 551 private static FunctionWrapper<GdipLoadImageFromFileICM_delegate> GdipLoadImageFromFileICM_ptr; GdipLoadImageFromFileICM(string filename, out IntPtr image)552 internal static int GdipLoadImageFromFileICM(string filename, out IntPtr image) => GdipLoadImageFromFileICM_ptr.Delegate(filename, out image); 553 GdipCloneImage_delegate(HandleRef image, out IntPtr cloneimage)554 private delegate int GdipCloneImage_delegate(HandleRef image, out IntPtr cloneimage); 555 private static FunctionWrapper<GdipCloneImage_delegate> GdipCloneImage_ptr; GdipCloneImage(HandleRef image, out IntPtr cloneimage)556 internal static int GdipCloneImage(HandleRef image, out IntPtr cloneimage) => GdipCloneImage_ptr.Delegate(image, out cloneimage); 557 GdipDisposeImage_delegate(HandleRef image)558 private delegate int GdipDisposeImage_delegate(HandleRef image); 559 private static FunctionWrapper<GdipDisposeImage_delegate> GdipDisposeImage_ptr; 560 internal static int IntGdipDisposeImage(HandleRef image) => GdipDisposeImage_ptr.Delegate(image); 561 GdipSaveImageToFile_delegate(HandleRef image, [MarshalAs(UnmanagedType.LPWStr)] string filename, ref Guid classId, HandleRef encoderParams)562 private delegate int GdipSaveImageToFile_delegate(HandleRef image, [MarshalAs(UnmanagedType.LPWStr)] string filename, ref Guid classId, HandleRef encoderParams); 563 private static FunctionWrapper<GdipSaveImageToFile_delegate> GdipSaveImageToFile_ptr; GdipSaveImageToFile(HandleRef image, string filename, ref Guid classId, HandleRef encoderParams)564 internal static int GdipSaveImageToFile(HandleRef image, string filename, ref Guid classId, HandleRef encoderParams) => GdipSaveImageToFile_ptr.Delegate(image, filename, ref classId, encoderParams); 565 GdipSaveImageToStream_delegate(HandleRef image, UnsafeNativeMethods.IStream stream, ref Guid classId, HandleRef encoderParams)566 private delegate int GdipSaveImageToStream_delegate(HandleRef image, UnsafeNativeMethods.IStream stream, ref Guid classId, HandleRef encoderParams); 567 private static FunctionWrapper<GdipSaveImageToStream_delegate> GdipSaveImageToStream_ptr; GdipSaveImageToStream(HandleRef image, UnsafeNativeMethods.IStream stream, ref Guid classId, HandleRef encoderParams)568 internal static int GdipSaveImageToStream(HandleRef image, UnsafeNativeMethods.IStream stream, ref Guid classId, HandleRef encoderParams) => GdipSaveImageToStream_ptr.Delegate(image, stream, ref classId, encoderParams); 569 GdipSaveAdd_delegate(HandleRef image, HandleRef encoderParams)570 private delegate int GdipSaveAdd_delegate(HandleRef image, HandleRef encoderParams); 571 private static FunctionWrapper<GdipSaveAdd_delegate> GdipSaveAdd_ptr; GdipSaveAdd(HandleRef image, HandleRef encoderParams)572 internal static int GdipSaveAdd(HandleRef image, HandleRef encoderParams) => GdipSaveAdd_ptr.Delegate(image, encoderParams); 573 GdipSaveAddImage_delegate(HandleRef image, HandleRef newImage, HandleRef encoderParams)574 private delegate int GdipSaveAddImage_delegate(HandleRef image, HandleRef newImage, HandleRef encoderParams); 575 private static FunctionWrapper<GdipSaveAddImage_delegate> GdipSaveAddImage_ptr; GdipSaveAddImage(HandleRef image, HandleRef newImage, HandleRef encoderParams)576 internal static int GdipSaveAddImage(HandleRef image, HandleRef newImage, HandleRef encoderParams) => GdipSaveAddImage_ptr.Delegate(image, newImage, encoderParams); 577 GdipGetImageGraphicsContext_delegate(HandleRef image, out IntPtr graphics)578 private delegate int GdipGetImageGraphicsContext_delegate(HandleRef image, out IntPtr graphics); 579 private static FunctionWrapper<GdipGetImageGraphicsContext_delegate> GdipGetImageGraphicsContext_ptr; GdipGetImageGraphicsContext(HandleRef image, out IntPtr graphics)580 internal static int GdipGetImageGraphicsContext(HandleRef image, out IntPtr graphics) => GdipGetImageGraphicsContext_ptr.Delegate(image, out graphics); 581 GdipGetImageBounds_delegate(HandleRef image, ref GPRECTF gprectf, out GraphicsUnit unit)582 private delegate int GdipGetImageBounds_delegate(HandleRef image, ref GPRECTF gprectf, out GraphicsUnit unit); 583 private static FunctionWrapper<GdipGetImageBounds_delegate> GdipGetImageBounds_ptr; GdipGetImageBounds(HandleRef image, ref GPRECTF gprectf, out GraphicsUnit unit)584 internal static int GdipGetImageBounds(HandleRef image, ref GPRECTF gprectf, out GraphicsUnit unit) => GdipGetImageBounds_ptr.Delegate(image, ref gprectf, out unit); 585 GdipGetImageDimension_delegate(HandleRef image, out float width, out float height)586 private delegate int GdipGetImageDimension_delegate(HandleRef image, out float width, out float height); 587 private static FunctionWrapper<GdipGetImageDimension_delegate> GdipGetImageDimension_ptr; GdipGetImageDimension(HandleRef image, out float width, out float height)588 internal static int GdipGetImageDimension(HandleRef image, out float width, out float height) => GdipGetImageDimension_ptr.Delegate(image, out width, out height); 589 GdipGetImageType_delegate(HandleRef image, out int type)590 private delegate int GdipGetImageType_delegate(HandleRef image, out int type); 591 private static FunctionWrapper<GdipGetImageType_delegate> GdipGetImageType_ptr; GdipGetImageType(HandleRef image, out int type)592 internal static int GdipGetImageType(HandleRef image, out int type) => GdipGetImageType_ptr.Delegate(image, out type); 593 GdipGetImageWidth_delegate(HandleRef image, out int width)594 private delegate int GdipGetImageWidth_delegate(HandleRef image, out int width); 595 private static FunctionWrapper<GdipGetImageWidth_delegate> GdipGetImageWidth_ptr; GdipGetImageWidth(HandleRef image, out int width)596 internal static int GdipGetImageWidth(HandleRef image, out int width) => GdipGetImageWidth_ptr.Delegate(image, out width); 597 GdipGetImageHeight_delegate(HandleRef image, out int height)598 private delegate int GdipGetImageHeight_delegate(HandleRef image, out int height); 599 private static FunctionWrapper<GdipGetImageHeight_delegate> GdipGetImageHeight_ptr; GdipGetImageHeight(HandleRef image, out int height)600 internal static int GdipGetImageHeight(HandleRef image, out int height) => GdipGetImageHeight_ptr.Delegate(image, out height); 601 GdipGetImageHorizontalResolution_delegate(HandleRef image, out float horzRes)602 private delegate int GdipGetImageHorizontalResolution_delegate(HandleRef image, out float horzRes); 603 private static FunctionWrapper<GdipGetImageHorizontalResolution_delegate> GdipGetImageHorizontalResolution_ptr; GdipGetImageHorizontalResolution(HandleRef image, out float horzRes)604 internal static int GdipGetImageHorizontalResolution(HandleRef image, out float horzRes) => GdipGetImageHorizontalResolution_ptr.Delegate(image, out horzRes); 605 GdipGetImageVerticalResolution_delegate(HandleRef image, out float vertRes)606 private delegate int GdipGetImageVerticalResolution_delegate(HandleRef image, out float vertRes); 607 private static FunctionWrapper<GdipGetImageVerticalResolution_delegate> GdipGetImageVerticalResolution_ptr; GdipGetImageVerticalResolution(HandleRef image, out float vertRes)608 internal static int GdipGetImageVerticalResolution(HandleRef image, out float vertRes) => GdipGetImageVerticalResolution_ptr.Delegate(image, out vertRes); 609 GdipGetImageFlags_delegate(HandleRef image, out int flags)610 private delegate int GdipGetImageFlags_delegate(HandleRef image, out int flags); 611 private static FunctionWrapper<GdipGetImageFlags_delegate> GdipGetImageFlags_ptr; GdipGetImageFlags(HandleRef image, out int flags)612 internal static int GdipGetImageFlags(HandleRef image, out int flags) => GdipGetImageFlags_ptr.Delegate(image, out flags); 613 GdipGetImageRawFormat_delegate(HandleRef image, ref Guid format)614 private delegate int GdipGetImageRawFormat_delegate(HandleRef image, ref Guid format); 615 private static FunctionWrapper<GdipGetImageRawFormat_delegate> GdipGetImageRawFormat_ptr; GdipGetImageRawFormat(HandleRef image, ref Guid format)616 internal static int GdipGetImageRawFormat(HandleRef image, ref Guid format) => GdipGetImageRawFormat_ptr.Delegate(image, ref format); 617 GdipGetImagePixelFormat_delegate(HandleRef image, out int format)618 private delegate int GdipGetImagePixelFormat_delegate(HandleRef image, out int format); 619 private static FunctionWrapper<GdipGetImagePixelFormat_delegate> GdipGetImagePixelFormat_ptr; GdipGetImagePixelFormat(HandleRef image, out int format)620 internal static int GdipGetImagePixelFormat(HandleRef image, out int format) => GdipGetImagePixelFormat_ptr.Delegate(image, out format); 621 GdipGetImageThumbnail_delegate(HandleRef image, int thumbWidth, int thumbHeight, out IntPtr thumbImage, Image.GetThumbnailImageAbort callback, IntPtr callbackdata)622 private delegate int GdipGetImageThumbnail_delegate(HandleRef image, int thumbWidth, int thumbHeight, out IntPtr thumbImage, Image.GetThumbnailImageAbort callback, IntPtr callbackdata); 623 private static FunctionWrapper<GdipGetImageThumbnail_delegate> GdipGetImageThumbnail_ptr; GdipGetImageThumbnail(HandleRef image, int thumbWidth, int thumbHeight, out IntPtr thumbImage, Image.GetThumbnailImageAbort callback, IntPtr callbackdata)624 internal static int GdipGetImageThumbnail(HandleRef image, int thumbWidth, int thumbHeight, out IntPtr thumbImage, Image.GetThumbnailImageAbort callback, IntPtr callbackdata) => GdipGetImageThumbnail_ptr.Delegate(image, thumbWidth, thumbHeight, out thumbImage, callback, callbackdata); 625 GdipGetEncoderParameterListSize_delegate(HandleRef image, ref Guid clsid, out int size)626 private delegate int GdipGetEncoderParameterListSize_delegate(HandleRef image, ref Guid clsid, out int size); 627 private static FunctionWrapper<GdipGetEncoderParameterListSize_delegate> GdipGetEncoderParameterListSize_ptr; GdipGetEncoderParameterListSize(HandleRef image, ref Guid clsid, out int size)628 internal static int GdipGetEncoderParameterListSize(HandleRef image, ref Guid clsid, out int size) => GdipGetEncoderParameterListSize_ptr.Delegate(image, ref clsid, out size); 629 GdipGetEncoderParameterList_delegate(HandleRef image, ref Guid clsid, int size, IntPtr buffer)630 private delegate int GdipGetEncoderParameterList_delegate(HandleRef image, ref Guid clsid, int size, IntPtr buffer); 631 private static FunctionWrapper<GdipGetEncoderParameterList_delegate> GdipGetEncoderParameterList_ptr; GdipGetEncoderParameterList(HandleRef image, ref Guid clsid, int size, IntPtr buffer)632 internal static int GdipGetEncoderParameterList(HandleRef image, ref Guid clsid, int size, IntPtr buffer) => GdipGetEncoderParameterList_ptr.Delegate(image, ref clsid, size, buffer); 633 GdipImageGetFrameDimensionsCount_delegate(HandleRef image, out int count)634 private delegate int GdipImageGetFrameDimensionsCount_delegate(HandleRef image, out int count); 635 private static FunctionWrapper<GdipImageGetFrameDimensionsCount_delegate> GdipImageGetFrameDimensionsCount_ptr; GdipImageGetFrameDimensionsCount(HandleRef image, out int count)636 internal static int GdipImageGetFrameDimensionsCount(HandleRef image, out int count) => GdipImageGetFrameDimensionsCount_ptr.Delegate(image, out count); 637 GdipImageGetFrameDimensionsList_delegate(HandleRef image, IntPtr buffer, int count)638 private delegate int GdipImageGetFrameDimensionsList_delegate(HandleRef image, IntPtr buffer, int count); 639 private static FunctionWrapper<GdipImageGetFrameDimensionsList_delegate> GdipImageGetFrameDimensionsList_ptr; GdipImageGetFrameDimensionsList(HandleRef image, IntPtr buffer, int count)640 internal static int GdipImageGetFrameDimensionsList(HandleRef image, IntPtr buffer, int count) => GdipImageGetFrameDimensionsList_ptr.Delegate(image, buffer, count); 641 GdipImageGetFrameCount_delegate(HandleRef image, ref Guid dimensionID, int[] count)642 private delegate int GdipImageGetFrameCount_delegate(HandleRef image, ref Guid dimensionID, int[] count); 643 private static FunctionWrapper<GdipImageGetFrameCount_delegate> GdipImageGetFrameCount_ptr; GdipImageGetFrameCount(HandleRef image, ref Guid dimensionID, int[] count)644 internal static int GdipImageGetFrameCount(HandleRef image, ref Guid dimensionID, int[] count) => GdipImageGetFrameCount_ptr.Delegate(image, ref dimensionID, count); 645 GdipImageSelectActiveFrame_delegate(HandleRef image, ref Guid dimensionID, int frameIndex)646 private delegate int GdipImageSelectActiveFrame_delegate(HandleRef image, ref Guid dimensionID, int frameIndex); 647 private static FunctionWrapper<GdipImageSelectActiveFrame_delegate> GdipImageSelectActiveFrame_ptr; GdipImageSelectActiveFrame(HandleRef image, ref Guid dimensionID, int frameIndex)648 internal static int GdipImageSelectActiveFrame(HandleRef image, ref Guid dimensionID, int frameIndex) => GdipImageSelectActiveFrame_ptr.Delegate(image, ref dimensionID, frameIndex); 649 GdipImageRotateFlip_delegate(HandleRef image, int rotateFlipType)650 private delegate int GdipImageRotateFlip_delegate(HandleRef image, int rotateFlipType); 651 private static FunctionWrapper<GdipImageRotateFlip_delegate> GdipImageRotateFlip_ptr; GdipImageRotateFlip(HandleRef image, int rotateFlipType)652 internal static int GdipImageRotateFlip(HandleRef image, int rotateFlipType) => GdipImageRotateFlip_ptr.Delegate(image, rotateFlipType); 653 GdipGetImagePalette_delegate(HandleRef image, IntPtr palette, int size)654 private delegate int GdipGetImagePalette_delegate(HandleRef image, IntPtr palette, int size); 655 private static FunctionWrapper<GdipGetImagePalette_delegate> GdipGetImagePalette_ptr; GdipGetImagePalette(HandleRef image, IntPtr palette, int size)656 internal static int GdipGetImagePalette(HandleRef image, IntPtr palette, int size) => GdipGetImagePalette_ptr.Delegate(image, palette, size); 657 GdipSetImagePalette_delegate(HandleRef image, IntPtr palette)658 private delegate int GdipSetImagePalette_delegate(HandleRef image, IntPtr palette); 659 private static FunctionWrapper<GdipSetImagePalette_delegate> GdipSetImagePalette_ptr; GdipSetImagePalette(HandleRef image, IntPtr palette)660 internal static int GdipSetImagePalette(HandleRef image, IntPtr palette) => GdipSetImagePalette_ptr.Delegate(image, palette); 661 GdipGetImagePaletteSize_delegate(HandleRef image, out int size)662 private delegate int GdipGetImagePaletteSize_delegate(HandleRef image, out int size); 663 private static FunctionWrapper<GdipGetImagePaletteSize_delegate> GdipGetImagePaletteSize_ptr; GdipGetImagePaletteSize(HandleRef image, out int size)664 internal static int GdipGetImagePaletteSize(HandleRef image, out int size) => GdipGetImagePaletteSize_ptr.Delegate(image, out size); 665 GdipGetPropertyCount_delegate(HandleRef image, out int count)666 private delegate int GdipGetPropertyCount_delegate(HandleRef image, out int count); 667 private static FunctionWrapper<GdipGetPropertyCount_delegate> GdipGetPropertyCount_ptr; GdipGetPropertyCount(HandleRef image, out int count)668 internal static int GdipGetPropertyCount(HandleRef image, out int count) => GdipGetPropertyCount_ptr.Delegate(image, out count); 669 GdipGetPropertyIdList_delegate(HandleRef image, int count, int[] list)670 private delegate int GdipGetPropertyIdList_delegate(HandleRef image, int count, int[] list); 671 private static FunctionWrapper<GdipGetPropertyIdList_delegate> GdipGetPropertyIdList_ptr; GdipGetPropertyIdList(HandleRef image, int count, int[] list)672 internal static int GdipGetPropertyIdList(HandleRef image, int count, int[] list) => GdipGetPropertyIdList_ptr.Delegate(image, count, list); 673 GdipGetPropertyItemSize_delegate(HandleRef image, int propid, out int size)674 private delegate int GdipGetPropertyItemSize_delegate(HandleRef image, int propid, out int size); 675 private static FunctionWrapper<GdipGetPropertyItemSize_delegate> GdipGetPropertyItemSize_ptr; GdipGetPropertyItemSize(HandleRef image, int propid, out int size)676 internal static int GdipGetPropertyItemSize(HandleRef image, int propid, out int size) => GdipGetPropertyItemSize_ptr.Delegate(image, propid, out size); 677 GdipGetPropertyItem_delegate(HandleRef image, int propid, int size, IntPtr buffer)678 private delegate int GdipGetPropertyItem_delegate(HandleRef image, int propid, int size, IntPtr buffer); 679 private static FunctionWrapper<GdipGetPropertyItem_delegate> GdipGetPropertyItem_ptr; GdipGetPropertyItem(HandleRef image, int propid, int size, IntPtr buffer)680 internal static int GdipGetPropertyItem(HandleRef image, int propid, int size, IntPtr buffer) => GdipGetPropertyItem_ptr.Delegate(image, propid, size, buffer); 681 GdipGetPropertySize_delegate(HandleRef image, out int totalSize, ref int count)682 private delegate int GdipGetPropertySize_delegate(HandleRef image, out int totalSize, ref int count); 683 private static FunctionWrapper<GdipGetPropertySize_delegate> GdipGetPropertySize_ptr; GdipGetPropertySize(HandleRef image, out int totalSize, ref int count)684 internal static int GdipGetPropertySize(HandleRef image, out int totalSize, ref int count) => GdipGetPropertySize_ptr.Delegate(image, out totalSize, ref count); 685 GdipGetAllPropertyItems_delegate(HandleRef image, int totalSize, int count, IntPtr buffer)686 private delegate int GdipGetAllPropertyItems_delegate(HandleRef image, int totalSize, int count, IntPtr buffer); 687 private static FunctionWrapper<GdipGetAllPropertyItems_delegate> GdipGetAllPropertyItems_ptr; GdipGetAllPropertyItems(HandleRef image, int totalSize, int count, IntPtr buffer)688 internal static int GdipGetAllPropertyItems(HandleRef image, int totalSize, int count, IntPtr buffer) => GdipGetAllPropertyItems_ptr.Delegate(image, totalSize, count, buffer); 689 GdipRemovePropertyItem_delegate(HandleRef image, int propid)690 private delegate int GdipRemovePropertyItem_delegate(HandleRef image, int propid); 691 private static FunctionWrapper<GdipRemovePropertyItem_delegate> GdipRemovePropertyItem_ptr; GdipRemovePropertyItem(HandleRef image, int propid)692 internal static int GdipRemovePropertyItem(HandleRef image, int propid) => GdipRemovePropertyItem_ptr.Delegate(image, propid); 693 GdipSetPropertyItem_delegate(HandleRef image, PropertyItemInternal propitem)694 private delegate int GdipSetPropertyItem_delegate(HandleRef image, PropertyItemInternal propitem); 695 private static FunctionWrapper<GdipSetPropertyItem_delegate> GdipSetPropertyItem_ptr; GdipSetPropertyItem(HandleRef image, PropertyItemInternal propitem)696 internal static int GdipSetPropertyItem(HandleRef image, PropertyItemInternal propitem) => GdipSetPropertyItem_ptr.Delegate(image, propitem); 697 GdipImageForceValidation_delegate(HandleRef image)698 private delegate int GdipImageForceValidation_delegate(HandleRef image); 699 private static FunctionWrapper<GdipImageForceValidation_delegate> GdipImageForceValidation_ptr; 700 internal static int GdipImageForceValidation(HandleRef image) => GdipImageForceValidation_ptr.Delegate(image); 701 702 703 GdipFlush_delegate(HandleRef graphics, FlushIntention intention)704 private delegate int GdipFlush_delegate(HandleRef graphics, FlushIntention intention); 705 private static FunctionWrapper<GdipFlush_delegate> GdipFlush_ptr; GdipFlush(HandleRef graphics, FlushIntention intention)706 internal static int GdipFlush(HandleRef graphics, FlushIntention intention) => GdipFlush_ptr.Delegate(graphics, intention); 707 GdipCreateFromHDC_delegate(HandleRef hdc, out IntPtr graphics)708 private delegate int GdipCreateFromHDC_delegate(HandleRef hdc, out IntPtr graphics); 709 private static FunctionWrapper<GdipCreateFromHDC_delegate> GdipCreateFromHDC_ptr; GdipCreateFromHDC(HandleRef hdc, out IntPtr graphics)710 internal static int GdipCreateFromHDC(HandleRef hdc, out IntPtr graphics) => GdipCreateFromHDC_ptr.Delegate(hdc, out graphics); 711 GdipCreateFromHDC2_delegate(HandleRef hdc, HandleRef hdevice, out IntPtr graphics)712 private delegate int GdipCreateFromHDC2_delegate(HandleRef hdc, HandleRef hdevice, out IntPtr graphics); 713 private static FunctionWrapper<GdipCreateFromHDC2_delegate> GdipCreateFromHDC2_ptr; GdipCreateFromHDC2(HandleRef hdc, HandleRef hdevice, out IntPtr graphics)714 internal static int GdipCreateFromHDC2(HandleRef hdc, HandleRef hdevice, out IntPtr graphics) => GdipCreateFromHDC2_ptr.Delegate(hdc, hdevice, out graphics); 715 GdipCreateFromHWND_delegate(HandleRef hwnd, out IntPtr graphics)716 private delegate int GdipCreateFromHWND_delegate(HandleRef hwnd, out IntPtr graphics); 717 private static FunctionWrapper<GdipCreateFromHWND_delegate> GdipCreateFromHWND_ptr; GdipCreateFromHWND(HandleRef hwnd, out IntPtr graphics)718 internal static int GdipCreateFromHWND(HandleRef hwnd, out IntPtr graphics) => GdipCreateFromHWND_ptr.Delegate(hwnd, out graphics); 719 GdipDeleteGraphics_delegate(HandleRef graphics)720 private delegate int GdipDeleteGraphics_delegate(HandleRef graphics); 721 private static FunctionWrapper<GdipDeleteGraphics_delegate> GdipDeleteGraphics_ptr; 722 internal static int IntGdipDeleteGraphics(HandleRef graphics) => GdipDeleteGraphics_ptr.Delegate(graphics); 723 GdipGetDC_delegate(HandleRef graphics, out IntPtr hdc)724 private delegate int GdipGetDC_delegate(HandleRef graphics, out IntPtr hdc); 725 private static FunctionWrapper<GdipGetDC_delegate> GdipGetDC_ptr; GdipGetDC(HandleRef graphics, out IntPtr hdc)726 internal static int GdipGetDC(HandleRef graphics, out IntPtr hdc) => GdipGetDC_ptr.Delegate(graphics, out hdc); 727 GdipReleaseDC_delegate(HandleRef graphics, HandleRef hdc)728 private delegate int GdipReleaseDC_delegate(HandleRef graphics, HandleRef hdc); 729 private static FunctionWrapper<GdipReleaseDC_delegate> GdipReleaseDC_ptr; IntGdipReleaseDC(HandleRef graphics, HandleRef hdc)730 internal static int IntGdipReleaseDC(HandleRef graphics, HandleRef hdc) => GdipReleaseDC_ptr.Delegate(graphics, hdc); 731 GdipSetCompositingMode_delegate(HandleRef graphics, int compositeMode)732 private delegate int GdipSetCompositingMode_delegate(HandleRef graphics, int compositeMode); 733 private static FunctionWrapper<GdipSetCompositingMode_delegate> GdipSetCompositingMode_ptr; GdipSetCompositingMode(HandleRef graphics, int compositeMode)734 internal static int GdipSetCompositingMode(HandleRef graphics, int compositeMode) => GdipSetCompositingMode_ptr.Delegate(graphics, compositeMode); 735 GdipSetTextRenderingHint_delegate(HandleRef graphics, TextRenderingHint textRenderingHint)736 private delegate int GdipSetTextRenderingHint_delegate(HandleRef graphics, TextRenderingHint textRenderingHint); 737 private static FunctionWrapper<GdipSetTextRenderingHint_delegate> GdipSetTextRenderingHint_ptr; GdipSetTextRenderingHint(HandleRef graphics, TextRenderingHint textRenderingHint)738 internal static int GdipSetTextRenderingHint(HandleRef graphics, TextRenderingHint textRenderingHint) => GdipSetTextRenderingHint_ptr.Delegate(graphics, textRenderingHint); 739 GdipSetTextContrast_delegate(HandleRef graphics, int textContrast)740 private delegate int GdipSetTextContrast_delegate(HandleRef graphics, int textContrast); 741 private static FunctionWrapper<GdipSetTextContrast_delegate> GdipSetTextContrast_ptr; GdipSetTextContrast(HandleRef graphics, int textContrast)742 internal static int GdipSetTextContrast(HandleRef graphics, int textContrast) => GdipSetTextContrast_ptr.Delegate(graphics, textContrast); 743 GdipSetInterpolationMode_delegate(HandleRef graphics, int mode)744 private delegate int GdipSetInterpolationMode_delegate(HandleRef graphics, int mode); 745 private static FunctionWrapper<GdipSetInterpolationMode_delegate> GdipSetInterpolationMode_ptr; GdipSetInterpolationMode(HandleRef graphics, int mode)746 internal static int GdipSetInterpolationMode(HandleRef graphics, int mode) => GdipSetInterpolationMode_ptr.Delegate(graphics, mode); 747 GdipGetCompositingMode_delegate(HandleRef graphics, out int compositeMode)748 private delegate int GdipGetCompositingMode_delegate(HandleRef graphics, out int compositeMode); 749 private static FunctionWrapper<GdipGetCompositingMode_delegate> GdipGetCompositingMode_ptr; GdipGetCompositingMode(HandleRef graphics, out int compositeMode)750 internal static int GdipGetCompositingMode(HandleRef graphics, out int compositeMode) => GdipGetCompositingMode_ptr.Delegate(graphics, out compositeMode); 751 GdipSetRenderingOrigin_delegate(HandleRef graphics, int x, int y)752 private delegate int GdipSetRenderingOrigin_delegate(HandleRef graphics, int x, int y); 753 private static FunctionWrapper<GdipSetRenderingOrigin_delegate> GdipSetRenderingOrigin_ptr; GdipSetRenderingOrigin(HandleRef graphics, int x, int y)754 internal static int GdipSetRenderingOrigin(HandleRef graphics, int x, int y) => GdipSetRenderingOrigin_ptr.Delegate(graphics, x, y); 755 GdipGetRenderingOrigin_delegate(HandleRef graphics, out int x, out int y)756 private delegate int GdipGetRenderingOrigin_delegate(HandleRef graphics, out int x, out int y); 757 private static FunctionWrapper<GdipGetRenderingOrigin_delegate> GdipGetRenderingOrigin_ptr; GdipGetRenderingOrigin(HandleRef graphics, out int x, out int y)758 internal static int GdipGetRenderingOrigin(HandleRef graphics, out int x, out int y) => GdipGetRenderingOrigin_ptr.Delegate(graphics, out x, out y); 759 GdipSetCompositingQuality_delegate(HandleRef graphics, CompositingQuality quality)760 private delegate int GdipSetCompositingQuality_delegate(HandleRef graphics, CompositingQuality quality); 761 private static FunctionWrapper<GdipSetCompositingQuality_delegate> GdipSetCompositingQuality_ptr; GdipSetCompositingQuality(HandleRef graphics, CompositingQuality quality)762 internal static int GdipSetCompositingQuality(HandleRef graphics, CompositingQuality quality) => GdipSetCompositingQuality_ptr.Delegate(graphics, quality); 763 GdipGetCompositingQuality_delegate(HandleRef graphics, out CompositingQuality quality)764 private delegate int GdipGetCompositingQuality_delegate(HandleRef graphics, out CompositingQuality quality); 765 private static FunctionWrapper<GdipGetCompositingQuality_delegate> GdipGetCompositingQuality_ptr; GdipGetCompositingQuality(HandleRef graphics, out CompositingQuality quality)766 internal static int GdipGetCompositingQuality(HandleRef graphics, out CompositingQuality quality) => GdipGetCompositingQuality_ptr.Delegate(graphics, out quality); 767 GdipSetSmoothingMode_delegate(HandleRef graphics, SmoothingMode smoothingMode)768 private delegate int GdipSetSmoothingMode_delegate(HandleRef graphics, SmoothingMode smoothingMode); 769 private static FunctionWrapper<GdipSetSmoothingMode_delegate> GdipSetSmoothingMode_ptr; GdipSetSmoothingMode(HandleRef graphics, SmoothingMode smoothingMode)770 internal static int GdipSetSmoothingMode(HandleRef graphics, SmoothingMode smoothingMode) => GdipSetSmoothingMode_ptr.Delegate(graphics, smoothingMode); 771 GdipGetSmoothingMode_delegate(HandleRef graphics, out SmoothingMode smoothingMode)772 private delegate int GdipGetSmoothingMode_delegate(HandleRef graphics, out SmoothingMode smoothingMode); 773 private static FunctionWrapper<GdipGetSmoothingMode_delegate> GdipGetSmoothingMode_ptr; GdipGetSmoothingMode(HandleRef graphics, out SmoothingMode smoothingMode)774 internal static int GdipGetSmoothingMode(HandleRef graphics, out SmoothingMode smoothingMode) => GdipGetSmoothingMode_ptr.Delegate(graphics, out smoothingMode); 775 GdipSetPixelOffsetMode_delegate(HandleRef graphics, PixelOffsetMode pixelOffsetMode)776 private delegate int GdipSetPixelOffsetMode_delegate(HandleRef graphics, PixelOffsetMode pixelOffsetMode); 777 private static FunctionWrapper<GdipSetPixelOffsetMode_delegate> GdipSetPixelOffsetMode_ptr; GdipSetPixelOffsetMode(HandleRef graphics, PixelOffsetMode pixelOffsetMode)778 internal static int GdipSetPixelOffsetMode(HandleRef graphics, PixelOffsetMode pixelOffsetMode) => GdipSetPixelOffsetMode_ptr.Delegate(graphics, pixelOffsetMode); 779 GdipGetPixelOffsetMode_delegate(HandleRef graphics, out PixelOffsetMode pixelOffsetMode)780 private delegate int GdipGetPixelOffsetMode_delegate(HandleRef graphics, out PixelOffsetMode pixelOffsetMode); 781 private static FunctionWrapper<GdipGetPixelOffsetMode_delegate> GdipGetPixelOffsetMode_ptr; GdipGetPixelOffsetMode(HandleRef graphics, out PixelOffsetMode pixelOffsetMode)782 internal static int GdipGetPixelOffsetMode(HandleRef graphics, out PixelOffsetMode pixelOffsetMode) => GdipGetPixelOffsetMode_ptr.Delegate(graphics, out pixelOffsetMode); 783 GdipGetTextRenderingHint_delegate(HandleRef graphics, out TextRenderingHint textRenderingHint)784 private delegate int GdipGetTextRenderingHint_delegate(HandleRef graphics, out TextRenderingHint textRenderingHint); 785 private static FunctionWrapper<GdipGetTextRenderingHint_delegate> GdipGetTextRenderingHint_ptr; GdipGetTextRenderingHint(HandleRef graphics, out TextRenderingHint textRenderingHint)786 internal static int GdipGetTextRenderingHint(HandleRef graphics, out TextRenderingHint textRenderingHint) => GdipGetTextRenderingHint_ptr.Delegate(graphics, out textRenderingHint); 787 GdipGetTextContrast_delegate(HandleRef graphics, out int textContrast)788 private delegate int GdipGetTextContrast_delegate(HandleRef graphics, out int textContrast); 789 private static FunctionWrapper<GdipGetTextContrast_delegate> GdipGetTextContrast_ptr; GdipGetTextContrast(HandleRef graphics, out int textContrast)790 internal static int GdipGetTextContrast(HandleRef graphics, out int textContrast) => GdipGetTextContrast_ptr.Delegate(graphics, out textContrast); 791 GdipGetInterpolationMode_delegate(HandleRef graphics, out int mode)792 private delegate int GdipGetInterpolationMode_delegate(HandleRef graphics, out int mode); 793 private static FunctionWrapper<GdipGetInterpolationMode_delegate> GdipGetInterpolationMode_ptr; GdipGetInterpolationMode(HandleRef graphics, out int mode)794 internal static int GdipGetInterpolationMode(HandleRef graphics, out int mode) => GdipGetInterpolationMode_ptr.Delegate(graphics, out mode); 795 GdipGetPageUnit_delegate(HandleRef graphics, out int unit)796 private delegate int GdipGetPageUnit_delegate(HandleRef graphics, out int unit); 797 private static FunctionWrapper<GdipGetPageUnit_delegate> GdipGetPageUnit_ptr; GdipGetPageUnit(HandleRef graphics, out int unit)798 internal static int GdipGetPageUnit(HandleRef graphics, out int unit) => GdipGetPageUnit_ptr.Delegate(graphics, out unit); 799 GdipGetPageScale_delegate(HandleRef graphics, float[] scale)800 private delegate int GdipGetPageScale_delegate(HandleRef graphics, float[] scale); 801 private static FunctionWrapper<GdipGetPageScale_delegate> GdipGetPageScale_ptr; GdipGetPageScale(HandleRef graphics, float[] scale)802 internal static int GdipGetPageScale(HandleRef graphics, float[] scale) => GdipGetPageScale_ptr.Delegate(graphics, scale); 803 GdipSetPageUnit_delegate(HandleRef graphics, int unit)804 private delegate int GdipSetPageUnit_delegate(HandleRef graphics, int unit); 805 private static FunctionWrapper<GdipSetPageUnit_delegate> GdipSetPageUnit_ptr; GdipSetPageUnit(HandleRef graphics, int unit)806 internal static int GdipSetPageUnit(HandleRef graphics, int unit) => GdipSetPageUnit_ptr.Delegate(graphics, unit); 807 GdipSetPageScale_delegate(HandleRef graphics, float scale)808 private delegate int GdipSetPageScale_delegate(HandleRef graphics, float scale); 809 private static FunctionWrapper<GdipSetPageScale_delegate> GdipSetPageScale_ptr; GdipSetPageScale(HandleRef graphics, float scale)810 internal static int GdipSetPageScale(HandleRef graphics, float scale) => GdipSetPageScale_ptr.Delegate(graphics, scale); 811 GdipGetDpiX_delegate(HandleRef graphics, float[] dpi)812 private delegate int GdipGetDpiX_delegate(HandleRef graphics, float[] dpi); 813 private static FunctionWrapper<GdipGetDpiX_delegate> GdipGetDpiX_ptr; GdipGetDpiX(HandleRef graphics, float[] dpi)814 internal static int GdipGetDpiX(HandleRef graphics, float[] dpi) => GdipGetDpiX_ptr.Delegate(graphics, dpi); 815 GdipGetDpiY_delegate(HandleRef graphics, float[] dpi)816 private delegate int GdipGetDpiY_delegate(HandleRef graphics, float[] dpi); 817 private static FunctionWrapper<GdipGetDpiY_delegate> GdipGetDpiY_ptr; GdipGetDpiY(HandleRef graphics, float[] dpi)818 internal static int GdipGetDpiY(HandleRef graphics, float[] dpi) => GdipGetDpiY_ptr.Delegate(graphics, dpi); 819 GdipTransformPoints_delegate(HandleRef graphics, int destSpace, int srcSpace, IntPtr points, int count)820 private delegate int GdipTransformPoints_delegate(HandleRef graphics, int destSpace, int srcSpace, IntPtr points, int count); 821 private static FunctionWrapper<GdipTransformPoints_delegate> GdipTransformPoints_ptr; GdipTransformPoints(HandleRef graphics, int destSpace, int srcSpace, IntPtr points, int count)822 internal static int GdipTransformPoints(HandleRef graphics, int destSpace, int srcSpace, IntPtr points, int count) => GdipTransformPoints_ptr.Delegate(graphics, destSpace, srcSpace, points, count); 823 GdipTransformPointsI_delegate(HandleRef graphics, int destSpace, int srcSpace, IntPtr points, int count)824 private delegate int GdipTransformPointsI_delegate(HandleRef graphics, int destSpace, int srcSpace, IntPtr points, int count); 825 private static FunctionWrapper<GdipTransformPointsI_delegate> GdipTransformPointsI_ptr; GdipTransformPointsI(HandleRef graphics, int destSpace, int srcSpace, IntPtr points, int count)826 internal static int GdipTransformPointsI(HandleRef graphics, int destSpace, int srcSpace, IntPtr points, int count) => GdipTransformPointsI_ptr.Delegate(graphics, destSpace, srcSpace, points, count); 827 GdipGetNearestColor_delegate(HandleRef graphics, ref int color)828 private delegate int GdipGetNearestColor_delegate(HandleRef graphics, ref int color); 829 private static FunctionWrapper<GdipGetNearestColor_delegate> GdipGetNearestColor_ptr; GdipGetNearestColor(HandleRef graphics, ref int color)830 internal static int GdipGetNearestColor(HandleRef graphics, ref int color) => GdipGetNearestColor_ptr.Delegate(graphics, ref color); 831 GdipCreateHalftonePalette_delegate()832 private delegate IntPtr GdipCreateHalftonePalette_delegate(); 833 private static FunctionWrapper<GdipCreateHalftonePalette_delegate> GdipCreateHalftonePalette_ptr; GdipCreateHalftonePalette()834 internal static IntPtr GdipCreateHalftonePalette() => GdipCreateHalftonePalette_ptr.Delegate(); 835 GdipDrawLine_delegate(HandleRef graphics, HandleRef pen, float x1, float y1, float x2, float y2)836 private delegate int GdipDrawLine_delegate(HandleRef graphics, HandleRef pen, float x1, float y1, float x2, float y2); 837 private static FunctionWrapper<GdipDrawLine_delegate> GdipDrawLine_ptr; GdipDrawLine(HandleRef graphics, HandleRef pen, float x1, float y1, float x2, float y2)838 internal static int GdipDrawLine(HandleRef graphics, HandleRef pen, float x1, float y1, float x2, float y2) => GdipDrawLine_ptr.Delegate(graphics, pen, x1, y1, x2, y2); 839 GdipDrawLineI_delegate(HandleRef graphics, HandleRef pen, int x1, int y1, int x2, int y2)840 private delegate int GdipDrawLineI_delegate(HandleRef graphics, HandleRef pen, int x1, int y1, int x2, int y2); 841 private static FunctionWrapper<GdipDrawLineI_delegate> GdipDrawLineI_ptr; GdipDrawLineI(HandleRef graphics, HandleRef pen, int x1, int y1, int x2, int y2)842 internal static int GdipDrawLineI(HandleRef graphics, HandleRef pen, int x1, int y1, int x2, int y2) => GdipDrawLineI_ptr.Delegate(graphics, pen, x1, y1, x2, y2); 843 GdipDrawLines_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)844 private delegate int GdipDrawLines_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 845 private static FunctionWrapper<GdipDrawLines_delegate> GdipDrawLines_ptr; GdipDrawLines(HandleRef graphics, HandleRef pen, HandleRef points, int count)846 internal static int GdipDrawLines(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawLines_ptr.Delegate(graphics, pen, points, count); 847 GdipDrawLinesI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)848 private delegate int GdipDrawLinesI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 849 private static FunctionWrapper<GdipDrawLinesI_delegate> GdipDrawLinesI_ptr; GdipDrawLinesI(HandleRef graphics, HandleRef pen, HandleRef points, int count)850 internal static int GdipDrawLinesI(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawLinesI_ptr.Delegate(graphics, pen, points, count); 851 GdipDrawArc_delegate(HandleRef graphics, HandleRef pen, float x, float y, float width, float height, float startAngle, float sweepAngle)852 private delegate int GdipDrawArc_delegate(HandleRef graphics, HandleRef pen, float x, float y, float width, float height, float startAngle, float sweepAngle); 853 private static FunctionWrapper<GdipDrawArc_delegate> GdipDrawArc_ptr; GdipDrawArc(HandleRef graphics, HandleRef pen, float x, float y, float width, float height, float startAngle, float sweepAngle)854 internal static int GdipDrawArc(HandleRef graphics, HandleRef pen, float x, float y, float width, float height, float startAngle, float sweepAngle) => GdipDrawArc_ptr.Delegate(graphics, pen, x, y, width, height, startAngle, sweepAngle); 855 GdipDrawArcI_delegate(HandleRef graphics, HandleRef pen, int x, int y, int width, int height, float startAngle, float sweepAngle)856 private delegate int GdipDrawArcI_delegate(HandleRef graphics, HandleRef pen, int x, int y, int width, int height, float startAngle, float sweepAngle); 857 private static FunctionWrapper<GdipDrawArcI_delegate> GdipDrawArcI_ptr; GdipDrawArcI(HandleRef graphics, HandleRef pen, int x, int y, int width, int height, float startAngle, float sweepAngle)858 internal static int GdipDrawArcI(HandleRef graphics, HandleRef pen, int x, int y, int width, int height, float startAngle, float sweepAngle) => GdipDrawArcI_ptr.Delegate(graphics, pen, x, y, width, height, startAngle, sweepAngle); 859 GdipDrawBezier_delegate(HandleRef graphics, HandleRef pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)860 private delegate int GdipDrawBezier_delegate(HandleRef graphics, HandleRef pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4); 861 private static FunctionWrapper<GdipDrawBezier_delegate> GdipDrawBezier_ptr; GdipDrawBezier(HandleRef graphics, HandleRef pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4)862 internal static int GdipDrawBezier(HandleRef graphics, HandleRef pen, float x1, float y1, float x2, float y2, float x3, float y3, float x4, float y4) => GdipDrawBezier_ptr.Delegate(graphics, pen, x1, y1, x2, y2, x3, y3, x4, y4); 863 GdipDrawBeziers_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)864 private delegate int GdipDrawBeziers_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 865 private static FunctionWrapper<GdipDrawBeziers_delegate> GdipDrawBeziers_ptr; GdipDrawBeziers(HandleRef graphics, HandleRef pen, HandleRef points, int count)866 internal static int GdipDrawBeziers(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawBeziers_ptr.Delegate(graphics, pen, points, count); 867 GdipDrawBeziersI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)868 private delegate int GdipDrawBeziersI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 869 private static FunctionWrapper<GdipDrawBeziersI_delegate> GdipDrawBeziersI_ptr; GdipDrawBeziersI(HandleRef graphics, HandleRef pen, HandleRef points, int count)870 internal static int GdipDrawBeziersI(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawBeziersI_ptr.Delegate(graphics, pen, points, count); 871 GdipDrawRectangle_delegate(HandleRef graphics, HandleRef pen, float x, float y, float width, float height)872 private delegate int GdipDrawRectangle_delegate(HandleRef graphics, HandleRef pen, float x, float y, float width, float height); 873 private static FunctionWrapper<GdipDrawRectangle_delegate> GdipDrawRectangle_ptr; GdipDrawRectangle(HandleRef graphics, HandleRef pen, float x, float y, float width, float height)874 internal static int GdipDrawRectangle(HandleRef graphics, HandleRef pen, float x, float y, float width, float height) => GdipDrawRectangle_ptr.Delegate(graphics, pen, x, y, width, height); 875 GdipDrawRectangleI_delegate(HandleRef graphics, HandleRef pen, int x, int y, int width, int height)876 private delegate int GdipDrawRectangleI_delegate(HandleRef graphics, HandleRef pen, int x, int y, int width, int height); 877 private static FunctionWrapper<GdipDrawRectangleI_delegate> GdipDrawRectangleI_ptr; GdipDrawRectangleI(HandleRef graphics, HandleRef pen, int x, int y, int width, int height)878 internal static int GdipDrawRectangleI(HandleRef graphics, HandleRef pen, int x, int y, int width, int height) => GdipDrawRectangleI_ptr.Delegate(graphics, pen, x, y, width, height); 879 GdipDrawRectangles_delegate(HandleRef graphics, HandleRef pen, HandleRef rects, int count)880 private delegate int GdipDrawRectangles_delegate(HandleRef graphics, HandleRef pen, HandleRef rects, int count); 881 private static FunctionWrapper<GdipDrawRectangles_delegate> GdipDrawRectangles_ptr; GdipDrawRectangles(HandleRef graphics, HandleRef pen, HandleRef rects, int count)882 internal static int GdipDrawRectangles(HandleRef graphics, HandleRef pen, HandleRef rects, int count) => GdipDrawRectangles_ptr.Delegate(graphics, pen, rects, count); 883 GdipDrawRectanglesI_delegate(HandleRef graphics, HandleRef pen, HandleRef rects, int count)884 private delegate int GdipDrawRectanglesI_delegate(HandleRef graphics, HandleRef pen, HandleRef rects, int count); 885 private static FunctionWrapper<GdipDrawRectanglesI_delegate> GdipDrawRectanglesI_ptr; GdipDrawRectanglesI(HandleRef graphics, HandleRef pen, HandleRef rects, int count)886 internal static int GdipDrawRectanglesI(HandleRef graphics, HandleRef pen, HandleRef rects, int count) => GdipDrawRectanglesI_ptr.Delegate(graphics, pen, rects, count); 887 GdipDrawEllipse_delegate(HandleRef graphics, HandleRef pen, float x, float y, float width, float height)888 private delegate int GdipDrawEllipse_delegate(HandleRef graphics, HandleRef pen, float x, float y, float width, float height); 889 private static FunctionWrapper<GdipDrawEllipse_delegate> GdipDrawEllipse_ptr; GdipDrawEllipse(HandleRef graphics, HandleRef pen, float x, float y, float width, float height)890 internal static int GdipDrawEllipse(HandleRef graphics, HandleRef pen, float x, float y, float width, float height) => GdipDrawEllipse_ptr.Delegate(graphics, pen, x, y, width, height); 891 GdipDrawEllipseI_delegate(HandleRef graphics, HandleRef pen, int x, int y, int width, int height)892 private delegate int GdipDrawEllipseI_delegate(HandleRef graphics, HandleRef pen, int x, int y, int width, int height); 893 private static FunctionWrapper<GdipDrawEllipseI_delegate> GdipDrawEllipseI_ptr; GdipDrawEllipseI(HandleRef graphics, HandleRef pen, int x, int y, int width, int height)894 internal static int GdipDrawEllipseI(HandleRef graphics, HandleRef pen, int x, int y, int width, int height) => GdipDrawEllipseI_ptr.Delegate(graphics, pen, x, y, width, height); 895 GdipDrawPie_delegate(HandleRef graphics, HandleRef pen, float x, float y, float width, float height, float startAngle, float sweepAngle)896 private delegate int GdipDrawPie_delegate(HandleRef graphics, HandleRef pen, float x, float y, float width, float height, float startAngle, float sweepAngle); 897 private static FunctionWrapper<GdipDrawPie_delegate> GdipDrawPie_ptr; GdipDrawPie(HandleRef graphics, HandleRef pen, float x, float y, float width, float height, float startAngle, float sweepAngle)898 internal static int GdipDrawPie(HandleRef graphics, HandleRef pen, float x, float y, float width, float height, float startAngle, float sweepAngle) => GdipDrawPie_ptr.Delegate(graphics, pen, x, y, width, height, startAngle, sweepAngle); 899 GdipDrawPieI_delegate(HandleRef graphics, HandleRef pen, int x, int y, int width, int height, float startAngle, float sweepAngle)900 private delegate int GdipDrawPieI_delegate(HandleRef graphics, HandleRef pen, int x, int y, int width, int height, float startAngle, float sweepAngle); 901 private static FunctionWrapper<GdipDrawPieI_delegate> GdipDrawPieI_ptr; GdipDrawPieI(HandleRef graphics, HandleRef pen, int x, int y, int width, int height, float startAngle, float sweepAngle)902 internal static int GdipDrawPieI(HandleRef graphics, HandleRef pen, int x, int y, int width, int height, float startAngle, float sweepAngle) => GdipDrawPieI_ptr.Delegate(graphics, pen, x, y, width, height, startAngle, sweepAngle); 903 GdipDrawPolygon_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)904 private delegate int GdipDrawPolygon_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 905 private static FunctionWrapper<GdipDrawPolygon_delegate> GdipDrawPolygon_ptr; GdipDrawPolygon(HandleRef graphics, HandleRef pen, HandleRef points, int count)906 internal static int GdipDrawPolygon(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawPolygon_ptr.Delegate(graphics, pen, points, count); 907 GdipDrawPolygonI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)908 private delegate int GdipDrawPolygonI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 909 private static FunctionWrapper<GdipDrawPolygonI_delegate> GdipDrawPolygonI_ptr; GdipDrawPolygonI(HandleRef graphics, HandleRef pen, HandleRef points, int count)910 internal static int GdipDrawPolygonI(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawPolygonI_ptr.Delegate(graphics, pen, points, count); 911 GdipDrawPath_delegate(HandleRef graphics, HandleRef pen, HandleRef path)912 private delegate int GdipDrawPath_delegate(HandleRef graphics, HandleRef pen, HandleRef path); 913 private static FunctionWrapper<GdipDrawPath_delegate> GdipDrawPath_ptr; GdipDrawPath(HandleRef graphics, HandleRef pen, HandleRef path)914 internal static int GdipDrawPath(HandleRef graphics, HandleRef pen, HandleRef path) => GdipDrawPath_ptr.Delegate(graphics, pen, path); 915 GdipDrawCurve_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)916 private delegate int GdipDrawCurve_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 917 private static FunctionWrapper<GdipDrawCurve_delegate> GdipDrawCurve_ptr; GdipDrawCurve(HandleRef graphics, HandleRef pen, HandleRef points, int count)918 internal static int GdipDrawCurve(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawCurve_ptr.Delegate(graphics, pen, points, count); 919 GdipDrawCurveI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)920 private delegate int GdipDrawCurveI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 921 private static FunctionWrapper<GdipDrawCurveI_delegate> GdipDrawCurveI_ptr; GdipDrawCurveI(HandleRef graphics, HandleRef pen, HandleRef points, int count)922 internal static int GdipDrawCurveI(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawCurveI_ptr.Delegate(graphics, pen, points, count); 923 GdipDrawCurve2_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension)924 private delegate int GdipDrawCurve2_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension); 925 private static FunctionWrapper<GdipDrawCurve2_delegate> GdipDrawCurve2_ptr; GdipDrawCurve2(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension)926 internal static int GdipDrawCurve2(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension) => GdipDrawCurve2_ptr.Delegate(graphics, pen, points, count, tension); 927 GdipDrawCurve2I_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension)928 private delegate int GdipDrawCurve2I_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension); 929 private static FunctionWrapper<GdipDrawCurve2I_delegate> GdipDrawCurve2I_ptr; GdipDrawCurve2I(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension)930 internal static int GdipDrawCurve2I(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension) => GdipDrawCurve2I_ptr.Delegate(graphics, pen, points, count, tension); 931 GdipDrawCurve3_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, int offset, int numberOfSegments, float tension)932 private delegate int GdipDrawCurve3_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, int offset, int numberOfSegments, float tension); 933 private static FunctionWrapper<GdipDrawCurve3_delegate> GdipDrawCurve3_ptr; GdipDrawCurve3(HandleRef graphics, HandleRef pen, HandleRef points, int count, int offset, int numberOfSegments, float tension)934 internal static int GdipDrawCurve3(HandleRef graphics, HandleRef pen, HandleRef points, int count, int offset, int numberOfSegments, float tension) => GdipDrawCurve3_ptr.Delegate(graphics, pen, points, count, offset, numberOfSegments, tension); 935 GdipDrawCurve3I_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, int offset, int numberOfSegments, float tension)936 private delegate int GdipDrawCurve3I_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, int offset, int numberOfSegments, float tension); 937 private static FunctionWrapper<GdipDrawCurve3I_delegate> GdipDrawCurve3I_ptr; GdipDrawCurve3I(HandleRef graphics, HandleRef pen, HandleRef points, int count, int offset, int numberOfSegments, float tension)938 internal static int GdipDrawCurve3I(HandleRef graphics, HandleRef pen, HandleRef points, int count, int offset, int numberOfSegments, float tension) => GdipDrawCurve3I_ptr.Delegate(graphics, pen, points, count, offset, numberOfSegments, tension); 939 GdipDrawClosedCurve_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)940 private delegate int GdipDrawClosedCurve_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 941 private static FunctionWrapper<GdipDrawClosedCurve_delegate> GdipDrawClosedCurve_ptr; GdipDrawClosedCurve(HandleRef graphics, HandleRef pen, HandleRef points, int count)942 internal static int GdipDrawClosedCurve(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawClosedCurve_ptr.Delegate(graphics, pen, points, count); 943 GdipDrawClosedCurveI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count)944 private delegate int GdipDrawClosedCurveI_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count); 945 private static FunctionWrapper<GdipDrawClosedCurveI_delegate> GdipDrawClosedCurveI_ptr; GdipDrawClosedCurveI(HandleRef graphics, HandleRef pen, HandleRef points, int count)946 internal static int GdipDrawClosedCurveI(HandleRef graphics, HandleRef pen, HandleRef points, int count) => GdipDrawClosedCurveI_ptr.Delegate(graphics, pen, points, count); 947 GdipDrawClosedCurve2_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension)948 private delegate int GdipDrawClosedCurve2_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension); 949 private static FunctionWrapper<GdipDrawClosedCurve2_delegate> GdipDrawClosedCurve2_ptr; GdipDrawClosedCurve2(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension)950 internal static int GdipDrawClosedCurve2(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension) => GdipDrawClosedCurve2_ptr.Delegate(graphics, pen, points, count, tension); 951 GdipDrawClosedCurve2I_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension)952 private delegate int GdipDrawClosedCurve2I_delegate(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension); 953 private static FunctionWrapper<GdipDrawClosedCurve2I_delegate> GdipDrawClosedCurve2I_ptr; GdipDrawClosedCurve2I(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension)954 internal static int GdipDrawClosedCurve2I(HandleRef graphics, HandleRef pen, HandleRef points, int count, float tension) => GdipDrawClosedCurve2I_ptr.Delegate(graphics, pen, points, count, tension); 955 GdipGraphicsClear_delegate(HandleRef graphics, int argb)956 private delegate int GdipGraphicsClear_delegate(HandleRef graphics, int argb); 957 private static FunctionWrapper<GdipGraphicsClear_delegate> GdipGraphicsClear_ptr; GdipGraphicsClear(HandleRef graphics, int argb)958 internal static int GdipGraphicsClear(HandleRef graphics, int argb) => GdipGraphicsClear_ptr.Delegate(graphics, argb); 959 GdipFillRectangle_delegate(HandleRef graphics, HandleRef brush, float x, float y, float width, float height)960 private delegate int GdipFillRectangle_delegate(HandleRef graphics, HandleRef brush, float x, float y, float width, float height); 961 private static FunctionWrapper<GdipFillRectangle_delegate> GdipFillRectangle_ptr; GdipFillRectangle(HandleRef graphics, HandleRef brush, float x, float y, float width, float height)962 internal static int GdipFillRectangle(HandleRef graphics, HandleRef brush, float x, float y, float width, float height) => GdipFillRectangle_ptr.Delegate(graphics, brush, x, y, width, height); 963 GdipFillRectangleI_delegate(HandleRef graphics, HandleRef brush, int x, int y, int width, int height)964 private delegate int GdipFillRectangleI_delegate(HandleRef graphics, HandleRef brush, int x, int y, int width, int height); 965 private static FunctionWrapper<GdipFillRectangleI_delegate> GdipFillRectangleI_ptr; GdipFillRectangleI(HandleRef graphics, HandleRef brush, int x, int y, int width, int height)966 internal static int GdipFillRectangleI(HandleRef graphics, HandleRef brush, int x, int y, int width, int height) => GdipFillRectangleI_ptr.Delegate(graphics, brush, x, y, width, height); 967 GdipFillRectangles_delegate(HandleRef graphics, HandleRef brush, HandleRef rects, int count)968 private delegate int GdipFillRectangles_delegate(HandleRef graphics, HandleRef brush, HandleRef rects, int count); 969 private static FunctionWrapper<GdipFillRectangles_delegate> GdipFillRectangles_ptr; GdipFillRectangles(HandleRef graphics, HandleRef brush, HandleRef rects, int count)970 internal static int GdipFillRectangles(HandleRef graphics, HandleRef brush, HandleRef rects, int count) => GdipFillRectangles_ptr.Delegate(graphics, brush, rects, count); 971 GdipFillRectanglesI_delegate(HandleRef graphics, HandleRef brush, HandleRef rects, int count)972 private delegate int GdipFillRectanglesI_delegate(HandleRef graphics, HandleRef brush, HandleRef rects, int count); 973 private static FunctionWrapper<GdipFillRectanglesI_delegate> GdipFillRectanglesI_ptr; GdipFillRectanglesI(HandleRef graphics, HandleRef brush, HandleRef rects, int count)974 internal static int GdipFillRectanglesI(HandleRef graphics, HandleRef brush, HandleRef rects, int count) => GdipFillRectanglesI_ptr.Delegate(graphics, brush, rects, count); 975 GdipFillPolygon_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count, int brushMode)976 private delegate int GdipFillPolygon_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count, int brushMode); 977 private static FunctionWrapper<GdipFillPolygon_delegate> GdipFillPolygon_ptr; GdipFillPolygon(HandleRef graphics, HandleRef brush, HandleRef points, int count, int brushMode)978 internal static int GdipFillPolygon(HandleRef graphics, HandleRef brush, HandleRef points, int count, int brushMode) => GdipFillPolygon_ptr.Delegate(graphics, brush, points, count, brushMode); 979 GdipFillPolygonI_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count, int brushMode)980 private delegate int GdipFillPolygonI_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count, int brushMode); 981 private static FunctionWrapper<GdipFillPolygonI_delegate> GdipFillPolygonI_ptr; GdipFillPolygonI(HandleRef graphics, HandleRef brush, HandleRef points, int count, int brushMode)982 internal static int GdipFillPolygonI(HandleRef graphics, HandleRef brush, HandleRef points, int count, int brushMode) => GdipFillPolygonI_ptr.Delegate(graphics, brush, points, count, brushMode); 983 GdipFillEllipse_delegate(HandleRef graphics, HandleRef brush, float x, float y, float width, float height)984 private delegate int GdipFillEllipse_delegate(HandleRef graphics, HandleRef brush, float x, float y, float width, float height); 985 private static FunctionWrapper<GdipFillEllipse_delegate> GdipFillEllipse_ptr; GdipFillEllipse(HandleRef graphics, HandleRef brush, float x, float y, float width, float height)986 internal static int GdipFillEllipse(HandleRef graphics, HandleRef brush, float x, float y, float width, float height) => GdipFillEllipse_ptr.Delegate(graphics, brush, x, y, width, height); 987 GdipFillEllipseI_delegate(HandleRef graphics, HandleRef brush, int x, int y, int width, int height)988 private delegate int GdipFillEllipseI_delegate(HandleRef graphics, HandleRef brush, int x, int y, int width, int height); 989 private static FunctionWrapper<GdipFillEllipseI_delegate> GdipFillEllipseI_ptr; GdipFillEllipseI(HandleRef graphics, HandleRef brush, int x, int y, int width, int height)990 internal static int GdipFillEllipseI(HandleRef graphics, HandleRef brush, int x, int y, int width, int height) => GdipFillEllipseI_ptr.Delegate(graphics, brush, x, y, width, height); 991 GdipFillPie_delegate(HandleRef graphics, HandleRef brush, float x, float y, float width, float height, float startAngle, float sweepAngle)992 private delegate int GdipFillPie_delegate(HandleRef graphics, HandleRef brush, float x, float y, float width, float height, float startAngle, float sweepAngle); 993 private static FunctionWrapper<GdipFillPie_delegate> GdipFillPie_ptr; GdipFillPie(HandleRef graphics, HandleRef brush, float x, float y, float width, float height, float startAngle, float sweepAngle)994 internal static int GdipFillPie(HandleRef graphics, HandleRef brush, float x, float y, float width, float height, float startAngle, float sweepAngle) => GdipFillPie_ptr.Delegate(graphics, brush, x, y, width, height, startAngle, sweepAngle); 995 GdipFillPieI_delegate(HandleRef graphics, HandleRef brush, int x, int y, int width, int height, float startAngle, float sweepAngle)996 private delegate int GdipFillPieI_delegate(HandleRef graphics, HandleRef brush, int x, int y, int width, int height, float startAngle, float sweepAngle); 997 private static FunctionWrapper<GdipFillPieI_delegate> GdipFillPieI_ptr; GdipFillPieI(HandleRef graphics, HandleRef brush, int x, int y, int width, int height, float startAngle, float sweepAngle)998 internal static int GdipFillPieI(HandleRef graphics, HandleRef brush, int x, int y, int width, int height, float startAngle, float sweepAngle) => GdipFillPieI_ptr.Delegate(graphics, brush, x, y, width, height, startAngle, sweepAngle); 999 GdipFillPath_delegate(HandleRef graphics, HandleRef brush, HandleRef path)1000 private delegate int GdipFillPath_delegate(HandleRef graphics, HandleRef brush, HandleRef path); 1001 private static FunctionWrapper<GdipFillPath_delegate> GdipFillPath_ptr; GdipFillPath(HandleRef graphics, HandleRef brush, HandleRef path)1002 internal static int GdipFillPath(HandleRef graphics, HandleRef brush, HandleRef path) => GdipFillPath_ptr.Delegate(graphics, brush, path); 1003 GdipFillClosedCurve_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count)1004 private delegate int GdipFillClosedCurve_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count); 1005 private static FunctionWrapper<GdipFillClosedCurve_delegate> GdipFillClosedCurve_ptr; GdipFillClosedCurve(HandleRef graphics, HandleRef brush, HandleRef points, int count)1006 internal static int GdipFillClosedCurve(HandleRef graphics, HandleRef brush, HandleRef points, int count) => GdipFillClosedCurve_ptr.Delegate(graphics, brush, points, count); 1007 GdipFillClosedCurveI_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count)1008 private delegate int GdipFillClosedCurveI_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count); 1009 private static FunctionWrapper<GdipFillClosedCurveI_delegate> GdipFillClosedCurveI_ptr; GdipFillClosedCurveI(HandleRef graphics, HandleRef brush, HandleRef points, int count)1010 internal static int GdipFillClosedCurveI(HandleRef graphics, HandleRef brush, HandleRef points, int count) => GdipFillClosedCurveI_ptr.Delegate(graphics, brush, points, count); 1011 GdipFillClosedCurve2_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count, float tension, int mode)1012 private delegate int GdipFillClosedCurve2_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count, float tension, int mode); 1013 private static FunctionWrapper<GdipFillClosedCurve2_delegate> GdipFillClosedCurve2_ptr; GdipFillClosedCurve2(HandleRef graphics, HandleRef brush, HandleRef points, int count, float tension, int mode)1014 internal static int GdipFillClosedCurve2(HandleRef graphics, HandleRef brush, HandleRef points, int count, float tension, int mode) => GdipFillClosedCurve2_ptr.Delegate(graphics, brush, points, count, tension, mode); 1015 GdipFillClosedCurve2I_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count, float tension, int mode)1016 private delegate int GdipFillClosedCurve2I_delegate(HandleRef graphics, HandleRef brush, HandleRef points, int count, float tension, int mode); 1017 private static FunctionWrapper<GdipFillClosedCurve2I_delegate> GdipFillClosedCurve2I_ptr; GdipFillClosedCurve2I(HandleRef graphics, HandleRef brush, HandleRef points, int count, float tension, int mode)1018 internal static int GdipFillClosedCurve2I(HandleRef graphics, HandleRef brush, HandleRef points, int count, float tension, int mode) => GdipFillClosedCurve2I_ptr.Delegate(graphics, brush, points, count, tension, mode); 1019 GdipDrawImage_delegate(HandleRef graphics, HandleRef image, float x, float y)1020 private delegate int GdipDrawImage_delegate(HandleRef graphics, HandleRef image, float x, float y); 1021 private static FunctionWrapper<GdipDrawImage_delegate> GdipDrawImage_ptr; GdipDrawImage(HandleRef graphics, HandleRef image, float x, float y)1022 internal static int GdipDrawImage(HandleRef graphics, HandleRef image, float x, float y) => GdipDrawImage_ptr.Delegate(graphics, image, x, y); 1023 GdipDrawImageI_delegate(HandleRef graphics, HandleRef image, int x, int y)1024 private delegate int GdipDrawImageI_delegate(HandleRef graphics, HandleRef image, int x, int y); 1025 private static FunctionWrapper<GdipDrawImageI_delegate> GdipDrawImageI_ptr; GdipDrawImageI(HandleRef graphics, HandleRef image, int x, int y)1026 internal static int GdipDrawImageI(HandleRef graphics, HandleRef image, int x, int y) => GdipDrawImageI_ptr.Delegate(graphics, image, x, y); 1027 GdipDrawImageRect_delegate(HandleRef graphics, HandleRef image, float x, float y, float width, float height)1028 private delegate int GdipDrawImageRect_delegate(HandleRef graphics, HandleRef image, float x, float y, float width, float height); 1029 private static FunctionWrapper<GdipDrawImageRect_delegate> GdipDrawImageRect_ptr; GdipDrawImageRect(HandleRef graphics, HandleRef image, float x, float y, float width, float height)1030 internal static int GdipDrawImageRect(HandleRef graphics, HandleRef image, float x, float y, float width, float height) => GdipDrawImageRect_ptr.Delegate(graphics, image, x, y, width, height); 1031 GdipDrawImageRectI_delegate(HandleRef graphics, HandleRef image, int x, int y, int width, int height)1032 private delegate int GdipDrawImageRectI_delegate(HandleRef graphics, HandleRef image, int x, int y, int width, int height); 1033 private static FunctionWrapper<GdipDrawImageRectI_delegate> GdipDrawImageRectI_ptr; GdipDrawImageRectI(HandleRef graphics, HandleRef image, int x, int y, int width, int height)1034 internal static int GdipDrawImageRectI(HandleRef graphics, HandleRef image, int x, int y, int width, int height) => GdipDrawImageRectI_ptr.Delegate(graphics, image, x, y, width, height); 1035 GdipDrawImagePoints_delegate(HandleRef graphics, HandleRef image, HandleRef points, int count)1036 private delegate int GdipDrawImagePoints_delegate(HandleRef graphics, HandleRef image, HandleRef points, int count); 1037 private static FunctionWrapper<GdipDrawImagePoints_delegate> GdipDrawImagePoints_ptr; GdipDrawImagePoints(HandleRef graphics, HandleRef image, HandleRef points, int count)1038 internal static int GdipDrawImagePoints(HandleRef graphics, HandleRef image, HandleRef points, int count) => GdipDrawImagePoints_ptr.Delegate(graphics, image, points, count); 1039 GdipDrawImagePointsI_delegate(HandleRef graphics, HandleRef image, HandleRef points, int count)1040 private delegate int GdipDrawImagePointsI_delegate(HandleRef graphics, HandleRef image, HandleRef points, int count); 1041 private static FunctionWrapper<GdipDrawImagePointsI_delegate> GdipDrawImagePointsI_ptr; GdipDrawImagePointsI(HandleRef graphics, HandleRef image, HandleRef points, int count)1042 internal static int GdipDrawImagePointsI(HandleRef graphics, HandleRef image, HandleRef points, int count) => GdipDrawImagePointsI_ptr.Delegate(graphics, image, points, count); 1043 GdipDrawImagePointRect_delegate(HandleRef graphics, HandleRef image, float x, float y, float srcx, float srcy, float srcwidth, float srcheight, int srcunit)1044 private delegate int GdipDrawImagePointRect_delegate(HandleRef graphics, HandleRef image, float x, float y, float srcx, float srcy, float srcwidth, float srcheight, int srcunit); 1045 private static FunctionWrapper<GdipDrawImagePointRect_delegate> GdipDrawImagePointRect_ptr; GdipDrawImagePointRect(HandleRef graphics, HandleRef image, float x, float y, float srcx, float srcy, float srcwidth, float srcheight, int srcunit)1046 internal static int GdipDrawImagePointRect(HandleRef graphics, HandleRef image, float x, float y, float srcx, float srcy, float srcwidth, float srcheight, int srcunit) => GdipDrawImagePointRect_ptr.Delegate(graphics, image, x, y, srcx, srcy, srcwidth, srcheight, srcunit); 1047 GdipDrawImagePointRectI_delegate(HandleRef graphics, HandleRef image, int x, int y, int srcx, int srcy, int srcwidth, int srcheight, int srcunit)1048 private delegate int GdipDrawImagePointRectI_delegate(HandleRef graphics, HandleRef image, int x, int y, int srcx, int srcy, int srcwidth, int srcheight, int srcunit); 1049 private static FunctionWrapper<GdipDrawImagePointRectI_delegate> GdipDrawImagePointRectI_ptr; GdipDrawImagePointRectI(HandleRef graphics, HandleRef image, int x, int y, int srcx, int srcy, int srcwidth, int srcheight, int srcunit)1050 internal static int GdipDrawImagePointRectI(HandleRef graphics, HandleRef image, int x, int y, int srcx, int srcy, int srcwidth, int srcheight, int srcunit) => GdipDrawImagePointRectI_ptr.Delegate(graphics, image, x, y, srcx, srcy, srcwidth, srcheight, srcunit); 1051 GdipDrawImageRectRect_delegate(HandleRef graphics, HandleRef image, float dstx, float dsty, float dstwidth, float dstheight, float srcx, float srcy, float srcwidth, float srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata)1052 private delegate int GdipDrawImageRectRect_delegate(HandleRef graphics, HandleRef image, float dstx, float dsty, float dstwidth, float dstheight, float srcx, float srcy, float srcwidth, float srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata); 1053 private static FunctionWrapper<GdipDrawImageRectRect_delegate> GdipDrawImageRectRect_ptr; GdipDrawImageRectRect(HandleRef graphics, HandleRef image, float dstx, float dsty, float dstwidth, float dstheight, float srcx, float srcy, float srcwidth, float srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata)1054 internal static int GdipDrawImageRectRect(HandleRef graphics, HandleRef image, float dstx, float dsty, float dstwidth, float dstheight, float srcx, float srcy, float srcwidth, float srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata) => GdipDrawImageRectRect_ptr.Delegate(graphics, image, dstx, dsty, dstwidth, dstheight, srcx, srcy, srcwidth, srcheight, srcunit, imageAttributes, callback, callbackdata); 1055 GdipDrawImageRectRectI_delegate(HandleRef graphics, HandleRef image, int dstx, int dsty, int dstwidth, int dstheight, int srcx, int srcy, int srcwidth, int srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata)1056 private delegate int GdipDrawImageRectRectI_delegate(HandleRef graphics, HandleRef image, int dstx, int dsty, int dstwidth, int dstheight, int srcx, int srcy, int srcwidth, int srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata); 1057 private static FunctionWrapper<GdipDrawImageRectRectI_delegate> GdipDrawImageRectRectI_ptr; GdipDrawImageRectRectI(HandleRef graphics, HandleRef image, int dstx, int dsty, int dstwidth, int dstheight, int srcx, int srcy, int srcwidth, int srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata)1058 internal static int GdipDrawImageRectRectI(HandleRef graphics, HandleRef image, int dstx, int dsty, int dstwidth, int dstheight, int srcx, int srcy, int srcwidth, int srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata) => GdipDrawImageRectRectI_ptr.Delegate(graphics, image, dstx, dsty, dstwidth, dstheight, srcx, srcy, srcwidth, srcheight, srcunit, imageAttributes, callback, callbackdata); 1059 GdipDrawImagePointsRect_delegate(HandleRef graphics, HandleRef image, HandleRef points, int count, float srcx, float srcy, float srcwidth, float srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata)1060 private delegate int GdipDrawImagePointsRect_delegate(HandleRef graphics, HandleRef image, HandleRef points, int count, float srcx, float srcy, float srcwidth, float srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata); 1061 private static FunctionWrapper<GdipDrawImagePointsRect_delegate> GdipDrawImagePointsRect_ptr; GdipDrawImagePointsRect(HandleRef graphics, HandleRef image, HandleRef points, int count, float srcx, float srcy, float srcwidth, float srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata)1062 internal static int GdipDrawImagePointsRect(HandleRef graphics, HandleRef image, HandleRef points, int count, float srcx, float srcy, float srcwidth, float srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata) => GdipDrawImagePointsRect_ptr.Delegate(graphics, image, points, count, srcx, srcy, srcwidth, srcheight, srcunit, imageAttributes, callback, callbackdata); 1063 GdipDrawImagePointsRectI_delegate(HandleRef graphics, HandleRef image, HandleRef points, int count, int srcx, int srcy, int srcwidth, int srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata)1064 private delegate int GdipDrawImagePointsRectI_delegate(HandleRef graphics, HandleRef image, HandleRef points, int count, int srcx, int srcy, int srcwidth, int srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata); 1065 private static FunctionWrapper<GdipDrawImagePointsRectI_delegate> GdipDrawImagePointsRectI_ptr; GdipDrawImagePointsRectI(HandleRef graphics, HandleRef image, HandleRef points, int count, int srcx, int srcy, int srcwidth, int srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata)1066 internal static int GdipDrawImagePointsRectI(HandleRef graphics, HandleRef image, HandleRef points, int count, int srcx, int srcy, int srcwidth, int srcheight, int srcunit, HandleRef imageAttributes, Graphics.DrawImageAbort callback, HandleRef callbackdata) => GdipDrawImagePointsRectI_ptr.Delegate(graphics, image, points, count, srcx, srcy, srcwidth, srcheight, srcunit, imageAttributes, callback, callbackdata); 1067 GdipEnumerateMetafileDestPoint_delegate(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1068 private delegate int GdipEnumerateMetafileDestPoint_delegate(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1069 private static FunctionWrapper<GdipEnumerateMetafileDestPoint_delegate> GdipEnumerateMetafileDestPoint_ptr; GdipEnumerateMetafileDestPoint(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1070 internal static int GdipEnumerateMetafileDestPoint(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileDestPoint_ptr.Delegate(graphics, metafile, destPoint, callback, callbackdata, imageattributes); 1071 GdipEnumerateMetafileDestPointI_delegate(HandleRef graphics, HandleRef metafile, GPPOINT destPoint, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1072 private delegate int GdipEnumerateMetafileDestPointI_delegate(HandleRef graphics, HandleRef metafile, GPPOINT destPoint, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1073 private static FunctionWrapper<GdipEnumerateMetafileDestPointI_delegate> GdipEnumerateMetafileDestPointI_ptr; GdipEnumerateMetafileDestPointI(HandleRef graphics, HandleRef metafile, GPPOINT destPoint, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1074 internal static int GdipEnumerateMetafileDestPointI(HandleRef graphics, HandleRef metafile, GPPOINT destPoint, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileDestPointI_ptr.Delegate(graphics, metafile, destPoint, callback, callbackdata, imageattributes); 1075 GdipEnumerateMetafileDestRect_delegate(HandleRef graphics, HandleRef metafile, ref GPRECTF destRect, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1076 private delegate int GdipEnumerateMetafileDestRect_delegate(HandleRef graphics, HandleRef metafile, ref GPRECTF destRect, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1077 private static FunctionWrapper<GdipEnumerateMetafileDestRect_delegate> GdipEnumerateMetafileDestRect_ptr; GdipEnumerateMetafileDestRect(HandleRef graphics, HandleRef metafile, ref GPRECTF destRect, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1078 internal static int GdipEnumerateMetafileDestRect(HandleRef graphics, HandleRef metafile, ref GPRECTF destRect, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileDestRect_ptr.Delegate(graphics, metafile, ref destRect, callback, callbackdata, imageattributes); 1079 GdipEnumerateMetafileDestRectI_delegate(HandleRef graphics, HandleRef metafile, ref GPRECT destRect, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1080 private delegate int GdipEnumerateMetafileDestRectI_delegate(HandleRef graphics, HandleRef metafile, ref GPRECT destRect, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1081 private static FunctionWrapper<GdipEnumerateMetafileDestRectI_delegate> GdipEnumerateMetafileDestRectI_ptr; GdipEnumerateMetafileDestRectI(HandleRef graphics, HandleRef metafile, ref GPRECT destRect, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1082 internal static int GdipEnumerateMetafileDestRectI(HandleRef graphics, HandleRef metafile, ref GPRECT destRect, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileDestRectI_ptr.Delegate(graphics, metafile, ref destRect, callback, callbackdata, imageattributes); 1083 GdipEnumerateMetafileDestPoints_delegate(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1084 private delegate int GdipEnumerateMetafileDestPoints_delegate(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1085 private static FunctionWrapper<GdipEnumerateMetafileDestPoints_delegate> GdipEnumerateMetafileDestPoints_ptr; GdipEnumerateMetafileDestPoints(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1086 internal static int GdipEnumerateMetafileDestPoints(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileDestPoints_ptr.Delegate(graphics, metafile, destPoints, count, callback, callbackdata, imageattributes); 1087 GdipEnumerateMetafileDestPointsI_delegate(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1088 private delegate int GdipEnumerateMetafileDestPointsI_delegate(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1089 private static FunctionWrapper<GdipEnumerateMetafileDestPointsI_delegate> GdipEnumerateMetafileDestPointsI_ptr; GdipEnumerateMetafileDestPointsI(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1090 internal static int GdipEnumerateMetafileDestPointsI(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileDestPointsI_ptr.Delegate(graphics, metafile, destPoints, count, callback, callbackdata, imageattributes); 1091 GdipEnumerateMetafileSrcRectDestPoint_delegate(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1092 private delegate int GdipEnumerateMetafileSrcRectDestPoint_delegate(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1093 private static FunctionWrapper<GdipEnumerateMetafileSrcRectDestPoint_delegate> GdipEnumerateMetafileSrcRectDestPoint_ptr; GdipEnumerateMetafileSrcRectDestPoint(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1094 internal static int GdipEnumerateMetafileSrcRectDestPoint(HandleRef graphics, HandleRef metafile, GPPOINTF destPoint, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileSrcRectDestPoint_ptr.Delegate(graphics, metafile, destPoint, ref srcRect, pageUnit, callback, callbackdata, imageattributes); 1095 GdipEnumerateMetafileSrcRectDestPointI_delegate(HandleRef graphics, HandleRef metafile, GPPOINT destPoint, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1096 private delegate int GdipEnumerateMetafileSrcRectDestPointI_delegate(HandleRef graphics, HandleRef metafile, GPPOINT destPoint, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1097 private static FunctionWrapper<GdipEnumerateMetafileSrcRectDestPointI_delegate> GdipEnumerateMetafileSrcRectDestPointI_ptr; GdipEnumerateMetafileSrcRectDestPointI(HandleRef graphics, HandleRef metafile, GPPOINT destPoint, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1098 internal static int GdipEnumerateMetafileSrcRectDestPointI(HandleRef graphics, HandleRef metafile, GPPOINT destPoint, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileSrcRectDestPointI_ptr.Delegate(graphics, metafile, destPoint, ref srcRect, pageUnit, callback, callbackdata, imageattributes); 1099 GdipEnumerateMetafileSrcRectDestRect_delegate(HandleRef graphics, HandleRef metafile, ref GPRECTF destRect, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1100 private delegate int GdipEnumerateMetafileSrcRectDestRect_delegate(HandleRef graphics, HandleRef metafile, ref GPRECTF destRect, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1101 private static FunctionWrapper<GdipEnumerateMetafileSrcRectDestRect_delegate> GdipEnumerateMetafileSrcRectDestRect_ptr; GdipEnumerateMetafileSrcRectDestRect(HandleRef graphics, HandleRef metafile, ref GPRECTF destRect, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1102 internal static int GdipEnumerateMetafileSrcRectDestRect(HandleRef graphics, HandleRef metafile, ref GPRECTF destRect, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileSrcRectDestRect_ptr.Delegate(graphics, metafile, ref destRect, ref srcRect, pageUnit, callback, callbackdata, imageattributes); 1103 GdipEnumerateMetafileSrcRectDestRectI_delegate(HandleRef graphics, HandleRef metafile, ref GPRECT destRect, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1104 private delegate int GdipEnumerateMetafileSrcRectDestRectI_delegate(HandleRef graphics, HandleRef metafile, ref GPRECT destRect, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1105 private static FunctionWrapper<GdipEnumerateMetafileSrcRectDestRectI_delegate> GdipEnumerateMetafileSrcRectDestRectI_ptr; GdipEnumerateMetafileSrcRectDestRectI(HandleRef graphics, HandleRef metafile, ref GPRECT destRect, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1106 internal static int GdipEnumerateMetafileSrcRectDestRectI(HandleRef graphics, HandleRef metafile, ref GPRECT destRect, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileSrcRectDestRectI_ptr.Delegate(graphics, metafile, ref destRect, ref srcRect, pageUnit, callback, callbackdata, imageattributes); 1107 GdipEnumerateMetafileSrcRectDestPoints_delegate(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1108 private delegate int GdipEnumerateMetafileSrcRectDestPoints_delegate(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1109 private static FunctionWrapper<GdipEnumerateMetafileSrcRectDestPoints_delegate> GdipEnumerateMetafileSrcRectDestPoints_ptr; GdipEnumerateMetafileSrcRectDestPoints(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1110 internal static int GdipEnumerateMetafileSrcRectDestPoints(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, ref GPRECTF srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileSrcRectDestPoints_ptr.Delegate(graphics, metafile, destPoints, count, ref srcRect, pageUnit, callback, callbackdata, imageattributes); 1111 GdipEnumerateMetafileSrcRectDestPointsI_delegate(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1112 private delegate int GdipEnumerateMetafileSrcRectDestPointsI_delegate(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes); 1113 private static FunctionWrapper<GdipEnumerateMetafileSrcRectDestPointsI_delegate> GdipEnumerateMetafileSrcRectDestPointsI_ptr; GdipEnumerateMetafileSrcRectDestPointsI(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes)1114 internal static int GdipEnumerateMetafileSrcRectDestPointsI(HandleRef graphics, HandleRef metafile, IntPtr destPoints, int count, ref GPRECT srcRect, int pageUnit, Graphics.EnumerateMetafileProc callback, HandleRef callbackdata, HandleRef imageattributes) => GdipEnumerateMetafileSrcRectDestPointsI_ptr.Delegate(graphics, metafile, destPoints, count, ref srcRect, pageUnit, callback, callbackdata, imageattributes); 1115 GdipPlayMetafileRecord_delegate(HandleRef graphics, EmfPlusRecordType recordType, int flags, int dataSize, byte[] data)1116 private delegate int GdipPlayMetafileRecord_delegate(HandleRef graphics, EmfPlusRecordType recordType, int flags, int dataSize, byte[] data); 1117 private static FunctionWrapper<GdipPlayMetafileRecord_delegate> GdipPlayMetafileRecord_ptr; GdipPlayMetafileRecord(HandleRef graphics, EmfPlusRecordType recordType, int flags, int dataSize, byte[] data)1118 internal static int GdipPlayMetafileRecord(HandleRef graphics, EmfPlusRecordType recordType, int flags, int dataSize, byte[] data) => GdipPlayMetafileRecord_ptr.Delegate(graphics, recordType, flags, dataSize, data); 1119 GdipSaveGraphics_delegate(HandleRef graphics, out int state)1120 private delegate int GdipSaveGraphics_delegate(HandleRef graphics, out int state); 1121 private static FunctionWrapper<GdipSaveGraphics_delegate> GdipSaveGraphics_ptr; GdipSaveGraphics(HandleRef graphics, out int state)1122 internal static int GdipSaveGraphics(HandleRef graphics, out int state) => GdipSaveGraphics_ptr.Delegate(graphics, out state); 1123 GdipRestoreGraphics_delegate(HandleRef graphics, int state)1124 private delegate int GdipRestoreGraphics_delegate(HandleRef graphics, int state); 1125 private static FunctionWrapper<GdipRestoreGraphics_delegate> GdipRestoreGraphics_ptr; GdipRestoreGraphics(HandleRef graphics, int state)1126 internal static int GdipRestoreGraphics(HandleRef graphics, int state) => GdipRestoreGraphics_ptr.Delegate(graphics, state); 1127 GdipGetMetafileHeaderFromWmf_delegate(HandleRef hMetafile, WmfPlaceableFileHeader wmfplaceable, [In] [Out] MetafileHeaderWmf metafileHeaderWmf)1128 private delegate int GdipGetMetafileHeaderFromWmf_delegate(HandleRef hMetafile, WmfPlaceableFileHeader wmfplaceable, [In] [Out] MetafileHeaderWmf metafileHeaderWmf); 1129 private static FunctionWrapper<GdipGetMetafileHeaderFromWmf_delegate> GdipGetMetafileHeaderFromWmf_ptr; GdipGetMetafileHeaderFromWmf(HandleRef hMetafile, WmfPlaceableFileHeader wmfplaceable, [In] [Out] MetafileHeaderWmf metafileHeaderWmf)1130 internal static int GdipGetMetafileHeaderFromWmf(HandleRef hMetafile, WmfPlaceableFileHeader wmfplaceable, [In] [Out] MetafileHeaderWmf metafileHeaderWmf) => GdipGetMetafileHeaderFromWmf_ptr.Delegate(hMetafile, wmfplaceable, metafileHeaderWmf); 1131 GdipGetMetafileHeaderFromEmf_delegate(HandleRef hEnhMetafile, [In] [Out] MetafileHeaderEmf metafileHeaderEmf)1132 private delegate int GdipGetMetafileHeaderFromEmf_delegate(HandleRef hEnhMetafile, [In] [Out] MetafileHeaderEmf metafileHeaderEmf); 1133 private static FunctionWrapper<GdipGetMetafileHeaderFromEmf_delegate> GdipGetMetafileHeaderFromEmf_ptr; GdipGetMetafileHeaderFromEmf(HandleRef hEnhMetafile, [In] [Out] MetafileHeaderEmf metafileHeaderEmf)1134 internal static int GdipGetMetafileHeaderFromEmf(HandleRef hEnhMetafile, [In] [Out] MetafileHeaderEmf metafileHeaderEmf) => GdipGetMetafileHeaderFromEmf_ptr.Delegate(hEnhMetafile, metafileHeaderEmf); 1135 GdipGetMetafileHeaderFromFile_delegate([MarshalAs(UnmanagedType.LPWStr)]string filename, IntPtr header)1136 private delegate int GdipGetMetafileHeaderFromFile_delegate([MarshalAs(UnmanagedType.LPWStr)]string filename, IntPtr header); 1137 private static FunctionWrapper<GdipGetMetafileHeaderFromFile_delegate> GdipGetMetafileHeaderFromFile_ptr; GdipGetMetafileHeaderFromFile(string filename, IntPtr header)1138 internal static int GdipGetMetafileHeaderFromFile(string filename, IntPtr header) => GdipGetMetafileHeaderFromFile_ptr.Delegate(filename, header); 1139 GdipGetMetafileHeaderFromStream_delegate(UnsafeNativeMethods.IStream stream, IntPtr header)1140 private delegate int GdipGetMetafileHeaderFromStream_delegate(UnsafeNativeMethods.IStream stream, IntPtr header); 1141 private static FunctionWrapper<GdipGetMetafileHeaderFromStream_delegate> GdipGetMetafileHeaderFromStream_ptr; GdipGetMetafileHeaderFromStream(UnsafeNativeMethods.IStream stream, IntPtr header)1142 internal static int GdipGetMetafileHeaderFromStream(UnsafeNativeMethods.IStream stream, IntPtr header) => GdipGetMetafileHeaderFromStream_ptr.Delegate(stream, header); 1143 GdipGetMetafileHeaderFromMetafile_delegate(HandleRef metafile, IntPtr header)1144 private delegate int GdipGetMetafileHeaderFromMetafile_delegate(HandleRef metafile, IntPtr header); 1145 private static FunctionWrapper<GdipGetMetafileHeaderFromMetafile_delegate> GdipGetMetafileHeaderFromMetafile_ptr; GdipGetMetafileHeaderFromMetafile(HandleRef metafile, IntPtr header)1146 internal static int GdipGetMetafileHeaderFromMetafile(HandleRef metafile, IntPtr header) => GdipGetMetafileHeaderFromMetafile_ptr.Delegate(metafile, header); 1147 GdipGetHemfFromMetafile_delegate(HandleRef metafile, out IntPtr hEnhMetafile)1148 private delegate int GdipGetHemfFromMetafile_delegate(HandleRef metafile, out IntPtr hEnhMetafile); 1149 private static FunctionWrapper<GdipGetHemfFromMetafile_delegate> GdipGetHemfFromMetafile_ptr; GdipGetHemfFromMetafile(HandleRef metafile, out IntPtr hEnhMetafile)1150 internal static int GdipGetHemfFromMetafile(HandleRef metafile, out IntPtr hEnhMetafile) => GdipGetHemfFromMetafile_ptr.Delegate(metafile, out hEnhMetafile); 1151 GdipCreateMetafileFromWmf_delegate(HandleRef hMetafile, [MarshalAs(UnmanagedType.Bool)]bool deleteWmf, WmfPlaceableFileHeader wmfplacealbeHeader, out IntPtr metafile)1152 private delegate int GdipCreateMetafileFromWmf_delegate(HandleRef hMetafile, [MarshalAs(UnmanagedType.Bool)]bool deleteWmf, WmfPlaceableFileHeader wmfplacealbeHeader, out IntPtr metafile); 1153 private static FunctionWrapper<GdipCreateMetafileFromWmf_delegate> GdipCreateMetafileFromWmf_ptr; GdipCreateMetafileFromWmf(HandleRef hMetafile, bool deleteWmf, WmfPlaceableFileHeader wmfplacealbeHeader, out IntPtr metafile)1154 internal static int GdipCreateMetafileFromWmf(HandleRef hMetafile, bool deleteWmf, WmfPlaceableFileHeader wmfplacealbeHeader, out IntPtr metafile) => GdipCreateMetafileFromWmf_ptr.Delegate(hMetafile, deleteWmf, wmfplacealbeHeader, out metafile); 1155 GdipCreateMetafileFromEmf_delegate(HandleRef hEnhMetafile, bool deleteEmf, out IntPtr metafile)1156 private delegate int GdipCreateMetafileFromEmf_delegate(HandleRef hEnhMetafile, bool deleteEmf, out IntPtr metafile); 1157 private static FunctionWrapper<GdipCreateMetafileFromEmf_delegate> GdipCreateMetafileFromEmf_ptr; GdipCreateMetafileFromEmf(HandleRef hEnhMetafile, bool deleteEmf, out IntPtr metafile)1158 internal static int GdipCreateMetafileFromEmf(HandleRef hEnhMetafile, bool deleteEmf, out IntPtr metafile) => GdipCreateMetafileFromEmf_ptr.Delegate(hEnhMetafile, deleteEmf, out metafile); 1159 GdipCreateMetafileFromFile_delegate([MarshalAs(UnmanagedType.LPWStr)]string file, out IntPtr metafile)1160 private delegate int GdipCreateMetafileFromFile_delegate([MarshalAs(UnmanagedType.LPWStr)]string file, out IntPtr metafile); 1161 private static FunctionWrapper<GdipCreateMetafileFromFile_delegate> GdipCreateMetafileFromFile_ptr; GdipCreateMetafileFromFile(string file, out IntPtr metafile)1162 internal static int GdipCreateMetafileFromFile(string file, out IntPtr metafile) => GdipCreateMetafileFromFile_ptr.Delegate(file, out metafile); 1163 GdipCreateMetafileFromStream_delegate(UnsafeNativeMethods.IStream stream, out IntPtr metafile)1164 private delegate int GdipCreateMetafileFromStream_delegate(UnsafeNativeMethods.IStream stream, out IntPtr metafile); 1165 private static FunctionWrapper<GdipCreateMetafileFromStream_delegate> GdipCreateMetafileFromStream_ptr; GdipCreateMetafileFromStream(UnsafeNativeMethods.IStream stream, out IntPtr metafile)1166 internal static int GdipCreateMetafileFromStream(UnsafeNativeMethods.IStream stream, out IntPtr metafile) => GdipCreateMetafileFromStream_ptr.Delegate(stream, out metafile); 1167 GdipRecordMetafile_delegate(HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1168 private delegate int GdipRecordMetafile_delegate(HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1169 private static FunctionWrapper<GdipRecordMetafile_delegate> GdipRecordMetafile_ptr; GdipRecordMetafile(HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, string description, out IntPtr metafile)1170 internal static int GdipRecordMetafile(HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, string description, out IntPtr metafile) => GdipRecordMetafile_ptr.Delegate(referenceHdc, emfType, ref frameRect, frameUnit, description, out metafile); 1171 GdipRecordMetafile2_delegate(HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1172 private delegate int GdipRecordMetafile2_delegate(HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1173 private static FunctionWrapper<GdipRecordMetafile2_delegate> GdipRecordMetafile2_ptr; GdipRecordMetafile(HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, string description, out IntPtr metafile)1174 internal static int GdipRecordMetafile(HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, string description, out IntPtr metafile) => GdipRecordMetafile2_ptr.Delegate(referenceHdc, emfType, pframeRect, frameUnit, description, out metafile); 1175 GdipRecordMetafileI_delegate(HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1176 private delegate int GdipRecordMetafileI_delegate(HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1177 private static FunctionWrapper<GdipRecordMetafileI_delegate> GdipRecordMetafileI_ptr; GdipRecordMetafileI(HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, string description, out IntPtr metafile)1178 internal static int GdipRecordMetafileI(HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, string description, out IntPtr metafile) => GdipRecordMetafileI_ptr.Delegate(referenceHdc, emfType, ref frameRect, frameUnit, description, out metafile); 1179 GdipRecordMetafileFileName_delegate([MarshalAs(UnmanagedType.LPWStr)]string fileName, HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1180 private delegate int GdipRecordMetafileFileName_delegate([MarshalAs(UnmanagedType.LPWStr)]string fileName, HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1181 private static FunctionWrapper<GdipRecordMetafileFileName_delegate> GdipRecordMetafileFileName_ptr; GdipRecordMetafileFileName(string fileName, HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, string description, out IntPtr metafile)1182 internal static int GdipRecordMetafileFileName(string fileName, HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, string description, out IntPtr metafile) => GdipRecordMetafileFileName_ptr.Delegate(fileName, referenceHdc, emfType, ref frameRect, frameUnit, description, out metafile); 1183 GdipRecordMetafileFileName2_delegate([MarshalAs(UnmanagedType.LPWStr)]string fileName, HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1184 private delegate int GdipRecordMetafileFileName2_delegate([MarshalAs(UnmanagedType.LPWStr)]string fileName, HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1185 private static FunctionWrapper<GdipRecordMetafileFileName2_delegate> GdipRecordMetafileFileName2_ptr; GdipRecordMetafileFileName(string fileName, HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, string description, out IntPtr metafile)1186 internal static int GdipRecordMetafileFileName(string fileName, HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, string description, out IntPtr metafile) => GdipRecordMetafileFileName2_ptr.Delegate(fileName, referenceHdc, emfType, pframeRect, frameUnit, description, out metafile); 1187 GdipRecordMetafileFileNameI_delegate([MarshalAs(UnmanagedType.LPWStr)]string fileName, HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1188 private delegate int GdipRecordMetafileFileNameI_delegate([MarshalAs(UnmanagedType.LPWStr)]string fileName, HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1189 private static FunctionWrapper<GdipRecordMetafileFileNameI_delegate> GdipRecordMetafileFileNameI_ptr; GdipRecordMetafileFileNameI(string fileName, HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, string description, out IntPtr metafile)1190 internal static int GdipRecordMetafileFileNameI(string fileName, HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, string description, out IntPtr metafile) => GdipRecordMetafileFileNameI_ptr.Delegate(fileName, referenceHdc, emfType, ref frameRect, frameUnit, description, out metafile); 1191 GdipRecordMetafileStream_delegate(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1192 private delegate int GdipRecordMetafileStream_delegate(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1193 private static FunctionWrapper<GdipRecordMetafileStream_delegate> GdipRecordMetafileStream_ptr; GdipRecordMetafileStream(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1194 internal static int GdipRecordMetafileStream(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, ref GPRECTF frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile) => GdipRecordMetafileStream_ptr.Delegate(stream, referenceHdc, emfType, ref frameRect, frameUnit, description, out metafile); 1195 GdipRecordMetafileStream2_delegate(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1196 private delegate int GdipRecordMetafileStream2_delegate(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1197 private static FunctionWrapper<GdipRecordMetafileStream2_delegate> GdipRecordMetafileStream2_ptr; GdipRecordMetafileStream(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, string description, out IntPtr metafile)1198 internal static int GdipRecordMetafileStream(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, HandleRef pframeRect, int frameUnit, string description, out IntPtr metafile) => GdipRecordMetafileStream2_ptr.Delegate(stream, referenceHdc, emfType, pframeRect, frameUnit, description, out metafile); 1199 GdipRecordMetafileStreamI_delegate(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile)1200 private delegate int GdipRecordMetafileStreamI_delegate(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, [MarshalAs(UnmanagedType.LPWStr)]string description, out IntPtr metafile); 1201 private static FunctionWrapper<GdipRecordMetafileStreamI_delegate> GdipRecordMetafileStreamI_ptr; GdipRecordMetafileStreamI(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, string description, out IntPtr metafile)1202 internal static int GdipRecordMetafileStreamI(UnsafeNativeMethods.IStream stream, HandleRef referenceHdc, int emfType, ref GPRECT frameRect, int frameUnit, string description, out IntPtr metafile) => GdipRecordMetafileStreamI_ptr.Delegate(stream, referenceHdc, emfType, ref frameRect, frameUnit, description, out metafile); 1203 GdipComment_delegate(HandleRef graphics, int sizeData, byte[] data)1204 private delegate int GdipComment_delegate(HandleRef graphics, int sizeData, byte[] data); 1205 private static FunctionWrapper<GdipComment_delegate> GdipComment_ptr; GdipComment(HandleRef graphics, int sizeData, byte[] data)1206 internal static int GdipComment(HandleRef graphics, int sizeData, byte[] data) => GdipComment_ptr.Delegate(graphics, sizeData, data); 1207 GdipCreateFontFromDC_delegate(HandleRef hdc, ref IntPtr font)1208 private delegate int GdipCreateFontFromDC_delegate(HandleRef hdc, ref IntPtr font); 1209 private static FunctionWrapper<GdipCreateFontFromDC_delegate> GdipCreateFontFromDC_ptr; GdipCreateFontFromDC(HandleRef hdc, ref IntPtr font)1210 internal static int GdipCreateFontFromDC(HandleRef hdc, ref IntPtr font) => GdipCreateFontFromDC_ptr.Delegate(hdc, ref font); 1211 1212 #pragma warning disable CS0618 // Legacy code: We don't care about using obsolete API's. GdipCreateFontFromLogfontW_delegate(HandleRef hdc, [In] [Out] [MarshalAs(UnmanagedType.AsAny)]object lf, out IntPtr font)1213 private delegate int GdipCreateFontFromLogfontW_delegate(HandleRef hdc, [In] [Out] [MarshalAs(UnmanagedType.AsAny)]object lf, out IntPtr font); 1214 #pragma warning restore CS0618 1215 private static FunctionWrapper<GdipCreateFontFromLogfontW_delegate> GdipCreateFontFromLogfontW_ptr; GdipCreateFontFromLogfontW(HandleRef hdc, [In] [Out] object lf, out IntPtr font)1216 internal static int GdipCreateFontFromLogfontW(HandleRef hdc, [In] [Out] object lf, out IntPtr font) => GdipCreateFontFromLogfontW_ptr.Delegate(hdc, lf, out font); 1217 GdipCreateFont_delegate(HandleRef fontFamily, float emSize, FontStyle style, GraphicsUnit unit, out IntPtr font)1218 private delegate int GdipCreateFont_delegate(HandleRef fontFamily, float emSize, FontStyle style, GraphicsUnit unit, out IntPtr font); 1219 private static FunctionWrapper<GdipCreateFont_delegate> GdipCreateFont_ptr; GdipCreateFont(HandleRef fontFamily, float emSize, FontStyle style, GraphicsUnit unit, out IntPtr font)1220 internal static int GdipCreateFont(HandleRef fontFamily, float emSize, FontStyle style, GraphicsUnit unit, out IntPtr font) => GdipCreateFont_ptr.Delegate(fontFamily, emSize, style, unit, out font); 1221 1222 #pragma warning disable CS0618 // Legacy code: We don't care about using obsolete API's. GdipGetLogFontW_delegate(HandleRef font, HandleRef graphics, [In] [Out] [MarshalAs(UnmanagedType.AsAny)]object lf)1223 private delegate int GdipGetLogFontW_delegate(HandleRef font, HandleRef graphics, [In] [Out] [MarshalAs(UnmanagedType.AsAny)]object lf); 1224 #pragma warning restore CS0618 1225 private static FunctionWrapper<GdipGetLogFontW_delegate> GdipGetLogFontW_ptr; GdipGetLogFontW(HandleRef font, HandleRef graphics, [In] [Out] object lf)1226 internal static int GdipGetLogFontW(HandleRef font, HandleRef graphics, [In] [Out] object lf) => GdipGetLogFontW_ptr.Delegate(font, graphics, lf); 1227 GdipCloneFont_delegate(HandleRef font, out IntPtr cloneFont)1228 private delegate int GdipCloneFont_delegate(HandleRef font, out IntPtr cloneFont); 1229 private static FunctionWrapper<GdipCloneFont_delegate> GdipCloneFont_ptr; GdipCloneFont(HandleRef font, out IntPtr cloneFont)1230 internal static int GdipCloneFont(HandleRef font, out IntPtr cloneFont) => GdipCloneFont_ptr.Delegate(font, out cloneFont); 1231 GdipDeleteFont_delegate(HandleRef font)1232 private delegate int GdipDeleteFont_delegate(HandleRef font); 1233 private static FunctionWrapper<GdipDeleteFont_delegate> GdipDeleteFont_ptr; 1234 internal static int IntGdipDeleteFont(HandleRef font) => GdipDeleteFont_ptr.Delegate(font); 1235 GdipGetFamily_delegate(HandleRef font, out IntPtr family)1236 private delegate int GdipGetFamily_delegate(HandleRef font, out IntPtr family); 1237 private static FunctionWrapper<GdipGetFamily_delegate> GdipGetFamily_ptr; GdipGetFamily(HandleRef font, out IntPtr family)1238 internal static int GdipGetFamily(HandleRef font, out IntPtr family) => GdipGetFamily_ptr.Delegate(font, out family); 1239 GdipGetFontStyle_delegate(HandleRef font, out FontStyle style)1240 private delegate int GdipGetFontStyle_delegate(HandleRef font, out FontStyle style); 1241 private static FunctionWrapper<GdipGetFontStyle_delegate> GdipGetFontStyle_ptr; GdipGetFontStyle(HandleRef font, out FontStyle style)1242 internal static int GdipGetFontStyle(HandleRef font, out FontStyle style) => GdipGetFontStyle_ptr.Delegate(font, out style); 1243 GdipGetFontSize_delegate(HandleRef font, out float size)1244 private delegate int GdipGetFontSize_delegate(HandleRef font, out float size); 1245 private static FunctionWrapper<GdipGetFontSize_delegate> GdipGetFontSize_ptr; GdipGetFontSize(HandleRef font, out float size)1246 internal static int GdipGetFontSize(HandleRef font, out float size) => GdipGetFontSize_ptr.Delegate(font, out size); 1247 GdipGetFontHeight_delegate(HandleRef font, HandleRef graphics, out float size)1248 private delegate int GdipGetFontHeight_delegate(HandleRef font, HandleRef graphics, out float size); 1249 private static FunctionWrapper<GdipGetFontHeight_delegate> GdipGetFontHeight_ptr; GdipGetFontHeight(HandleRef font, HandleRef graphics, out float size)1250 internal static int GdipGetFontHeight(HandleRef font, HandleRef graphics, out float size) => GdipGetFontHeight_ptr.Delegate(font, graphics, out size); 1251 GdipGetFontHeightGivenDPI_delegate(HandleRef font, float dpi, out float size)1252 private delegate int GdipGetFontHeightGivenDPI_delegate(HandleRef font, float dpi, out float size); 1253 private static FunctionWrapper<GdipGetFontHeightGivenDPI_delegate> GdipGetFontHeightGivenDPI_ptr; GdipGetFontHeightGivenDPI(HandleRef font, float dpi, out float size)1254 internal static int GdipGetFontHeightGivenDPI(HandleRef font, float dpi, out float size) => GdipGetFontHeightGivenDPI_ptr.Delegate(font, dpi, out size); 1255 GdipGetFontUnit_delegate(HandleRef font, out GraphicsUnit unit)1256 private delegate int GdipGetFontUnit_delegate(HandleRef font, out GraphicsUnit unit); 1257 private static FunctionWrapper<GdipGetFontUnit_delegate> GdipGetFontUnit_ptr; GdipGetFontUnit(HandleRef font, out GraphicsUnit unit)1258 internal static int GdipGetFontUnit(HandleRef font, out GraphicsUnit unit) => GdipGetFontUnit_ptr.Delegate(font, out unit); 1259 GdipDrawString_delegate(HandleRef graphics, [MarshalAs(UnmanagedType.LPWStr)]string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, HandleRef brush)1260 private delegate int GdipDrawString_delegate(HandleRef graphics, [MarshalAs(UnmanagedType.LPWStr)]string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, HandleRef brush); 1261 private static FunctionWrapper<GdipDrawString_delegate> GdipDrawString_ptr; GdipDrawString(HandleRef graphics, string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, HandleRef brush)1262 internal static int GdipDrawString(HandleRef graphics, string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, HandleRef brush) => GdipDrawString_ptr.Delegate(graphics, textString, length, font, ref layoutRect, stringFormat, brush); 1263 GdipMeasureString_delegate(HandleRef graphics, [MarshalAs(UnmanagedType.LPWStr)]string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, ref GPRECTF boundingBox, out int codepointsFitted, out int linesFilled)1264 private delegate int GdipMeasureString_delegate(HandleRef graphics, [MarshalAs(UnmanagedType.LPWStr)]string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, ref GPRECTF boundingBox, out int codepointsFitted, out int linesFilled); 1265 private static FunctionWrapper<GdipMeasureString_delegate> GdipMeasureString_ptr; GdipMeasureString(HandleRef graphics, string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, ref GPRECTF boundingBox, out int codepointsFitted, out int linesFilled)1266 internal static int GdipMeasureString(HandleRef graphics, string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, ref GPRECTF boundingBox, out int codepointsFitted, out int linesFilled) => GdipMeasureString_ptr.Delegate(graphics, textString, length, font, ref layoutRect, stringFormat, ref boundingBox, out codepointsFitted, out linesFilled); 1267 GdipMeasureCharacterRanges_delegate(HandleRef graphics, [MarshalAs(UnmanagedType.LPWStr)]string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, int characterCount, [In] [Out] IntPtr[] region)1268 private delegate int GdipMeasureCharacterRanges_delegate(HandleRef graphics, [MarshalAs(UnmanagedType.LPWStr)]string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, int characterCount, [In] [Out] IntPtr[] region); 1269 private static FunctionWrapper<GdipMeasureCharacterRanges_delegate> GdipMeasureCharacterRanges_ptr; GdipMeasureCharacterRanges(HandleRef graphics, string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, int characterCount, [In] [Out] IntPtr[] region)1270 internal static int GdipMeasureCharacterRanges(HandleRef graphics, string textString, int length, HandleRef font, ref GPRECTF layoutRect, HandleRef stringFormat, int characterCount, [In] [Out] IntPtr[] region) => GdipMeasureCharacterRanges_ptr.Delegate(graphics, textString, length, font, ref layoutRect, stringFormat, characterCount, region); 1271 } 1272 } 1273 } 1274