SKBitmap.DecodeBounds 方法

定義

多載

名稱 Description
DecodeBounds(String)

解碼指定檔名的點陣圖資訊。

DecodeBounds(ReadOnlySpan<Byte>)

回傳影像資訊,但不會完全解碼資料。

DecodeBounds(Stream)

利用指定的串流解碼點陣資訊。

DecodeBounds(Byte[])

利用指定的位元組緩衝區解碼點陣資訊。

DecodeBounds(SKData)

利用指定資料解碼點陣資訊。

DecodeBounds(SKStream)

利用指定的串流解碼點陣資訊。

DecodeBounds(String)

解碼指定檔名的點陣圖資訊。

public static SkiaSharp.SKImageInfo DecodeBounds(string filename);

參數

filename
String

要解碼的位圖檔名。

傳回

解碼後的點陣圖資訊,或 Empty 是是否有錯誤。

適用於

DecodeBounds(ReadOnlySpan<Byte>)

回傳影像資訊,但不會完全解碼資料。

public static SkiaSharp.SKImageInfo DecodeBounds(ReadOnlySpan<byte> buffer);

參數

buffer
ReadOnlySpan<Byte>

編碼的影像資料。

傳回

影像資訊,或 Empty 錯誤時。

適用於

DecodeBounds(Stream)

利用指定的串流解碼點陣資訊。

public static SkiaSharp.SKImageInfo DecodeBounds(System.IO.Stream stream);

參數

stream
Stream

要解碼的串流。

傳回

解碼後的點陣圖資訊,或 Empty 是是否有錯誤。

適用於

DecodeBounds(Byte[])

利用指定的位元組緩衝區解碼點陣資訊。

public static SkiaSharp.SKImageInfo DecodeBounds(byte[] buffer);

參數

buffer
Byte[]

要解碼的位元組緩衝區。

傳回

解碼後的點陣圖資訊,或 Empty 是是否有錯誤。

適用於

DecodeBounds(SKData)

利用指定資料解碼點陣資訊。

public static SkiaSharp.SKImageInfo DecodeBounds(SkiaSharp.SKData data);

參數

data
SKData

要解碼的數據。

傳回

解碼後的點陣圖資訊,或 Empty 是是否有錯誤。

適用於

DecodeBounds(SKStream)

利用指定的串流解碼點陣資訊。

public static SkiaSharp.SKImageInfo DecodeBounds(SkiaSharp.SKStream stream);

參數

stream
SKStream

要解碼的串流。

傳回

解碼後的點陣圖資訊,或 Empty 是是否有錯誤。

適用於