SKBitmap.Resize 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
| Name | Description |
|---|---|
| Resize(SKImageInfo, SKSamplingOptions) |
Resizes the bitmap to the specified size using the sampling options. |
| Resize(SKSizeI, SKSamplingOptions) |
Resizes the bitmap to the specified size using the sampling options. |
Resize(SKImageInfo, SKSamplingOptions)
Resizes the bitmap to the specified size using the sampling options.
public SkiaSharp.SKBitmap Resize(SkiaSharp.SKImageInfo info, SkiaSharp.SKSamplingOptions sampling);
Parameters
- info
- SKImageInfo
The destination image information.
- sampling
- SKSamplingOptions
The sampling options for resizing.
Returns
The resized bitmap, or null on error.
Applies to
Resize(SKSizeI, SKSamplingOptions)
Resizes the bitmap to the specified size using the sampling options.
public SkiaSharp.SKBitmap Resize(SkiaSharp.SKSizeI size, SkiaSharp.SKSamplingOptions sampling);
Parameters
- size
- SKSizeI
The destination size.
- sampling
- SKSamplingOptions
The sampling options for resizing.
Returns
The resized bitmap, or null on error.