26 references to PInvokeGdiPlus
System.Private.Windows.GdiPlus (26)
System\Drawing\CoreImageExtensions.cs (5)
21
if (format ==
PInvokeGdiPlus
.ImageFormatGIF && image.Data is { } rawData && rawData.Length > 0)
28
PInvokeGdiPlus
.GdipSaveImageToStream(image.GetPointer(), iStream, &encoder, encoderParameters).ThrowIfFailed();
34
PInvokeGdiPlus
.GdipGetImageRawFormat(image.GetPointer(), &format).ThrowIfFailed();
40
if (format ==
PInvokeGdiPlus
.ImageFormatJPEG || encoder == Guid.Empty)
42
format =
PInvokeGdiPlus
.ImageFormatPNG;
System\Drawing\ImageCodecInfoHelper.cs (2)
44
PInvokeGdiPlus
.GdipGetImageEncodersSize(&numEncoders, &size).ThrowIfFailed();
50
PInvokeGdiPlus
.GdipGetImageEncoders(numEncoders, size, (ImageCodecInfo*)b).ThrowIfFailed();
Windows\Win32\Graphics\Gdi\HdcExtensions.cs (1)
41
s_halftonePalette =
PInvokeGdiPlus
.GdipCreateHalftonePalette();
Windows\Win32\Graphics\GdiPlus\GdiPlusInitialization.cs (1)
22
PInvokeGdiPlus
.GdiplusStartup(&token, (GdiplusStartupInput*)&startup, null).ThrowIfFailed();
Windows\Win32\Graphics\GdiPlus\GpBitmapExtensions.cs (3)
21
PInvokeGdiPlus
.GdipBitmapLockBits(
33
PInvokeGdiPlus
.GdipBitmapUnlockBits(bitmap.GetPointer(), (BitmapData*)Unsafe.AsPointer(ref data)).ThrowIfFailed();
42
PInvokeGdiPlus
.GdipCreateHBITMAPFromBitmap(
Windows\Win32\Graphics\GdiPlus\GpImageExtensions.cs (2)
18
PInvokeGdiPlus
.GdipGetImageBounds(image.GetPointer(), (RectF*)&bounds, &unit).ThrowIfFailed();
28
Status status =
PInvokeGdiPlus
.GdipGetImagePixelFormat(image.GetPointer(), &format);
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();
Windows\Win32\Graphics\GdiPlus\PixelFormat.cs (8)
12
Indexed = (int)
PInvokeGdiPlus
.PixelFormatIndexed,
17
Gdi = (int)
PInvokeGdiPlus
.PixelFormatGDI,
22
Alpha = (int)
PInvokeGdiPlus
.PixelFormatAlpha,
27
PAlpha = (int)
PInvokeGdiPlus
.PixelFormatPAlpha,
32
Extended = (int)
PInvokeGdiPlus
.PixelFormatExtended,
34
Canonical = (int)
PInvokeGdiPlus
.PixelFormatCanonical,
39
Undefined = (int)
PInvokeGdiPlus
.PixelFormatUndefined,
44
DontCare = (int)
PInvokeGdiPlus
.PixelFormatDontCare,