SKCodec Class

Definition

An abstraction layer directly on top of an image codec.

public class SKCodec : SkiaSharp.SKObject
Inheritance

Properties

EncodedFormat

Gets the image encoding from the codec.

EncodedInfo

Gets the encoded image information from the codec.

EncodedOrigin

Gets the image origin from the codec.

FrameCount

Gets the number of frames in the encoded image.

FrameInfo

Gets information about the frames in the encoded image.

Handle

Gets or sets the handle to the underlying native object.

(Inherited from SKObject)
IgnorePublicDispose

Gets or sets a value indicating whether the call the public Dispose() should be no-op.

(Inherited from SKNativeObject)
Info

Gets the image information from the codec.

IsDisposed

Gets or sets a value indicating whether the object has already been disposed.

(Inherited from SKNativeObject)
MinBufferedBytesNeeded

Gets the minimum number of bytes that must be buffered in stream input.

NextScanline

Gets the y-coordinate of the next row to be returned by the scanline decoder.

Origin
Obsolete.

Gets the image origin from the codec.

OwnsHandle

Gets a value indicating whether this object should destroy the underlying native object.

(Inherited from SKObject)
Pixels

Gets the image data from the codec using the current Info.

RepetitionCount

Gets the number of times to repeat, if this image is animated.

ScanlineOrder

Gets the order in which scanlines will be returned by the scanline decoder.

Methods

Create(SKData)

Creates a codec from the specified data.

Create(SKStream)

Creates a codec from the specified stream.

Create(SKStream, SKCodecResult)

Creates a codec from the specified stream.

Create(Stream)

Creates a codec from the specified stream.

Create(Stream, SKCodecResult)

Creates a codec from the specified stream.

Create(String)

Creates a codec from the specified file.

Create(String, SKCodecResult)

Creates a codec from the specified file.

Dispose()

Releases all resources used by this SKNativeObject.

(Inherited from SKNativeObject)
Dispose(Boolean)

Releases the unmanaged resources used by the SKCodec and optionally releases the managed resources.

DisposeInternal()

Triggers a dispose, ignoring the value of IgnorePublicDispose.

(Inherited from SKNativeObject)
DisposeManaged()

Implemented by derived SKObject types to destroy any managed objects.

(Inherited from SKObject)
DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

DisposeNative()

Implemented by derived SKObject types to destroy any native objects.

(Inherited from SKObject)
DisposeUnownedManaged() (Inherited from SKObject)
GetFrameInfo(Int32, SKCodecFrameInfo)

Gets information about a specific frame in the encoded image.

GetOutputScanline(Int32)

Returns the output y-coordinate of the row that corresponds to an input y-coordinate.

GetPixels(Byte[])

Decode the bitmap into the specified memory block.

GetPixels(SKImageInfo, Byte[])

Decode the bitmap into the specified memory block.

GetPixels(SKImageInfo, Byte[])

Decode the bitmap into the specified memory block.

GetPixels(SKImageInfo, IntPtr)

Decode the bitmap into the specified memory block.

GetPixels(SKImageInfo, IntPtr, Int32, SKCodecOptions)

Decode the bitmap into the specified memory block.

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

Decode the bitmap into the specified memory block.

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

Decode the bitmap into the specified memory block.

GetPixels(SKImageInfo, IntPtr, IntPtr, Int32)
Obsolete.

Decode the bitmap into the specified memory block.

GetPixels(SKImageInfo, IntPtr, SKCodecOptions)

Decode the bitmap into the specified memory block.

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

Decode the bitmap into the specified memory block.

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

Decode the bitmap into the specified memory block.

GetPixels(SKImageInfo, IntPtr, SKColorTable, Int32)
Obsolete.

Developers should not use this obsolete method.

GetScaledDimensions(Single)

Returns a size that approximately supports the desired scale factor.

GetScanlines(IntPtr, Int32, Int32)

Writes the next set of scanlines into the destination.

GetValidSubset(SKRectI)

Modifies the specified subset to one that can decoded from this codec.

IncrementalDecode()

Start or continue the incremental decode.

IncrementalDecode(Int32)

Start or continue the incremental decode.

SkipScanlines(Int32)

Skip the specified number of scanlines.

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, IntPtr, Int32)
Obsolete.

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.

StartScanlineDecode(SKImageInfo)

Prepare for a scanline decode.

StartScanlineDecode(SKImageInfo, SKCodecOptions)

Prepare for a scanline decode with the specified options.

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

Prepare for a scanline decode with the specified options.

StartScanlineDecode(SKImageInfo, SKCodecOptions, SKColorTable, Int32)
Obsolete.

Prepare for a scanline decode with the specified options.

Applies to