394 references to ThrowIfFailed
System.Drawing.Common (381)
System\Drawing\Bitmap.cs (14)
43
status.
ThrowIfFailed
();
64
status.
ThrowIfFailed
();
93
PInvokeGdiPlus.GdipCreateBitmapFromGraphics(width, height, g.NativeGraphics, &bitmap).
ThrowIfFailed
();
101
PInvokeGdiPlus.GdipCreateBitmapFromScan0(width, height, stride, (int)format, (byte*)scan0, &bitmap).
ThrowIfFailed
();
108
PInvokeGdiPlus.GdipCreateBitmapFromScan0(width, height, 0, (int)format, null, &bitmap).
ThrowIfFailed
();
137
PInvokeGdiPlus.GdipCreateBitmapFromHICON((HICON)hicon, &bitmap).
ThrowIfFailed
();
147
PInvokeGdiPlus.GdipCreateBitmapFromResource((HINSTANCE)hinstance, bn, &bitmap).
ThrowIfFailed
();
182
PInvokeGdiPlus.GdipCreateHICONFromBitmap(this.Pointer(), &hicon).
ThrowIfFailed
();
310
PInvokeGdiPlus.GdipBitmapGetPixel(this.Pointer(), x, y, &color).
ThrowIfFailed
();
332
PInvokeGdiPlus.GdipBitmapSetPixel(this.Pointer(), x, y, (uint)color.ToArgb()).
ThrowIfFailed
();
338
PInvokeGdiPlus.GdipBitmapSetResolution(this.Pointer(), xDpi, yDpi).
ThrowIfFailed
();
380
auxDataSize: null).
ThrowIfFailed
();
461
alphaThresholdPercent).
ThrowIfFailed
();
474
alphaThresholdPercent).
ThrowIfFailed
();
System\Drawing\Drawing2D\AdjustableArrowCap.cs (9)
15
PInvokeGdiPlus.GdipCreateAdjustableArrowCap(height, width, isFilled, &nativeCap).
ThrowIfFailed
();
26
PInvokeGdiPlus.GdipGetAdjustableArrowCapHeight(NativeArrowCap, &height).
ThrowIfFailed
();
32
PInvokeGdiPlus.GdipSetAdjustableArrowCapHeight(NativeArrowCap, value).
ThrowIfFailed
();
42
PInvokeGdiPlus.GdipGetAdjustableArrowCapWidth(NativeArrowCap, &width).
ThrowIfFailed
();
48
PInvokeGdiPlus.GdipSetAdjustableArrowCapWidth(NativeArrowCap, value).
ThrowIfFailed
();
58
PInvokeGdiPlus.GdipGetAdjustableArrowCapMiddleInset(NativeArrowCap, &middleInset).
ThrowIfFailed
();
64
PInvokeGdiPlus.GdipSetAdjustableArrowCapMiddleInset(NativeArrowCap, value).
ThrowIfFailed
();
74
PInvokeGdiPlus.GdipGetAdjustableArrowCapFillState(NativeArrowCap, &isFilled).
ThrowIfFailed
();
80
PInvokeGdiPlus.GdipSetAdjustableArrowCapFillState(NativeArrowCap, value).
ThrowIfFailed
();
System\Drawing\Drawing2D\CustomLineCap.cs (12)
27
&lineCap).
ThrowIfFailed
();
94
PInvokeGdiPlus.GdipCloneCustomLineCap(_nativeCap, &clonedCap).
ThrowIfFailed
();
101
PInvokeGdiPlus.GdipSetCustomLineCapStrokeCaps(_nativeCap, (GdiPlus.LineCap)startCap, (GdiPlus.LineCap)endCap).
ThrowIfFailed
();
110
PInvokeGdiPlus.GdipGetCustomLineCapStrokeCaps(_nativeCap, (GdiPlus.LineCap*)sc, (GdiPlus.LineCap*)ec).
ThrowIfFailed
();
120
PInvokeGdiPlus.GdipGetCustomLineCapStrokeJoin(_nativeCap, (GdiPlus.LineJoin*)&lineJoin).
ThrowIfFailed
();
126
PInvokeGdiPlus.GdipSetCustomLineCapStrokeJoin(_nativeCap, (GdiPlus.LineJoin)value).
ThrowIfFailed
();
136
PInvokeGdiPlus.GdipGetCustomLineCapBaseCap(_nativeCap, (GdiPlus.LineCap*)&baseCap).
ThrowIfFailed
();
142
PInvokeGdiPlus.GdipSetCustomLineCapBaseCap(_nativeCap, (GdiPlus.LineCap)value).
ThrowIfFailed
();
152
PInvokeGdiPlus.GdipGetCustomLineCapBaseInset(_nativeCap, &inset).
ThrowIfFailed
();
158
PInvokeGdiPlus.GdipSetCustomLineCapBaseInset(_nativeCap, value).
ThrowIfFailed
();
168
PInvokeGdiPlus.GdipGetCustomLineCapWidthScale(_nativeCap, &widthScale).
ThrowIfFailed
();
174
PInvokeGdiPlus.GdipSetCustomLineCapWidthScale(_nativeCap, value).
ThrowIfFailed
();
System\Drawing\Drawing2D\GraphicsPath.cs (44)
22
PInvokeGdiPlus.GdipCreatePath((GdiPlus.FillMode)fillMode, &path).
ThrowIfFailed
();
52
PInvokeGdiPlus.GdipCreatePath2((GdiPlus.PointF*)p, t, types.Length, (GdiPlus.FillMode)fillMode, &path).
ThrowIfFailed
();
88
PInvokeGdiPlus.GdipCreatePath2I((GdiPlus.Point*)p, t, types.Length, (GdiPlus.FillMode)fillMode, &path).
ThrowIfFailed
();
96
PInvokeGdiPlus.GdipClonePath(_nativePath, &path).
ThrowIfFailed
();
144
PInvokeGdiPlus.GdipResetPath(_nativePath).
ThrowIfFailed
();
153
PInvokeGdiPlus.GdipGetPathFillMode(_nativePath, &fillMode).
ThrowIfFailed
();
162
PInvokeGdiPlus.GdipSetPathFillMode(_nativePath, (GdiPlus.FillMode)value).
ThrowIfFailed
();
192
PInvokeGdiPlus.GdipGetPathData(_nativePath, (GdiPlus.PathData*)&data).
ThrowIfFailed
();
208
PInvokeGdiPlus.GdipClosePathFigure(_nativePath).
ThrowIfFailed
();
214
PInvokeGdiPlus.GdipClosePathFigures(_nativePath).
ThrowIfFailed
();
220
PInvokeGdiPlus.GdipSetPathMarker(_nativePath).
ThrowIfFailed
();
226
PInvokeGdiPlus.GdipClearPathMarkers(_nativePath).
ThrowIfFailed
();
232
PInvokeGdiPlus.GdipReversePath(_nativePath).
ThrowIfFailed
();
255
&isVisible).
ThrowIfFailed
();
285
&isVisible).
ThrowIfFailed
();
307
PInvokeGdiPlus.GdipAddPathLine(_nativePath, x1, y1, x2, y2).
ThrowIfFailed
();
341
PInvokeGdiPlus.GdipAddPathLine2(_nativePath, (GdiPlus.PointF*)p, points.Length).
ThrowIfFailed
();
368
PInvokeGdiPlus.GdipAddPathLine2I(_nativePath, (GdiPlus.Point*)p, points.Length).
ThrowIfFailed
();
378
PInvokeGdiPlus.GdipAddPathArc(_nativePath, x, y, width, height, startAngle, sweepAngle).
ThrowIfFailed
();
393
PInvokeGdiPlus.GdipAddPathBezier(_nativePath, x1, y1, x2, y2, x3, y3, x4, y4).
ThrowIfFailed
();
413
PInvokeGdiPlus.GdipAddPathBeziers(_nativePath, (GdiPlus.PointF*)p, points.Length).
ThrowIfFailed
();
440
PInvokeGdiPlus.GdipAddPathBeziersI(_nativePath, (GdiPlus.Point*)p, points.Length).
ThrowIfFailed
();
475
tension).
ThrowIfFailed
();
500
tension).
ThrowIfFailed
();
523
tension).
ThrowIfFailed
();
548
tension).
ThrowIfFailed
();
575
PInvokeGdiPlus.GdipAddPathClosedCurve2(_nativePath, (GdiPlus.PointF*)p, points.Length, tension).
ThrowIfFailed
();
605
PInvokeGdiPlus.GdipAddPathClosedCurve2I(_nativePath, (GdiPlus.Point*)p, points.Length, tension).
ThrowIfFailed
();
614
rect.X, rect.Y, rect.Width, rect.Height).
ThrowIfFailed
();
634
PInvokeGdiPlus.GdipAddPathRectangles(_nativePath, (RectF*)r, rects.Length).
ThrowIfFailed
();
654
PInvokeGdiPlus.GdipAddPathRectanglesI(_nativePath, (Rect*)r, rects.Length).
ThrowIfFailed
();
705
PInvokeGdiPlus.GdipAddPathEllipse(_nativePath, x, y, width, height).
ThrowIfFailed
();
722
sweepAngle).
ThrowIfFailed
();
743
PInvokeGdiPlus.GdipAddPathPolygon(_nativePath, (GdiPlus.PointF*)p, points.Length).
ThrowIfFailed
();
764
PInvokeGdiPlus.GdipAddPathPolygonI(_nativePath, (GdiPlus.Point*)p, points.Length).
ThrowIfFailed
();
772
PInvokeGdiPlus.GdipAddPathPath(_nativePath, addingPath.Pointer(), connect).
ThrowIfFailed
();
811
PInvokeGdiPlus.GdipTransformPath(_nativePath, matrix.NativeMatrix).
ThrowIfFailed
();
827
pen.Pointer()).
ThrowIfFailed
();
841
PInvokeGdiPlus.GdipFlattenPath(_nativePath, matrix.Pointer(), flatness).
ThrowIfFailed
();
858
PInvokeGdiPlus.GdipWidenPath(_nativePath, pen.Pointer(), matrix.Pointer(), flatness).
ThrowIfFailed
();
918
flatness).
ThrowIfFailed
();
929
PInvokeGdiPlus.GdipGetPointCount(_nativePath, &count).
ThrowIfFailed
();
974
PInvokeGdiPlus.GdipGetPathTypes(_nativePath, t, destination.Length).
ThrowIfFailed
();
1019
PInvokeGdiPlus.GdipGetPathPoints(_nativePath, (GdiPlus.PointF*)p, destination.Length).
ThrowIfFailed
();
System\Drawing\Drawing2D\GraphicsPathIterator.cs (12)
14
PInvokeGdiPlus.GdipCreatePathIter(&iterator, path.Pointer()).
ThrowIfFailed
();
64
PInvokeGdiPlus.GdipPathIterNextSubpath(_nativeIterator, &resultCount, s, e, &tempIsClosed).
ThrowIfFailed
();
75
PInvokeGdiPlus.GdipPathIterNextSubpathPath(_nativeIterator, &resultCount, path.Pointer(), &tempIsClosed).
ThrowIfFailed
();
88
PInvokeGdiPlus.GdipPathIterNextPathType(_nativeIterator, &resultCount, pt, s, e).
ThrowIfFailed
();
100
PInvokeGdiPlus.GdipPathIterNextMarker(_nativeIterator, &resultCount, s, e).
ThrowIfFailed
();
109
PInvokeGdiPlus.GdipPathIterNextMarkerPath(_nativeIterator, &resultCount, path.Pointer()).
ThrowIfFailed
();
119
PInvokeGdiPlus.GdipPathIterGetCount(_nativeIterator, &resultCount).
ThrowIfFailed
();
130
PInvokeGdiPlus.GdipPathIterGetSubpathCount(_nativeIterator, &resultCount).
ThrowIfFailed
();
139
PInvokeGdiPlus.GdipPathIterHasCurve(_nativeIterator, &hasCurve).
ThrowIfFailed
();
146
PInvokeGdiPlus.GdipPathIterRewind(_nativeIterator).
ThrowIfFailed
();
182
points.Length).
ThrowIfFailed
();
231
endIndex).
ThrowIfFailed
();
System\Drawing\Drawing2D\HatchBrush.cs (5)
21
PInvokeGdiPlus.GdipCreateHatchBrush((GdiPlus.HatchStyle)hatchstyle, (ARGB)foreColor, (ARGB)backColor, &nativeBrush).
ThrowIfFailed
();
34
PInvokeGdiPlus.GdipCloneBrush(NativeBrush, &clonedBrush).
ThrowIfFailed
();
44
PInvokeGdiPlus.GdipGetHatchStyle((GpHatch*)NativeBrush, &hatchStyle).
ThrowIfFailed
();
55
PInvokeGdiPlus.GdipGetHatchForegroundColor((GpHatch*)NativeBrush, (uint*)&foregroundArgb).
ThrowIfFailed
();
66
PInvokeGdiPlus.GdipGetHatchBackgroundColor((GpHatch*)NativeBrush, (uint*)&backgroundArgb).
ThrowIfFailed
();
System\Drawing\Drawing2D\LinearGradientBrush.cs (26)
19
&nativeBrush).
ThrowIfFailed
();
44
&nativeBrush).
ThrowIfFailed
();
72
&nativeBrush).
ThrowIfFailed
();
98
PInvokeGdiPlus.GdipCloneBrush(NativeBrush, &clonedBrush).
ThrowIfFailed
();
108
PInvokeGdiPlus.GdipGetLineColors(NativeLineGradient, colors).
ThrowIfFailed
();
119
PInvokeGdiPlus.GdipSetLineColors(NativeLineGradient, (uint)value[0].ToArgb(), (uint)value[1].ToArgb()).
ThrowIfFailed
();
129
PInvokeGdiPlus.GdipGetLineRect(NativeLineGradient, (RectF*)&rect).
ThrowIfFailed
();
140
PInvokeGdiPlus.GdipGetLineGammaCorrection(NativeLineGradient, &useGammaCorrection).
ThrowIfFailed
();
146
PInvokeGdiPlus.GdipSetLineGammaCorrection(NativeLineGradient, value).
ThrowIfFailed
();
162
PInvokeGdiPlus.GdipGetLineBlendCount(NativeLineGradient, &count).
ThrowIfFailed
();
174
PInvokeGdiPlus.GdipGetLineBlend(NativeLineGradient, f, p, count).
ThrowIfFailed
();
190
PInvokeGdiPlus.GdipSetLineBlend(NativeLineGradient, f, p, value.Factors.Length).
ThrowIfFailed
();
200
PInvokeGdiPlus.GdipSetLineSigmaBlend(NativeLineGradient, focus, scale).
ThrowIfFailed
();
209
PInvokeGdiPlus.GdipSetLineLinearBlend(NativeLineGradient, focus, scale).
ThrowIfFailed
();
218
PInvokeGdiPlus.GdipGetLinePresetBlendCount(NativeLineGradient, &count).
ThrowIfFailed
();
234
PInvokeGdiPlus.GdipGetLinePresetBlend(NativeLineGradient, c, p, count).
ThrowIfFailed
();
260
PInvokeGdiPlus.GdipSetLinePresetBlend(NativeLineGradient, a, p, count).
ThrowIfFailed
();
271
PInvokeGdiPlus.GdipGetLineWrapMode(NativeLineGradient, (GdiPlus.WrapMode*)&mode).
ThrowIfFailed
();
280
PInvokeGdiPlus.GdipSetLineWrapMode(NativeLineGradient, (GdiPlus.WrapMode)value).
ThrowIfFailed
();
290
PInvokeGdiPlus.GdipGetLineTransform(NativeLineGradient, matrix.NativeMatrix).
ThrowIfFailed
();
297
PInvokeGdiPlus.GdipSetLineTransform(NativeLineGradient, value.NativeMatrix).
ThrowIfFailed
();
305
PInvokeGdiPlus.GdipResetLineTransform(NativeLineGradient).
ThrowIfFailed
();
315
PInvokeGdiPlus.GdipMultiplyLineTransform(NativeLineGradient, matrix.NativeMatrix, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
323
PInvokeGdiPlus.GdipTranslateLineTransform(NativeLineGradient, dx, dy, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
331
PInvokeGdiPlus.GdipScaleLineTransform(NativeLineGradient, sx, sy, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
339
PInvokeGdiPlus.GdipRotateLineTransform(NativeLineGradient, angle, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
System\Drawing\Drawing2D\Matrix.cs (25)
15
PInvokeGdiPlus.GdipCreateMatrix(&matrix).
ThrowIfFailed
();
22
PInvokeGdiPlus.GdipCreateMatrix2(m11, m12, m21, m22, dx, dy, &matrix).
ThrowIfFailed
();
46
&nativeMatrix).
ThrowIfFailed
();
60
PInvokeGdiPlus.GdipCreateMatrix3((RectF*)&rect, (GdiPlus.PointF*)p, &matrix).
ThrowIfFailed
();
74
PInvokeGdiPlus.GdipCreateMatrix3I((Rect*)&rect, (GdiPlus.Point*)p, &matrix).
ThrowIfFailed
();
103
PInvokeGdiPlus.GdipCloneMatrix(NativeMatrix, &matrix).
ThrowIfFailed
();
126
PInvokeGdiPlus.GdipGetMatrixElements(NativeMatrix, (float*)&matrix).
ThrowIfFailed
();
139
value.M32).
ThrowIfFailed
();
151
PInvokeGdiPlus.GdipGetMatrixElements(NativeMatrix, m).
ThrowIfFailed
();
175
1.0f, 0.0f, 0.0f).
ThrowIfFailed
();
189
PInvokeGdiPlus.GdipMultiplyMatrix(NativeMatrix, matrix.NativeMatrix, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
198
PInvokeGdiPlus.GdipTranslateMatrix(NativeMatrix, offsetX, offsetY, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
206
PInvokeGdiPlus.GdipScaleMatrix(NativeMatrix, scaleX, scaleY, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
214
PInvokeGdiPlus.GdipRotateMatrix(NativeMatrix, angle, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
235
status.
ThrowIfFailed
();
241
PInvokeGdiPlus.GdipShearMatrix(NativeMatrix, shearX, shearY, GdiPlus.MatrixOrder.MatrixOrderPrepend).
ThrowIfFailed
();
247
PInvokeGdiPlus.GdipShearMatrix(NativeMatrix, shearX, shearY, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
253
PInvokeGdiPlus.GdipInvertMatrix(NativeMatrix).
ThrowIfFailed
();
277
pts.Length).
ThrowIfFailed
();
306
pts.Length).
ThrowIfFailed
();
335
pts.Length).
ThrowIfFailed
();
369
pts.Length).
ThrowIfFailed
();
380
PInvokeGdiPlus.GdipIsMatrixInvertible(NativeMatrix, &invertible).
ThrowIfFailed
();
391
PInvokeGdiPlus.GdipIsMatrixIdentity(NativeMatrix, &identity).
ThrowIfFailed
();
406
&equal).
ThrowIfFailed
();
System\Drawing\Drawing2D\PathGradientBrush.cs (31)
50
&nativeBrush).
ThrowIfFailed
();
91
&nativeBrush).
ThrowIfFailed
();
101
PInvokeGdiPlus.GdipCreatePathGradientFromPath(path._nativePath, &nativeBrush).
ThrowIfFailed
();
116
PInvokeGdiPlus.GdipCloneBrush(NativeBrush, &clonedBrush).
ThrowIfFailed
();
126
PInvokeGdiPlus.GdipGetPathGradientCenterColor(NativePathGradient, (uint*)&argb).
ThrowIfFailed
();
132
PInvokeGdiPlus.GdipSetPathGradientCenterColor(NativePathGradient, (ARGB)value).
ThrowIfFailed
();
142
PInvokeGdiPlus.GdipGetPathGradientSurroundColorCount(NativePathGradient, &count).
ThrowIfFailed
();
147
PInvokeGdiPlus.GdipGetPathGradientSurroundColorsWithCount(NativePathGradient, b, &count).
ThrowIfFailed
();
164
&count).
ThrowIfFailed
();
176
PInvokeGdiPlus.GdipGetPathGradientCenterPoint(NativePathGradient, (GdiPlus.PointF*)&point).
ThrowIfFailed
();
182
PInvokeGdiPlus.GdipSetPathGradientCenterPoint(NativePathGradient, (GdiPlus.PointF*)&value).
ThrowIfFailed
();
192
PInvokeGdiPlus.GdipGetPathGradientRect(NativePathGradient, (RectF*)&rect).
ThrowIfFailed
();
204
PInvokeGdiPlus.GdipGetPathGradientBlendCount(NativePathGradient, &count).
ThrowIfFailed
();
212
PInvokeGdiPlus.GdipGetPathGradientBlend(NativePathGradient, f, p, count).
ThrowIfFailed
();
239
PInvokeGdiPlus.GdipSetPathGradientBlend(NativePathGradient, f, p, count).
ThrowIfFailed
();
249
PInvokeGdiPlus.GdipSetPathGradientSigmaBlend(NativePathGradient, focus, scale).
ThrowIfFailed
();
257
PInvokeGdiPlus.GdipSetPathGradientLinearBlend(NativePathGradient, focus, scale).
ThrowIfFailed
();
267
PInvokeGdiPlus.GdipGetPathGradientPresetBlendCount(NativePathGradient, &count).
ThrowIfFailed
();
283
PInvokeGdiPlus.GdipGetPathGradientPresetBlend(NativePathGradient, c, p, count).
ThrowIfFailed
();
306
PInvokeGdiPlus.GdipSetPathGradientPresetBlend(NativePathGradient, a, p, count).
ThrowIfFailed
();
317
PInvokeGdiPlus.GdipGetPathGradientTransform(NativePathGradient, matrix.NativeMatrix).
ThrowIfFailed
();
324
PInvokeGdiPlus.GdipSetPathGradientTransform(NativePathGradient, value.NativeMatrix).
ThrowIfFailed
();
332
PInvokeGdiPlus.GdipResetPathGradientTransform(NativePathGradient).
ThrowIfFailed
();
344
(GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
354
PInvokeGdiPlus.GdipTranslatePathGradientTransform(NativePathGradient, dx, dy, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
362
PInvokeGdiPlus.GdipScalePathGradientTransform(NativePathGradient, sx, sy, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
370
PInvokeGdiPlus.GdipRotatePathGradientTransform(NativePathGradient, angle, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
380
PInvokeGdiPlus.GdipGetPathGradientFocusScales(NativePathGradient, &scaleX, &scaleY).
ThrowIfFailed
();
386
PInvokeGdiPlus.GdipSetPathGradientFocusScales(NativePathGradient, value.X, value.Y).
ThrowIfFailed
();
396
PInvokeGdiPlus.GdipGetPathGradientWrapMode(NativePathGradient, (GdiPlus.WrapMode*)&mode).
ThrowIfFailed
();
405
PInvokeGdiPlus.GdipSetPathGradientWrapMode(NativePathGradient, (GdiPlus.WrapMode)value).
ThrowIfFailed
();
System\Drawing\Font.cs (8)
210
PInvokeGdiPlus.GdipGetFontHeight(NativeFont, graphics.Pointer(), &height).
ThrowIfFailed
();
219
PInvokeGdiPlus.GdipGetFontHeightGivenDPI(NativeFont, dpi, &height).
ThrowIfFailed
();
311
PInvokeGdiPlus.GdipGetLogFont(NativeFont, graphics.Pointer(), (LOGFONTW*)lf).
ThrowIfFailed
();
485
PInvokeGdiPlus.GdipGetFontUnit(_nativeFont, (Unit*)&unit).
ThrowIfFailed
();
486
PInvokeGdiPlus.GdipGetFontSize(_nativeFont, &size).
ThrowIfFailed
();
487
PInvokeGdiPlus.GdipGetFontStyle(_nativeFont, (int*)&style).
ThrowIfFailed
();
488
PInvokeGdiPlus.GdipGetFamily(_nativeFont, &family).
ThrowIfFailed
();
678
PInvokeGdiPlus.GdipCloneFont(_nativeFont, &font).
ThrowIfFailed
();
System\Drawing\FontFamily.cs (12)
38
PInvokeGdiPlus.GdipCloneFontFamily(family, &clonedFamily).
ThrowIfFailed
();
118
status.
ThrowIfFailed
();
143
PInvokeGdiPlus.GdipGetGenericFontFamilySerif(&nativeFamily).
ThrowIfFailed
();
146
PInvokeGdiPlus.GdipGetGenericFontFamilySansSerif(&nativeFamily).
ThrowIfFailed
();
150
PInvokeGdiPlus.GdipGetGenericFontFamilyMonospace(&nativeFamily).
ThrowIfFailed
();
242
PInvokeGdiPlus.GdipGetFamilyName(NativeFamily, name, language).
ThrowIfFailed
();
260
PInvokeGdiPlus.GdipGetGenericFontFamilySansSerif(&nativeFamily).
ThrowIfFailed
();
291
PInvokeGdiPlus.GdipIsStyleAvailable(NativeFamily, (int)style, &isStyleAvailable).
ThrowIfFailed
();
302
PInvokeGdiPlus.GdipGetEmHeight(NativeFamily, (int)style, &emHeight).
ThrowIfFailed
();
313
PInvokeGdiPlus.GdipGetCellAscent(NativeFamily, (int)style, &cellAscent).
ThrowIfFailed
();
324
PInvokeGdiPlus.GdipGetCellDescent(NativeFamily, (int)style, &cellDescent).
ThrowIfFailed
();
336
PInvokeGdiPlus.GdipGetLineSpacing(NativeFamily, (int)style, &lineSpacing).
ThrowIfFailed
();
System\Drawing\Gdiplus.cs (1)
20
internal static void CheckStatus(Status status) => status.
ThrowIfFailed
();
System\Drawing\Graphics.cs (10)
2953
imageAttr.Pointer()).
ThrowIfFailed
();
2982
imageAttr.Pointer()).
ThrowIfFailed
();
3017
imageAttr.Pointer()).
ThrowIfFailed
();
3046
imageAttr.Pointer()).
ThrowIfFailed
();
3072
imageAttr.Pointer()).
ThrowIfFailed
();
3113
imageAttr.Pointer()).
ThrowIfFailed
();
3154
imageAttr.Pointer()).
ThrowIfFailed
();
3187
imageAttr.Pointer()).
ThrowIfFailed
();
3642
(Unit)srcUnit).
ThrowIfFailed
();
3653
status.
ThrowIfFailed
();
System\Drawing\Image.cs (38)
106
PInvokeGdiPlus.GdipLoadImageFromFileICM(fn, &image).
ThrowIfFailed
();
110
PInvokeGdiPlus.GdipLoadImageFromFile(fn, &image).
ThrowIfFailed
();
151
PInvokeGdiPlus.GdipGetImageType(_nativeImage, &type).
ThrowIfFailed
();
168
PInvokeGdiPlus.GdipLoadImageFromStreamICM(stream, &image).
ThrowIfFailed
();
172
PInvokeGdiPlus.GdipLoadImageFromStream(stream, &image).
ThrowIfFailed
();
200
PInvokeGdiPlus.GdipCloneImage(_nativeImage, &cloneImage).
ThrowIfFailed
();
275
PInvokeGdiPlus.GdipSaveImageToFile(_nativeImage, fn, &encoder, nativeParameters).
ThrowIfFailed
();
346
PInvokeGdiPlus.GdipSaveAdd(_nativeImage, nativeParameters).
ThrowIfFailed
();
378
PInvokeGdiPlus.GdipSaveAddImage(_nativeImage, image._nativeImage, nativeParameters).
ThrowIfFailed
();
412
PInvokeGdiPlus.GdipGetImageDimension(_nativeImage, &width, &height).
ThrowIfFailed
();
434
PInvokeGdiPlus.GdipGetImageWidth(_nativeImage, &width).
ThrowIfFailed
();
451
PInvokeGdiPlus.GdipGetImageHeight(_nativeImage, &height).
ThrowIfFailed
();
465
PInvokeGdiPlus.GdipGetImageHorizontalResolution(_nativeImage, &horzRes).
ThrowIfFailed
();
479
PInvokeGdiPlus.GdipGetImageVerticalResolution(_nativeImage, &vertRes).
ThrowIfFailed
();
494
PInvokeGdiPlus.GdipGetImageFlags(_nativeImage, &flags).
ThrowIfFailed
();
508
PInvokeGdiPlus.GdipGetImageRawFormat(_nativeImage, &guid).
ThrowIfFailed
();
528
PInvokeGdiPlus.GdipGetPropertyCount(_nativeImage, &count).
ThrowIfFailed
();
537
PInvokeGdiPlus.GdipGetPropertyIdList(_nativeImage, count, (uint*)pPropid).
ThrowIfFailed
();
554
PInvokeGdiPlus.GdipGetPropertySize(_nativeImage, &size, &count).
ThrowIfFailed
();
602
PInvokeGdiPlus.GdipGetImagePaletteSize(_nativeImage, &size).
ThrowIfFailed
();
607
PInvokeGdiPlus.GdipGetImagePalette(_nativeImage, (GdiPlus.ColorPalette*)b, size).
ThrowIfFailed
();
617
PInvokeGdiPlus.GdipSetImagePalette(_nativeImage, (GdiPlus.ColorPalette*)b).
ThrowIfFailed
();
640
null).
ThrowIfFailed
();
650
PInvokeGdiPlus.GdipImageForceValidation(image).
ThrowIfFailed
();
666
PInvokeGdiPlus.GdipImageGetFrameCount(_nativeImage, &dimensionID, &count).
ThrowIfFailed
();
677
PInvokeGdiPlus.GdipGetPropertyItemSize(_nativeImage, (uint)propid, &size).
ThrowIfFailed
();
688
PInvokeGdiPlus.GdipGetPropertyItem(_nativeImage, (uint)propid, size, property).
ThrowIfFailed
();
700
PInvokeGdiPlus.GdipImageSelectActiveFrame(_nativeImage, &dimensionID, (uint)frameIndex).
ThrowIfFailed
();
720
PInvokeGdiPlus.GdipSetPropertyItem(_nativeImage, &native).
ThrowIfFailed
();
727
PInvokeGdiPlus.GdipImageRotateFlip(_nativeImage, (GdiPlus.RotateFlipType)rotateFlipType).
ThrowIfFailed
();
736
PInvokeGdiPlus.GdipRemovePropertyItem(_nativeImage, (uint)propid).
ThrowIfFailed
();
748
PInvokeGdiPlus.GdipGetEncoderParameterListSize(_nativeImage, &encoder, &size).
ThrowIfFailed
();
762
(GdiPlus.EncoderParameters*)b).
ThrowIfFailed
();
782
PInvokeGdiPlus.GdipCreateBitmapFromHBITMAP((HBITMAP)hbitmap, (HPALETTE)hpalette, &bitmap).
ThrowIfFailed
();
825
PInvokeGdiPlus.GdipImageGetFrameDimensionsCount(_nativeImage, &count).
ThrowIfFailed
();
836
PInvokeGdiPlus.GdipImageGetFrameDimensionsList(_nativeImage, g, count).
ThrowIfFailed
();
880
PInvokeGdiPlus.GdipImageGetFrameDimensionsCount(image._nativeImage, &dimensions).
ThrowIfFailed
();
890
PInvokeGdiPlus.GdipImageGetFrameDimensionsList(image._nativeImage, g, dimensions).
ThrowIfFailed
();
System\Drawing\Imaging\ColorPalette.cs (1)
111
bitmap is null ? null : bitmap.GetPointer()).
ThrowIfFailed
();
System\Drawing\Imaging\Effects\ColorMatrixEffect.cs (1)
29
PInvokeGdiPlus.GdipSetEffectParameters(NativeEffect, p, (uint)sizeof(GdiPlus.ColorMatrix)).
ThrowIfFailed
();
System\Drawing\Imaging\Effects\Effect.cs (2)
20
PInvokeGdiPlus.GdipCreateEffect(guid, &nativeEffect).
ThrowIfFailed
();
34
PInvokeGdiPlus.GdipSetEffectParameters(NativeEffect, p, (uint)sizeof(T)).
ThrowIfFailed
();
System\Drawing\Imaging\ImageAttributes.cs (17)
58
PInvokeGdiPlus.GdipCreateImageAttributes(&newImageAttributes).
ThrowIfFailed
();
92
PInvokeGdiPlus.GdipCloneImageAttributes(_nativeImageAttributes, &clone).
ThrowIfFailed
();
132
(ColorMatrixFlags)ColorMatrixFlag.Default).
ThrowIfFailed
();
165
(ColorMatrixFlags)mode).
ThrowIfFailed
();
178
(ColorMatrixFlags)mode).
ThrowIfFailed
();
199
threshold).
ThrowIfFailed
();
218
gamma).
ThrowIfFailed
();
236
enableFlag).
ThrowIfFailed
();
258
(uint)colorHigh.ToArgb()).
ThrowIfFailed
();
279
(ColorChannelFlags)flags).
ThrowIfFailed
();
298
n).
ThrowIfFailed
();
312
ColorChannelFlags.ColorChannelFlagsLast).
ThrowIfFailed
();
375
(GdiPlus.ColorMap*)m).
ThrowIfFailed
();
400
(GdiPlus.ColorMap*)m).
ThrowIfFailed
();
422
null).
ThrowIfFailed
();
449
clamp).
ThrowIfFailed
();
462
(GdiPlus.ColorAdjustType)type).
ThrowIfFailed
();
System\Drawing\Imaging\ImageCodecInfo.cs (4)
47
PInvokeGdiPlus.GdipGetImageDecodersSize(&numDecoders, &size).
ThrowIfFailed
();
53
PInvokeGdiPlus.GdipGetImageDecoders(numDecoders, size, (GdiPlus.ImageCodecInfo*)b).
ThrowIfFailed
();
68
PInvokeGdiPlus.GdipGetImageEncodersSize(&numEncoders, &size).
ThrowIfFailed
();
74
PInvokeGdiPlus.GdipGetImageEncoders(numEncoders, size, (GdiPlus.ImageCodecInfo*)b).
ThrowIfFailed
();
System\Drawing\Imaging\Metafile.cs (19)
39
&metafile).
ThrowIfFailed
();
52
PInvokeGdiPlus.GdipCreateMetafileFromEmf((HENHMETAFILE)henhmetafile, deleteEmf, &metafile).
ThrowIfFailed
();
66
PInvokeGdiPlus.GdipCreateMetafileFromFile(fn, &metafile).
ThrowIfFailed
();
132
&metafile).
ThrowIfFailed
();
228
&metafile).
ThrowIfFailed
();
348
PInvokeGdiPlus.GdipCreateMetafileFromStream(iStream, &metafile).
ThrowIfFailed
();
366
&metafile).
ThrowIfFailed
();
390
&metafile).
ThrowIfFailed
();
415
&metafile).
ThrowIfFailed
();
441
&metafile).
ThrowIfFailed
();
465
&metafile).
ThrowIfFailed
();
490
&metafile).
ThrowIfFailed
();
515
&metafile).
ThrowIfFailed
();
546
d).
ThrowIfFailed
();
562
PInvokeGdiPlus.GdipGetMetafileHeaderFromWmf((HMETAFILE)hmetafile, wmf, mf).
ThrowIfFailed
();
575
PInvokeGdiPlus.GdipGetMetafileHeaderFromEmf((HENHMETAFILE)henhmetafile, mf).
ThrowIfFailed
();
593
PInvokeGdiPlus.GdipGetMetafileHeaderFromFile(fn, mf).
ThrowIfFailed
();
610
PInvokeGdiPlus.GdipGetMetafileHeaderFromStream(iStream, mf).
ThrowIfFailed
();
624
PInvokeGdiPlus.GdipGetMetafileHeaderFromMetafile(this.Pointer(), mf).
ThrowIfFailed
();
System\Drawing\Pen.cs (44)
48
PInvokeGdiPlus.GdipCreatePen1((uint)color.ToArgb(), width, (int)GraphicsUnit.World, &pen).
ThrowIfFailed
();
71
PInvokeGdiPlus.GdipCreatePen2(brush.NativeBrush, width, (int)GraphicsUnit.World, &pen).
ThrowIfFailed
();
91
PInvokeGdiPlus.GdipClonePen(NativePen, &clonedPen).
ThrowIfFailed
();
140
PInvokeGdiPlus.GdipGetPenWidth(NativePen, &width).
ThrowIfFailed
();
151
PInvokeGdiPlus.GdipSetPenWidth(NativePen, value).
ThrowIfFailed
();
170
(GdiPlus.DashCap)dashCap).
ThrowIfFailed
();
183
PInvokeGdiPlus.GdipGetPenStartCap(NativePen, (GdiPlus.LineCap*)&startCap).
ThrowIfFailed
();
212
PInvokeGdiPlus.GdipSetPenStartCap(NativePen, (GdiPlus.LineCap)value).
ThrowIfFailed
();
225
PInvokeGdiPlus.GdipGetPenEndCap(NativePen, (GdiPlus.LineCap*)&endCap).
ThrowIfFailed
();
254
PInvokeGdiPlus.GdipSetPenEndCap(NativePen, (GdiPlus.LineCap)value).
ThrowIfFailed
();
267
PInvokeGdiPlus.GdipGetPenCustomStartCap(NativePen, &lineCap).
ThrowIfFailed
();
278
PInvokeGdiPlus.GdipSetPenCustomStartCap(NativePen, value is null ? null : value._nativeCap).
ThrowIfFailed
();
292
PInvokeGdiPlus.GdipGetPenCustomEndCap(NativePen, &lineCap).
ThrowIfFailed
();
303
PInvokeGdiPlus.GdipSetPenCustomEndCap(NativePen, value is null ? null : value._nativeCap).
ThrowIfFailed
();
317
PInvokeGdiPlus.GdipGetPenDashCap197819(NativePen, (GdiPlus.DashCap*)&dashCap).
ThrowIfFailed
();
333
PInvokeGdiPlus.GdipSetPenDashCap197819(NativePen, (GdiPlus.DashCap)value).
ThrowIfFailed
();
346
PInvokeGdiPlus.GdipGetPenLineJoin(NativePen, (GdiPlus.LineJoin*)&lineJoin).
ThrowIfFailed
();
362
PInvokeGdiPlus.GdipSetPenLineJoin(NativePen, (GdiPlus.LineJoin)value).
ThrowIfFailed
();
375
PInvokeGdiPlus.GdipGetPenMiterLimit(NativePen, &miterLimit).
ThrowIfFailed
();
386
PInvokeGdiPlus.GdipSetPenMiterLimit(NativePen, value).
ThrowIfFailed
();
399
PInvokeGdiPlus.GdipGetPenMode(NativePen, (GdiPlus.PenAlignment*)&penMode).
ThrowIfFailed
();
415
PInvokeGdiPlus.GdipSetPenMode(NativePen, (GdiPlus.PenAlignment)value).
ThrowIfFailed
();
428
PInvokeGdiPlus.GdipGetPenTransform(NativePen, matrix.NativeMatrix).
ThrowIfFailed
();
441
PInvokeGdiPlus.GdipSetPenTransform(NativePen, value.NativeMatrix).
ThrowIfFailed
();
452
PInvokeGdiPlus.GdipResetPenTransform(NativePen).
ThrowIfFailed
();
474
PInvokeGdiPlus.GdipMultiplyPenTransform(NativePen, matrix.NativeMatrix, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
490
PInvokeGdiPlus.GdipTranslatePenTransform(NativePen, dx, dy, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
504
PInvokeGdiPlus.GdipScalePenTransform(NativePen, sx, sy, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
518
PInvokeGdiPlus.GdipRotatePenTransform(NativePen, angle, (GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
524
PInvokeGdiPlus.GdipSetPenColor(NativePen, (uint)_color.ToArgb()).
ThrowIfFailed
();
537
PInvokeGdiPlus.GdipGetPenFillType(NativePen, &type).
ThrowIfFailed
();
558
PInvokeGdiPlus.GdipGetPenColor(NativePen, (uint*)&color).
ThrowIfFailed
();
634
PInvokeGdiPlus.GdipSetPenBrushFill(NativePen, value.Pointer()).
ThrowIfFailed
();
642
PInvokeGdiPlus.GdipGetPenBrushFill(NativePen, &nativeBrush).
ThrowIfFailed
();
655
PInvokeGdiPlus.GdipGetPenDashStyle(NativePen, (GdiPlus.DashStyle*)&dashStyle).
ThrowIfFailed
();
671
PInvokeGdiPlus.GdipSetPenDashStyle(NativePen, (GdiPlus.DashStyle)value).
ThrowIfFailed
();
713
PInvokeGdiPlus.GdipGetPenDashOffset(NativePen, &dashOffset).
ThrowIfFailed
();
724
PInvokeGdiPlus.GdipSetPenDashOffset(NativePen, value).
ThrowIfFailed
();
737
PInvokeGdiPlus.GdipGetPenDashCount(NativePen, &count).
ThrowIfFailed
();
748
PInvokeGdiPlus.GdipGetPenDashArray(NativePen, p, count).
ThrowIfFailed
();
784
PInvokeGdiPlus.GdipSetPenDashArray(NativePen, f, value.Length).
ThrowIfFailed
();
798
PInvokeGdiPlus.GdipGetPenCompoundCount(NativePen, &count).
ThrowIfFailed
();
808
PInvokeGdiPlus.GdipGetPenCompoundArray(NativePen, f, count).
ThrowIfFailed
();
823
PInvokeGdiPlus.GdipSetPenCompoundArray(NativePen, f, value.Length).
ThrowIfFailed
();
System\Drawing\SolidBrush.cs (4)
19
PInvokeGdiPlus.GdipCreateSolidFill((ARGB)_color, &nativeBrush).
ThrowIfFailed
();
39
PInvokeGdiPlus.GdipCloneBrush(NativeBrush, &clonedBrush).
ThrowIfFailed
();
67
PInvokeGdiPlus.GdipGetSolidFillColor((GpSolidFill*)NativeBrush, (uint*)&color).
ThrowIfFailed
();
100
PInvokeGdiPlus.GdipSetSolidFillColor((GpSolidFill*)NativeBrush, (ARGB)value).
ThrowIfFailed
();
System\Drawing\StringFormat.cs (22)
40
PInvokeGdiPlus.GdipCreateStringFormat((int)options, (ushort)language, &format).
ThrowIfFailed
();
52
PInvokeGdiPlus.GdipCloneStringFormat(format._nativeFormat, &newFormat).
ThrowIfFailed
();
109
PInvokeGdiPlus.GdipGetStringFormatFlags(_nativeFormat, (int*)&format).
ThrowIfFailed
();
115
PInvokeGdiPlus.GdipSetStringFormatFlags(_nativeFormat, (int)value).
ThrowIfFailed
();
135
r is null ? &stub : (GdiPlus.CharacterRange*)r).
ThrowIfFailed
();
149
PInvokeGdiPlus.GdipGetStringFormatAlign(_nativeFormat, (GdiPlus.StringAlignment*)&alignment).
ThrowIfFailed
();
160
PInvokeGdiPlus.GdipSetStringFormatAlign(_nativeFormat, (GdiPlus.StringAlignment)value).
ThrowIfFailed
();
173
PInvokeGdiPlus.GdipGetStringFormatLineAlign(_nativeFormat, (GdiPlus.StringAlignment*)&alignment).
ThrowIfFailed
();
184
PInvokeGdiPlus.GdipSetStringFormatLineAlign(_nativeFormat, (GdiPlus.StringAlignment)value).
ThrowIfFailed
();
197
PInvokeGdiPlus.GdipGetStringFormatHotkeyPrefix(_nativeFormat, (int*)&hotkeyPrefix).
ThrowIfFailed
();
208
PInvokeGdiPlus.GdipSetStringFormatHotkeyPrefix(_nativeFormat, (int)value).
ThrowIfFailed
();
234
ts is null ? &stub : ts).
ThrowIfFailed
();
245
PInvokeGdiPlus.GdipGetStringFormatTabStopCount(_nativeFormat, &count).
ThrowIfFailed
();
258
PInvokeGdiPlus.GdipGetStringFormatTabStops(_nativeFormat, count, fto, ts).
ThrowIfFailed
();
275
PInvokeGdiPlus.GdipGetStringFormatTrimming(_nativeFormat, (GdiPlus.StringTrimming*)&trimming).
ThrowIfFailed
();
286
PInvokeGdiPlus.GdipSetStringFormatTrimming(_nativeFormat, (GdiPlus.StringTrimming)value).
ThrowIfFailed
();
311
PInvokeGdiPlus.GdipStringFormatGetGenericDefault(&format).
ThrowIfFailed
();
337
PInvokeGdiPlus.GdipStringFormatGetGenericTypographic(&format).
ThrowIfFailed
();
347
(GdiPlus.StringDigitSubstitute)substitute).
ThrowIfFailed
();
363
(GdiPlus.StringDigitSubstitute*)&digitSubstitute).
ThrowIfFailed
();
378
PInvokeGdiPlus.GdipGetStringFormatDigitSubstitution(_nativeFormat, &language, null).
ThrowIfFailed
();
387
PInvokeGdiPlus.GdipGetStringFormatMeasurableCharacterRangeCount(_nativeFormat, &count).
ThrowIfFailed
();
System\Drawing\Text\FontCollection.cs (2)
35
PInvokeGdiPlus.GdipGetFontCollectionFamilyCount(_nativeFontCollection, &numFound).
ThrowIfFailed
();
47
PInvokeGdiPlus.GdipGetFontCollectionFamilyList(_nativeFontCollection, numFound, f, &numFound).
ThrowIfFailed
();
System\Drawing\Text\InstalledFontCollection.cs (1)
24
PInvokeGdiPlus.GdipNewInstalledFontCollection(&fontCollection).
ThrowIfFailed
();
System\Drawing\Text\PrivateFontCollection.cs (3)
23
PInvokeGdiPlus.GdipNewPrivateFontCollection(&fontCollection).
ThrowIfFailed
();
60
PInvokeGdiPlus.GdipPrivateAddFontFile(this.Pointer(), p).
ThrowIfFailed
();
73
PInvokeGdiPlus.GdipPrivateAddMemoryFont(this.Pointer(), (void*)memory, length).
ThrowIfFailed
();
System\Drawing\TextureBrush.cs (14)
31
PInvokeGdiPlus.GdipCreateTexture(image.Pointer(), (WrapMode)wrapMode, &brush).
ThrowIfFailed
();
49
dstRect.X, dstRect.Y, dstRect.Width, dstRect.Height, &brush).
ThrowIfFailed
();
74
&brush).
ThrowIfFailed
();
97
PInvokeGdiPlus.GdipCloneBrush(NativeBrush, &cloneBrush).
ThrowIfFailed
();
108
PInvokeGdiPlus.GdipGetTextureTransform((GpTexture*)NativeBrush, matrix.NativeMatrix).
ThrowIfFailed
();
115
PInvokeGdiPlus.GdipSetTextureTransform((GpTexture*)NativeBrush, value.NativeMatrix).
ThrowIfFailed
();
125
PInvokeGdiPlus.GdipGetTextureWrapMode((GpTexture*)NativeBrush, &mode).
ThrowIfFailed
();
136
PInvokeGdiPlus.GdipSetTextureWrapMode((GpTexture*)NativeBrush, (WrapMode)value).
ThrowIfFailed
();
146
PInvokeGdiPlus.GdipGetTextureImage((GpTexture*)NativeBrush, &image).
ThrowIfFailed
();
154
PInvokeGdiPlus.GdipResetTextureTransform((GpTexture*)NativeBrush).
ThrowIfFailed
();
172
(GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
185
(GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
197
(GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
209
(GdiPlus.MatrixOrder)order).
ThrowIfFailed
();
System.Private.Windows.Core (1)
Windows\Win32\Graphics\GdiPlus\GdiPlusInitialization.cs (1)
22
PInvokeCore.GdiplusStartup(&token, (GdiplusStartupInput*)&startup, null).
ThrowIfFailed
();
System.Private.Windows.GdiPlus (12)
System\Drawing\CoreImageExtensions.cs (2)
28
PInvokeGdiPlus.GdipSaveImageToStream(image.GetPointer(), iStream, &encoder, encoderParameters).
ThrowIfFailed
();
34
PInvokeGdiPlus.GdipGetImageRawFormat(image.GetPointer(), &format).
ThrowIfFailed
();
System\Drawing\ImageCodecInfoHelper.cs (2)
44
PInvokeGdiPlus.GdipGetImageEncodersSize(&numEncoders, &size).
ThrowIfFailed
();
50
PInvokeGdiPlus.GdipGetImageEncoders(numEncoders, size, (ImageCodecInfo*)b).
ThrowIfFailed
();
Windows\Win32\Graphics\GdiPlus\GpBitmapExtensions.cs (3)
26
(BitmapData*)Unsafe.AsPointer(ref data)).
ThrowIfFailed
();
33
PInvokeGdiPlus.GdipBitmapUnlockBits(bitmap.GetPointer(), (BitmapData*)Unsafe.AsPointer(ref data)).
ThrowIfFailed
();
45
(uint)ColorTranslator.ToWin32(background)).
ThrowIfFailed
();
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (1)
18
PInvokeGdiPlus.GdipGetImageBounds(image.GetPointer(), (RectF*)&bounds, &unit).
ThrowIfFailed
();
Windows\Win32\Graphics\GdiPlus\GpMetafileExtensions.cs (1)
13
PInvokeGdiPlus.GdipGetHemfFromMetafile(metafile.GetPointer(), &hemf).
ThrowIfFailed
();
Windows\Win32\Graphics\GdiPlus\GpRegionExtensions.cs (3)
25
PInvokeGdiPlus.GdipCreateFromHWND(hwnd, &graphics).
ThrowIfFailed
();
34
PInvokeGdiPlus.GdipIsInfiniteRegion(region, graphics, &isInfinite).
ThrowIfFailed
();
52
PInvokeGdiPlus.GdipGetRegionHRgn(region, graphics, &hrgn).
ThrowIfFailed
();