SKBitmap.Resize Method

Definition

Overloads

Resize(SKBitmap, SKBitmapResizeMethod)

Resizes the current bitmap using the specified resize method.

Resize(SKImageInfo, SKBitmapResizeMethod)

Resizes the current bitmap using the specified resize method.

Resize(SKImageInfo, SKFilterQuality)

Resizes the current bitmap using the specified quality filter.

Resize(SKBitmap, SKBitmap, SKBitmapResizeMethod)

Resizes the provided bitmap using the specified resize method.

Resize(SKBitmap, SKBitmapResizeMethod)

Warning

This API is now obsolete.

Resizes the current bitmap using the specified resize method.

[System.Obsolete("Use ScalePixels(SKBitmap, SKFilterQuality) instead.")]
public bool Resize (SkiaSharp.SKBitmap dst, SkiaSharp.SKBitmapResizeMethod method);

Parameters

dst
SKBitmap

The bitmap to store the resized pixels.

method
SKBitmapResizeMethod

The resize method.

Returns

Returns true if the resize operation can be performed, otherwise false.

Attributes

Resize(SKImageInfo, SKBitmapResizeMethod)

Warning

This API is now obsolete.

Resizes the current bitmap using the specified resize method.

[System.Obsolete("Use Resize(SKImageInfo, SKFilterQuality) instead.")]
public SkiaSharp.SKBitmap Resize (SkiaSharp.SKImageInfo info, SkiaSharp.SKBitmapResizeMethod method);

Parameters

info
SKImageInfo

The image information of the desired bitmap.

method
SKBitmapResizeMethod

The resize method.

Returns

Returns the resized bitmap if the resize operation could be performed, otherwise null.

Attributes

Resize(SKImageInfo, SKFilterQuality)

Resizes the current bitmap using the specified quality filter.

public SkiaSharp.SKBitmap Resize (SkiaSharp.SKImageInfo info, SkiaSharp.SKFilterQuality quality);

Parameters

info
SKImageInfo

The image information of the desired bitmap.

quality
SKFilterQuality

The level of quality to use when scaling the pixels.

Returns

Returns the resized bitmap if the resize operation could be performed, otherwise null.

Resize(SKBitmap, SKBitmap, SKBitmapResizeMethod)

Warning

This API is now obsolete.

Resizes the provided bitmap using the specified resize method.

[System.Obsolete("Use ScalePixels(SKBitmap, SKFilterQuality) instead.")]
public static bool Resize (SkiaSharp.SKBitmap dst, SkiaSharp.SKBitmap src, SkiaSharp.SKBitmapResizeMethod method);

Parameters

dst
SKBitmap

The bitmap to store the resized pixels.

src
SKBitmap

The bitmap to resize.

method
SKBitmapResizeMethod

The resize method.

Returns

Returns true if the resize operation can be performed, otherwise false.

Attributes

Applies to