편집

다음을 통해 공유


SKSurface.PeekPixels Method

Definition

Overloads

PeekPixels()

Returns the pixels, if they are available.

PeekPixels(SKPixmap)

Returns the pixmap of the surface.

PeekPixels()

Returns the pixels, if they are available.

public SkiaSharp.SKPixmap PeekPixels ();

Returns

Returns the pixels, if they are available, otherwise null.

Remarks

If the pixels are available, then the surface is only valid until the surface changes in any way, in which case the pixmap becomes invalid.

Applies to

PeekPixels(SKPixmap)

Returns the pixmap of the surface.

public bool PeekPixels (SkiaSharp.SKPixmap pixmap);

Parameters

pixmap
SKPixmap

The pixmap to receive the pixel information.

Returns

Returns true on success, or false if the surface does not have access to pixel data.

Applies to