SKCodec.Create Method

Definition

Overloads

Create(SKData)

Creates a codec from the specified data.

Create(SKStream)

Creates a codec from the specified stream.

Create(Stream)

Creates a codec from the specified stream.

Create(String)

Creates a codec from the specified file.

Create(SKStream, SKCodecResult)

Creates a codec from the specified stream.

Create(Stream, SKCodecResult)

Creates a codec from the specified stream.

Create(String, SKCodecResult)

Creates a codec from the specified file.

Create(SKData)

Creates a codec from the specified data.

public static SkiaSharp.SKCodec Create (SkiaSharp.SKData data);

Parameters

data
SKData

The data to use when creating the codec.

Returns

Returns the new instance of the codec, or null if there was an error.

Create(SKStream)

Creates a codec from the specified stream.

public static SkiaSharp.SKCodec Create (SkiaSharp.SKStream stream);

Parameters

stream
SKStream

The stream to use when creating the codec.

Returns

Returns the new instance of the codec, or null if there was an error.

Remarks

If null is returned, the stream is deleted immediately. Otherwise, the codec takes ownership of it, and will delete it when done with it.

Create(Stream)

Creates a codec from the specified stream.

public static SkiaSharp.SKCodec Create (System.IO.Stream stream);

Parameters

stream
Stream

The stream to use when creating the codec.

Returns

Returns the new instance of the codec, or null if there was an error.

Remarks

If null is returned, the stream is deleted immediately. Otherwise, the codec takes ownership of it, and will delete it when done with it.

Create(String)

Creates a codec from the specified file.

public static SkiaSharp.SKCodec Create (string filename);

Parameters

filename
String

The path to an encoded image on the file system.

Returns

Returns the new instance of the codec, or null if there was an error.

Create(SKStream, SKCodecResult)

Creates a codec from the specified stream.

public static SkiaSharp.SKCodec Create (SkiaSharp.SKStream stream, out SkiaSharp.SKCodecResult result);

Parameters

stream
SKStream

The stream to use when creating the codec.

result
SKCodecResult

The result of the creation operation.

Returns

Returns the new instance of the codec, or null if there was an error.

Remarks

If null is returned, the stream is deleted immediately. Otherwise, the codec takes ownership of it, and will delete it when done with it.

Create(Stream, SKCodecResult)

Creates a codec from the specified stream.

public static SkiaSharp.SKCodec Create (System.IO.Stream stream, out SkiaSharp.SKCodecResult result);

Parameters

stream
Stream

The stream to use when creating the codec.

result
SKCodecResult

The result of the creation operation.

Returns

Returns the new instance of the codec, or null if there was an error.

Remarks

If null is returned, the stream is deleted immediately. Otherwise, the codec takes ownership of it, and will delete it when done with it.

Create(String, SKCodecResult)

Creates a codec from the specified file.

public static SkiaSharp.SKCodec Create (string filename, out SkiaSharp.SKCodecResult result);

Parameters

filename
String

The path to an encoded image on the file system.

result
SKCodecResult

The result of the creation operation.

Returns

Returns the new instance of the codec, or null if there was an error.

Applies to