編輯

共用方式為


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)
Obsolete.

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)
Obsolete.

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.

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

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

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

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

Caution

The Index8 color type and color table is no longer supported. Use InstallPixels(SKImageInfo, IntPtr, int) instead.

Installs the specified pixels into the bitmap.

public bool InstallPixels (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKColorTable ctable);
[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

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

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

Caution

The Index8 color type and color table is no longer supported. Use InstallPixels(SKImageInfo, IntPtr, int, SKBitmapReleaseDelegate, object) instead.

Developers should not use this obsolete method.

public bool InstallPixels (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKColorTable ctable, SkiaSharp.SKBitmapReleaseDelegate releaseProc, object context);
[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