편집

다음을 통해 공유


SKCodec.StartIncrementalDecode Method

Definition

Overloads

StartIncrementalDecode(SKImageInfo, IntPtr, Int32)

Prepare for an incremental decode with the specified options.

StartIncrementalDecode(SKImageInfo, IntPtr, Int32, SKCodecOptions)

Prepare for an incremental decode with the specified options.

StartIncrementalDecode(SKImageInfo, IntPtr, Int32, SKCodecOptions, SKColorTable, Int32)
Obsolete.

Prepare for an incremental decode with the specified options.

StartIncrementalDecode(SKImageInfo, IntPtr, Int32, SKCodecOptions, IntPtr, Int32)
Obsolete.

Prepare for an incremental decode with the specified options.

StartIncrementalDecode(SKImageInfo, IntPtr, Int32)

Prepare for an incremental decode with the specified options.

public SkiaSharp.SKCodecResult StartIncrementalDecode (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes);

Parameters

info
SKImageInfo

The image information of the destination. If the dimensions do not match those of Info, this implies a scale.

pixels
IntPtr

The memory to write to. Needs to be large enough to hold the subset, if present, or the full image.

rowBytes
Int32

The stride of the memory to write to.

Returns

Returns Success on success, or another value explaining the type of failure.

Applies to

StartIncrementalDecode(SKImageInfo, IntPtr, Int32, SKCodecOptions)

Prepare for an incremental decode with the specified options.

public SkiaSharp.SKCodecResult StartIncrementalDecode (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKCodecOptions options);

Parameters

info
SKImageInfo

The image information of the destination. If the dimensions do not match those of Info, this implies a scale.

pixels
IntPtr

The memory to write to. Needs to be large enough to hold the subset, if present, or the full image.

rowBytes
Int32

The stride of the memory to write to.

options
SKCodecOptions

The decoding options, including if memory is zero initialized and whether to decode a subset.

Returns

Returns Success on success, or another value explaining the type of failure.

Applies to

StartIncrementalDecode(SKImageInfo, IntPtr, Int32, SKCodecOptions, SKColorTable, Int32)

Caution

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

Prepare for an incremental decode with the specified options.

public SkiaSharp.SKCodecResult StartIncrementalDecode (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKCodecOptions options, SkiaSharp.SKColorTable colorTable, ref int colorTableCount);
[System.Obsolete("The Index8 color type and color table is no longer supported. Use StartIncrementalDecode(SKImageInfo, IntPtr, int, SKCodecOptions) instead.")]
public SkiaSharp.SKCodecResult StartIncrementalDecode (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKCodecOptions options, SkiaSharp.SKColorTable colorTable, ref int colorTableCount);

Parameters

info
SKImageInfo

The image information of the destination. If the dimensions do not match those of Info, this implies a scale.

pixels
IntPtr

The memory to write to. Needs to be large enough to hold the subset, if present, or the full image.

rowBytes
Int32

The stride of the memory to write to.

options
SKCodecOptions

The decoding options, including if memory is zero initialized and whether to decode a subset.

colorTable
SKColorTable

The color table to use.

colorTableCount
Int32

The size of the color table.

Returns

Returns Success on success, or another value explaining the type of failure.

Attributes

Applies to

StartIncrementalDecode(SKImageInfo, IntPtr, Int32, SKCodecOptions, IntPtr, Int32)

Caution

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

Prepare for an incremental decode with the specified options.

public SkiaSharp.SKCodecResult StartIncrementalDecode (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKCodecOptions options, IntPtr colorTable, ref int colorTableCount);
[System.Obsolete("The Index8 color type and color table is no longer supported. Use StartIncrementalDecode(SKImageInfo, IntPtr, int, SKCodecOptions) instead.")]
public SkiaSharp.SKCodecResult StartIncrementalDecode (SkiaSharp.SKImageInfo info, IntPtr pixels, int rowBytes, SkiaSharp.SKCodecOptions options, IntPtr colorTable, ref int colorTableCount);

Parameters

info
SKImageInfo

The image information of the destination. If the dimensions do not match those of Info, this implies a scale.

pixels
IntPtr

The memory to write to. Needs to be large enough to hold the subset, if present, or the full image.

rowBytes
Int32

The stride of the memory to write to.

options
SKCodecOptions

The decoding options, including if memory is zero initialized and whether to decode a subset.

colorTable
IntPtr

The pointer to the color table to use.

colorTableCount
Int32

The size of the color table.

Returns

Returns Success on success, or another value explaining the type of failure.

Attributes

Applies to