SkiaImage.Downsize Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Downsize(Single, Boolean) |
Creates a new image by downsizing this image to fit within the specified maximum dimension. |
| Downsize(Single, Single, Boolean) |
Creates a new image by downsizing this image to fit within the specified maximum dimensions. |
Downsize(Single, Boolean)
- Source:
- SkiaImage.cs
- Source:
- SkiaImage.cs
- Source:
- SkiaImage.cs
Creates a new image by downsizing this image to fit within the specified maximum dimension.
public Microsoft.Maui.Graphics.IImage Downsize(float maxWidthOrHeight, bool disposeOriginal = false);
abstract member Downsize : single * bool -> Microsoft.Maui.Graphics.IImage
override this.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 the resulting image should have.
- disposeOriginal
- Boolean
Whether to dispose the original image after downsizing.
Returns
A new image instance with the downsized dimensions.
Implements
Applies to
Downsize(Single, Single, Boolean)
- Source:
- SkiaImage.cs
- Source:
- SkiaImage.cs
- Source:
- SkiaImage.cs
Creates a new image by downsizing this image to fit within the specified maximum dimensions.
public Microsoft.Maui.Graphics.IImage Downsize(float maxWidth, float maxHeight, bool disposeOriginal = false);
abstract member Downsize : single * single * bool -> Microsoft.Maui.Graphics.IImage
override this.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 the resulting image should have.
- maxHeight
- Single
The maximum height the resulting image should have.
- disposeOriginal
- Boolean
Whether to dispose the original image after downsizing.
Returns
A new image instance with the downsized dimensions.