編集

次の方法で共有


SKBitmap.PeekPixels Method

Definition

Overloads

PeekPixels()

Returns the pixels if they are available without having to lock the bitmap.

PeekPixels(SKPixmap)

Returns the pixmap of the bitmap.

PeekPixels()

Returns the pixels if they are available without having to lock the bitmap.

public SkiaSharp.SKPixmap PeekPixels ();

Returns

Returns the pixels if they are available, otherwise null.

Remarks

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

Applies to

PeekPixels(SKPixmap)

Returns the pixmap of the bitmap.

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 bitmap does not have access to pixel data.

Applies to