SKBitmap.InstallPixels Method

Definition

Overloads

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, SKColorTable)

Installs the specified pixels into the bitmap.

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

Installs the specified pixels into the bitmap.

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

Developers should not use this obsolete method.

InstallPixels(SKPixmap)

Installs the specified pixels into the bitmap.

public bool InstallPixels (SkiaSharp.SKPixmap pixmap);

Parameters

pixmap
SKPixmap

The pixels to install.

Returns

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

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

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

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

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

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

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

InstallPixels(SKImageInfo, IntPtr, Int32, SKColorTable)

Warning

This API is now obsolete.

Installs the specified pixels into the bitmap.

[System.Obsolete("The Index8 color type and color table is no longer supported. Use InstallPixels(SKImageInfo, IntPtr, int) instead.")]
public bool InstallPixels (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKColorTable ctable);

Parameters

info
SKImageInfo

The image information describing the pixels.

pixels
IntPtr

The pixels to install.

rowBytes
Int32

The stride of the pixels being installed.

ctable
SKColorTable

The color table to use, if installing Index8 pixels.

Returns

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

Attributes

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

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

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

Warning

This API is now obsolete.

Developers should not use this obsolete method.

[System.Obsolete("The Index8 color type and color table is no longer supported. Use InstallPixels(SKImageInfo, IntPtr, int, SKBitmapReleaseDelegate, object) instead.")]
public bool InstallPixels (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKColorTable ctable, 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.

ctable
SKColorTable

Pixel8 is no longer supported.

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

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

Attributes

Applies to