編輯

共用方式為


SKBitmap.Decode Method

Definition

Overloads

Decode(String, SKImageInfo)

Decode a bitmap for the specified filename and destination image information.

Decode(ReadOnlySpan<Byte>, SKImageInfo)
Decode(Stream, SKImageInfo)

Decode a bitmap using the specified stream and destination image information.

Decode(Byte[], SKImageInfo)

Decode a bitmap using the specified byte buffer and destination image information.

Decode(SKStream, SKImageInfo)

Decode a bitmap using the specified stream and destination image information.

Decode(SKData, SKImageInfo)

Decode a bitmap using the specified data and destination image information.

Decode(SKCodec, SKImageInfo)

Decode a bitmap using the specified codec and destination image information.

Decode(Byte[])

Decode a bitmap using the specified byte buffer.

Decode(ReadOnlySpan<Byte>)
Decode(Stream)

Decode a bitmap using the specified stream and destination image information.

Decode(SKStream)

Decode a bitmap using the specified stream.

Decode(SKData)

Decode a bitmap using the specified data.

Decode(SKCodec)

Decode a bitmap using the specified codec.

Decode(String)

Decode a bitmap for the specified filename.

Decode(String, SKImageInfo)

Decode a bitmap for the specified filename and destination image information.

public static SkiaSharp.SKBitmap Decode (string filename, SkiaSharp.SKImageInfo bitmapInfo);

Parameters

filename
String

The filename of the bitmap to decode.

bitmapInfo
SKImageInfo

The destination image information.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(ReadOnlySpan<Byte>, SKImageInfo)

public static SkiaSharp.SKBitmap Decode (ReadOnlySpan<byte> buffer, SkiaSharp.SKImageInfo bitmapInfo);

Parameters

buffer
ReadOnlySpan<Byte>
bitmapInfo
SKImageInfo

Returns

Applies to

Decode(Stream, SKImageInfo)

Decode a bitmap using the specified stream and destination image information.

public static SkiaSharp.SKBitmap Decode (System.IO.Stream stream, SkiaSharp.SKImageInfo bitmapInfo);

Parameters

stream
Stream

The stream to decode.

bitmapInfo
SKImageInfo

The destination image information.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(Byte[], SKImageInfo)

Decode a bitmap using the specified byte buffer and destination image information.

public static SkiaSharp.SKBitmap Decode (byte[] buffer, SkiaSharp.SKImageInfo bitmapInfo);

Parameters

buffer
Byte[]

The byte buffer to decode.

bitmapInfo
SKImageInfo

The destination image information.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(SKStream, SKImageInfo)

Decode a bitmap using the specified stream and destination image information.

public static SkiaSharp.SKBitmap Decode (SkiaSharp.SKStream stream, SkiaSharp.SKImageInfo bitmapInfo);

Parameters

stream
SKStream

The stream to decode.

bitmapInfo
SKImageInfo

The destination image information.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(SKData, SKImageInfo)

Decode a bitmap using the specified data and destination image information.

public static SkiaSharp.SKBitmap Decode (SkiaSharp.SKData data, SkiaSharp.SKImageInfo bitmapInfo);

Parameters

data
SKData

The data to decode.

bitmapInfo
SKImageInfo

The destination image information.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(SKCodec, SKImageInfo)

Decode a bitmap using the specified codec and destination image information.

public static SkiaSharp.SKBitmap Decode (SkiaSharp.SKCodec codec, SkiaSharp.SKImageInfo bitmapInfo);

Parameters

codec
SKCodec

The codec to decode.

bitmapInfo
SKImageInfo

The destination image information.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(Byte[])

Decode a bitmap using the specified byte buffer.

public static SkiaSharp.SKBitmap Decode (byte[] buffer);

Parameters

buffer
Byte[]

The byte buffer to decode.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(ReadOnlySpan<Byte>)

public static SkiaSharp.SKBitmap Decode (ReadOnlySpan<byte> buffer);

Parameters

buffer
ReadOnlySpan<Byte>

Returns

Applies to

Decode(Stream)

Decode a bitmap using the specified stream and destination image information.

public static SkiaSharp.SKBitmap Decode (System.IO.Stream stream);

Parameters

stream
Stream

The stream to decode.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(SKStream)

Decode a bitmap using the specified stream.

public static SkiaSharp.SKBitmap Decode (SkiaSharp.SKStream stream);

Parameters

stream
SKStream

The stream to decode.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(SKData)

Decode a bitmap using the specified data.

public static SkiaSharp.SKBitmap Decode (SkiaSharp.SKData data);

Parameters

data
SKData

The data to decode.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(SKCodec)

Decode a bitmap using the specified codec.

public static SkiaSharp.SKBitmap Decode (SkiaSharp.SKCodec codec);

Parameters

codec
SKCodec

The codec to decode.

Returns

The decoded bitmap, or null on error.

Applies to

Decode(String)

Decode a bitmap for the specified filename.

public static SkiaSharp.SKBitmap Decode (string filename);

Parameters

filename
String

The filename of the bitmap to decode.

Returns

The decoded bitmap, or null on error.

Applies to