SKImage.ScalePixels 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 |
|---|---|
| ScalePixels(SKPixmap, SKSamplingOptions) |
Copies the pixels from this image into the destination pixmap, scaling the image if the dimensions differ. |
| ScalePixels(SKPixmap, SKSamplingOptions, SKImageCachingHint) |
Copies the pixels from this image into the destination pixmap, scaling the image if the dimensions differ. |
ScalePixels(SKPixmap, SKSamplingOptions)
Copies the pixels from this image into the destination pixmap, scaling the image if the dimensions differ.
public bool ScalePixels(SkiaSharp.SKPixmap dst, SkiaSharp.SKSamplingOptions sampling);
Parameters
- dst
- SKPixmap
The destination pixmap.
- sampling
- SKSamplingOptions
The sampling options to use when scaling.
Returns
Returns true on success; otherwise false.
Applies to
ScalePixels(SKPixmap, SKSamplingOptions, 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.SKSamplingOptions sampling, SkiaSharp.SKImageCachingHint cachingHint);
Parameters
- dst
- SKPixmap
The destination pixmap.
- sampling
- SKSamplingOptions
The sampling options to use when scaling.
- cachingHint
- SKImageCachingHint
The caching hint to use for intermediate results.
Returns
Returns true on success; otherwise false.