Edit

SKGraphiteContext.RequestReadPixels Method

Definition

Overloads

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

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

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

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

RequestReadPixels(SKSurface, SKImageInfo, SKRectI, Action<SKImageReadPixelsResult>)

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

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

Parameters

surface
SKSurface

The surface to read pixels from.

dstInfo
SKImageInfo

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

srcRect
SKRectI

The rectangle of the surface to read, in pixels.

callback
Action<SKImageReadPixelsResult>

The callback invoked with the read result, which is valid only for the duration of the call.

Applies to

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

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

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

Parameters

surface
SKSurface

The surface to read pixels from.

dstInfo
SKImageInfo

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

srcRect
SKRectI

The rectangle of the surface 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