편집

다음을 통해 공유


SKImage.ScalePixels Method

Definition

Overloads

ScalePixels(SKPixmap, SKFilterQuality)

Copies the pixels from this image into the destination pixmap, scaling the image if the dimensions differ.

ScalePixels(SKPixmap, SKFilterQuality, SKImageCachingHint)

Copies the pixels from this image into the destination pixmap, scaling the image if the dimensions differ.

ScalePixels(SKPixmap, SKFilterQuality)

Copies the pixels from this image into the destination pixmap, scaling the image if the dimensions differ.

public bool ScalePixels (SkiaSharp.SKPixmap dst, SkiaSharp.SKFilterQuality quality);

Parameters

dst
SKPixmap

The pixmap describing the destination pixel buffer.

quality
SKFilterQuality

The quality of scaling to use.

Returns

Returns true on success, or false if the color type/alpha type could not be converted to the destination types.

Applies to

ScalePixels(SKPixmap, SKFilterQuality, SKImageCachingHint)

Copies the pixels from this image into the destination pixmap, scaling the image if the dimensions differ.

public bool ScalePixels (SkiaSharp.SKPixmap dst, SkiaSharp.SKFilterQuality quality, SkiaSharp.SKImageCachingHint cachingHint);

Parameters

dst
SKPixmap

The pixmap describing the destination pixel buffer.

quality
SKFilterQuality

The quality of scaling to use.

cachingHint
SKImageCachingHint

Whether or not to cache intermediate results.

Returns

Returns true on success, or false if the color type/alpha type could not be converted to the destination types.

Applies to