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