2 writes to _bitmap
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (2)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (2)
39
_bitmap
= bitmap;
46
var bitmap = Interlocked.Exchange(ref
_bitmap
, null);
9 references to _bitmap
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (9)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (9)
42
public CanvasBitmap PlatformRepresentation =>
_bitmap
;
69
_bitmap
.Dispose();
90
public float Width => (float)
_bitmap
.Size.Width;
92
public float Height => (float)
_bitmap
.Size.Height;
113
AsyncPump.Run(async () => await
_bitmap
.SaveAsync(stream.AsRandomAccessStream(), CanvasBitmapFileFormat.Jpeg, quality));
116
AsyncPump.Run(async () => await
_bitmap
.SaveAsync(stream.AsRandomAccessStream(), CanvasBitmapFileFormat.Png));
130
await
_bitmap
.SaveAsync(stream.AsRandomAccessStream(), CanvasBitmapFileFormat.Jpeg, quality);
133
await
_bitmap
.SaveAsync(stream.AsRandomAccessStream(), CanvasBitmapFileFormat.Png);
146
return new Platform.PlatformImage(_creator,
_bitmap
);