SKBitmap.Decode 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
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(ReadOnlySpan<Byte>)
public static SkiaSharp.SKBitmap Decode (ReadOnlySpan<byte> buffer);
Parameters
- buffer
- ReadOnlySpan<Byte>
Returns
Applies to
Decode(Stream)
Decode(SKStream)
Decode(SKData)
Decode(SKCodec)
SkiaSharp