Edit

SKBitmap.Resize Method

Definition

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.

Applies to