18 references to GetPointer
System.Drawing.Common (5)
System\Drawing\Imaging\ColorPalette.cs (1)
111bitmap is null ? null : bitmap.GetPointer()).ThrowIfFailed();
System\Drawing\PointerExtensions.cs (4)
17internal static GpFontFamily* Pointer(this IPointer<GpFontFamily>? family) => family is null ? null : family.GetPointer(); 20fontCollection is null ? null : fontCollection.GetPointer(); 27public static GpBitmap* Pointer(this Bitmap? bitmap) => bitmap is null ? null : ((IPointer<GpBitmap>)bitmap).GetPointer(); 29public static GpImage* Pointer(this Image? image) => image is null ? null : image.GetPointer();
System.Drawing.Common.Tests (2)
System\Drawing\FontFamilyTests.cs (2)
290(nint)fontFamily1.GetPointer(), 291(nint)fontFamily2.GetPointer());
System.Private.Windows.GdiPlus (11)
System\Drawing\CoreImageExtensions.cs (2)
28PInvokeGdiPlus.GdipSaveImageToStream(image.GetPointer(), iStream, &encoder, encoderParameters).ThrowIfFailed(); 34PInvokeGdiPlus.GdipGetImageRawFormat(image.GetPointer(), &format).ThrowIfFailed();
Windows\Win32\Graphics\GdiPlus\GpBitmapExtensions.cs (3)
22bitmap.GetPointer(), 33PInvokeGdiPlus.GdipBitmapUnlockBits(bitmap.GetPointer(), (BitmapData*)Unsafe.AsPointer(ref data)).ThrowIfFailed(); 43bitmap.GetPointer(),
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)
13RegionScope scope = new(InitializeFromGdiPlus(region.GetPointer(), graphics.GetPointer())); 26RegionScope scope = new(InitializeFromGdiPlus(region.GetPointer(), graphics));