SKPixmap.ReadPixels 方法

定義

多載

名稱 Description
ReadPixels(SKPixmap)

將影像中的像素複製到指定的像素地圖中。

ReadPixels(SKImageInfo, IntPtr, Int32)

將影像中的像素複製到指定的緩衝區。

ReadPixels(SKPixmap, Int32, Int32)

將影像中的像素複製到指定的像素地圖中。

ReadPixels(SKImageInfo, IntPtr, Int32, Int32, Int32)

將影像中的像素複製到指定的緩衝區。

ReadPixels(SKPixmap)

將影像中的像素複製到指定的像素地圖中。

public bool ReadPixels(SkiaSharp.SKPixmap pixmap);

參數

pixmap
SKPixmap

用來讀取像素資料的像素映射。

傳回

如果像素被讀取或true出現錯誤,則回傳false。

適用於

ReadPixels(SKImageInfo, IntPtr, Int32)

將影像中的像素複製到指定的緩衝區。

public bool ReadPixels(SkiaSharp.SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes);

參數

dstInfo
SKImageInfo

描述目標像素緩衝區的影像資訊。

dstPixels
IntPtr

像素緩衝區用來讀取像素資料。

dstRowBytes
Int32

目標緩衝區中每列的位元組數。

傳回

如果像素被讀取或true出現錯誤,則回傳false。

適用於

ReadPixels(SKPixmap, Int32, Int32)

將影像中的像素複製到指定的像素地圖中。

public bool ReadPixels(SkiaSharp.SKPixmap pixmap, int srcX, int srcY);

參數

pixmap
SKPixmap

用來讀取像素資料的像素映射。

srcX
Int32

從 source x 座標開始讀取。

srcY
Int32

從 source y 座標開始閱讀。

傳回

如果像素被讀取或true出現錯誤,則回傳false。

適用於

ReadPixels(SKImageInfo, IntPtr, Int32, Int32, Int32)

將影像中的像素複製到指定的緩衝區。

public bool ReadPixels(SkiaSharp.SKImageInfo dstInfo, IntPtr dstPixels, int dstRowBytes, int srcX, int srcY);

參數

dstInfo
SKImageInfo

描述目標像素緩衝區的影像資訊。

dstPixels
IntPtr

像素緩衝區用來讀取像素資料。

dstRowBytes
Int32

目標緩衝區中每列的位元組數。

srcX
Int32

從 source x 座標開始讀取。

srcY
Int32

從 source y 座標開始閱讀。

傳回

如果像素被讀取或true出現錯誤,則回傳false。

適用於