Edit

SKImage.RequestReadPixels Method

Definition

Overloads

Name Description
RequestReadPixels(SKImageInfo, SKRectI, SKImageRescaleGamma, SKImageRescaleMode, Action<SKImageReadPixelsResult>)

Asynchronously reads and rescales pixels from the image into a result delivered to a callback.

RequestReadPixels(SKImageInfo, SKRectI, Action<SKImageReadPixelsResult>)

Asynchronously reads pixels from the image into a result delivered to a callback, using nearest sampling.

RequestReadPixels(SKImageInfo, SKRectI, SKImageRescaleGamma, SKImageRescaleMode, Action<SKImageReadPixelsResult>)

Asynchronously reads and rescales pixels from the image into a result delivered to a callback.

public void RequestReadPixels(SkiaSharp.SKImageInfo info, SkiaSharp.SKRectI srcRect, SkiaSharp.SKImageRescaleGamma rescaleGamma, SkiaSharp.SKImageRescaleMode rescaleMode, Action<SkiaSharp.SKImageReadPixelsResult> callback);

Parameters

info
SKImageInfo

The image info describing the desired size and format of the result.

srcRect
SKRectI

The rectangle of the image to read, in pixels.

rescaleGamma
SKImageRescaleGamma

One of the enumeration values that specifies the gamma space used for rescaling.

rescaleMode
SKImageRescaleMode

One of the enumeration values that specifies the sampling algorithm used for rescaling.

callback
Action<SKImageReadPixelsResult>

The callback invoked with the read result, or null if the read fails; the result is valid only for the duration of the call.

Applies to

RequestReadPixels(SKImageInfo, SKRectI, Action<SKImageReadPixelsResult>)

Asynchronously reads pixels from the image into a result delivered to a callback, using nearest sampling.

public void RequestReadPixels(SkiaSharp.SKImageInfo info, SkiaSharp.SKRectI srcRect, Action<SkiaSharp.SKImageReadPixelsResult> callback);

Parameters

info
SKImageInfo

The image info describing the desired size and format of the result.

srcRect
SKRectI

The rectangle of the image to read, in pixels.

callback
Action<SKImageReadPixelsResult>

The callback invoked with the read result, or null if the read fails; the result is valid only for the duration of the call.

Applies to