Edit

SKBitmap.InstallPixels Method

Definition

Overloads

Name Description
InstallPixels(SKPixmap)

Installs the specified pixels into the bitmap.

InstallPixels(SKImageInfo, IntPtr)

Installs the specified pixels into the bitmap.

InstallPixels(SKImageInfo, IntPtr, Int32)

Installs the specified pixels into the bitmap.

InstallPixels(SKImageInfo, IntPtr, Int32, SKBitmapReleaseDelegate)

Installs the specified pixels into the bitmap.

InstallPixels(SKImageInfo, IntPtr, Int32, SKBitmapReleaseDelegate, Object)

Installs the specified pixels into the bitmap.

InstallPixels(SKPixmap)

Installs the specified pixels into the bitmap.

public bool InstallPixels(SkiaSharp.SKPixmap pixmap);

Parameters

pixmap
SKPixmap

The pixels to install.

Returns

true on success, or false on failure. If there was an error, the bitmap will be set to empty.

Applies to

InstallPixels(SKImageInfo, IntPtr)

Installs the specified pixels into the bitmap.

public bool InstallPixels(SkiaSharp.SKImageInfo info, IntPtr pixels);

Parameters

info
SKImageInfo

The image information describing the pixels.

pixels
IntPtr

The pixels to install.

Returns

true on success, or false on failure. If there was an error, the bitmap will be set to empty.

Applies to

InstallPixels(SKImageInfo, IntPtr, Int32)

Installs the specified pixels into the bitmap.

public bool InstallPixels(SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes);

Parameters

info
SKImageInfo

The image information describing the pixels.

pixels
IntPtr

The pixels to install.

rowBytes
Int32

The stride of the pixels being installed.

Returns

true on success, or false on failure. If there was an error, the bitmap will be set to empty.

Applies to

InstallPixels(SKImageInfo, IntPtr, Int32, SKBitmapReleaseDelegate)

Installs the specified pixels into the bitmap.

public bool InstallPixels(SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKBitmapReleaseDelegate releaseProc);

Parameters

info
SKImageInfo

The image information describing the pixels.

pixels
IntPtr

The pixels to install.

rowBytes
Int32

The stride of the pixels being installed.

releaseProc
SKBitmapReleaseDelegate

The delegate to invoke when the pixels are no longer referenced.

Returns

true on success, or false on failure. If there was an error, the bitmap will be set to empty.

Applies to

InstallPixels(SKImageInfo, IntPtr, Int32, SKBitmapReleaseDelegate, Object)

Installs the specified pixels into the bitmap.

public bool InstallPixels(SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKBitmapReleaseDelegate releaseProc, object context);

Parameters

info
SKImageInfo

The image information describing the pixels.

pixels
IntPtr

The pixels to install.

rowBytes
Int32

The stride of the pixels being installed.

releaseProc
SKBitmapReleaseDelegate

The delegate to invoke when the pixels are no longer referenced.

context
Object

The user data to use when invoking the delegate.

Returns

true on success, or false on failure. If there was an error, the bitmap will be set to empty.

Applies to