IImage.Downsize Method

Definition

Overloads

Name Description
Downsize(Single, Boolean)

Creates a downsized version of the image with the same aspect ratio.

Downsize(Single, Single, Boolean)

Creates a downsized version of the image that fits within the specified dimensions.

Downsize(Single, Boolean)

Source:
IImage.cs
Source:
IImage.cs
Source:
IImage.cs
Source:
IImage.cs

Creates a downsized version of the image with the same aspect ratio.

public Microsoft.Maui.Graphics.IImage Downsize(float maxWidthOrHeight, bool disposeOriginal = false);
abstract member Downsize : single * bool -> Microsoft.Maui.Graphics.IImage
Public Function Downsize (maxWidthOrHeight As Single, Optional disposeOriginal As Boolean = false) As IImage

Parameters

maxWidthOrHeight
Single

The maximum width or height in pixels.

disposeOriginal
Boolean

Whether to dispose the original image after downsizing.

Returns

A new IImage with the downsized dimensions.

Applies to

Downsize(Single, Single, Boolean)

Source:
IImage.cs
Source:
IImage.cs
Source:
IImage.cs
Source:
IImage.cs

Creates a downsized version of the image that fits within the specified dimensions.

public Microsoft.Maui.Graphics.IImage Downsize(float maxWidth, float maxHeight, bool disposeOriginal = false);
abstract member Downsize : single * single * bool -> Microsoft.Maui.Graphics.IImage
Public Function Downsize (maxWidth As Single, maxHeight As Single, Optional disposeOriginal As Boolean = false) As IImage

Parameters

maxWidth
Single

The maximum width in pixels.

maxHeight
Single

The maximum height in pixels.

disposeOriginal
Boolean

Whether to dispose the original image after downsizing.

Returns

A new IImage with the downsized dimensions.

Applies to