SKCodec.StartIncrementalDecode Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| Name | Description |
|---|---|
| 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)
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.