3 implementations of IImage
Microsoft.Maui.Graphics (1)
PlatformImage.cs (1)
8
public class PlatformImage :
IImage
Microsoft.Maui.Graphics.Skia (1)
SkiaImage.cs (1)
9
public class SkiaImage :
IImage
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (1)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (1)
24
:
IImage
42 references to IImage
Microsoft.Maui.Graphics (23)
AbstractCanvas.cs (1)
232
public abstract void DrawImage(
IImage
image, float x, float y, float width, float height);
BitmapExportContext.cs (1)
27
public abstract
IImage
Image { get; }
ICanvas.cs (1)
338
public void DrawImage(
IImage
image, float x, float y, float width, float height);
IImage.cs (4)
18
IImage
Downsize(float maxWidthOrHeight, bool disposeOriginal = false);
19
IImage
Downsize(float maxWidth, float maxHeight, bool disposeOriginal = false);
20
IImage
Resize(float width, float height, ResizeMode resizeMode = ResizeMode.Fit, bool disposeOriginal = false);
23
IImage
ToPlatformImage();
IImageLoadingService.cs (1)
7
IImage
FromStream(Stream stream, ImageFormat format = ImageFormat.Png);
ImageExtensions.cs (6)
9
public static byte[] AsBytes(this
IImage
target, ImageFormat format = ImageFormat.Png, float quality = 1)
21
public static Stream AsStream(this
IImage
target, ImageFormat format = ImageFormat.Png, float quality = 1)
33
public static async Task<byte[]> AsBytesAsync(this
IImage
target, ImageFormat format = ImageFormat.Png, float quality = 1)
45
public static string AsBase64(this
IImage
target, ImageFormat format = ImageFormat.Png, float quality = 1)
54
public static Paint AsPaint(this
IImage
target)
62
public static void SetFillImage(this ICanvas canvas,
IImage
image)
ImageLoadingServiceExtensions.cs (1)
7
public static
IImage
FromBytes(this IImageLoadingService target, byte[] bytes)
ImagePaint.cs (1)
5
public
IImage
Image { get; set; }
PictureCanvas.cs (1)
274
public void DrawImage(
IImage
image, float x, float y, float width, float height)
PlatformImage.cs (5)
32
public
IImage
Downsize(float maxWidthOrHeight, bool disposeOriginal = false)
37
public
IImage
Downsize(float maxWidth, float maxHeight, bool disposeOriginal = false)
42
public
IImage
Resize(float width, float height, ResizeMode resizeMode = ResizeMode.Fit, bool disposeOriginal = false)
177
public static
IImage
FromStream(Stream stream, ImageFormat format = ImageFormat.Png)
190
public
IImage
ToPlatformImage()
ScalingCanvas.cs (1)
129
public void DrawImage(
IImage
image, float x, float y, float width, float height)
Microsoft.Maui.Graphics.Skia (8)
SkiaBitmapExportContext.cs (1)
53
public override
IImage
Image => new SkiaImage(Bitmap);
SkiaCanvas.cs (1)
801
IImage
image,
SkiaImage.cs (5)
24
public
IImage
Downsize(float maxWidthOrHeight, bool disposeOriginal = false)
34
public
IImage
Downsize(float maxWidth, float maxHeight, bool disposeOriginal = false)
43
public
IImage
Resize(float width, float height, ResizeMode resizeMode = ResizeMode.Fit, bool disposeOriginal = false)
152
public
IImage
ToPlatformImage()
157
public static
IImage
FromStream(Stream stream, ImageFormat formatHint = ImageFormat.Png)
SkiaImageLoadingService.cs (1)
7
public
IImage
FromStream(Stream stream, ImageFormat formatHint = ImageFormat.Png)
Microsoft.Maui.Graphics.Win2D.WinUI.Desktop (11)
src\Graphics\src\Graphics\Platforms\Windows\PlatformCanvas.cs (1)
527
public override void DrawImage(
IImage
image, float x, float y, float width, float height)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImage.cs (8)
17
/// A Windows platform implementation of <see cref="
IImage
"/>.
50
public
IImage
Downsize(float maxWidthOrHeight, bool disposeOriginal = false)
67
var
newImage = FromStream(memoryStream2.AsStreamForRead());
79
public
IImage
Downsize(float maxWidth, float maxHeight, bool disposeOriginal = false)
84
public
IImage
Resize(float width, float height, ResizeMode resizeMode = ResizeMode.Fit,
143
public
IImage
ToPlatformImage()
152
public
IImage
ToImage(int width, int height, float scale = 1f)
157
public static
IImage
FromStream(Stream stream, ImageFormat format = ImageFormat.Png)
src\Graphics\src\Graphics\Platforms\Windows\PlatformImageLoadingService.cs (2)
13
/// loads images into a new <see cref="
IImage
"/> instance.
22
public
IImage
FromStream(Stream stream, ImageFormat formatHint = ImageFormat.Png)