語言

Bitmap.RowBytes 屬性

定義

回傳點陣像素中各行之間的位元組數。

public int RowBytes { [Android.Runtime.Register("getRowBytes", "()I", "")] get; }
[<get: Android.Runtime.Register("getRowBytes", "()I", "")>]
member this.RowBytes : int

屬性值

原生點陣圖像素列間位元組數。

屬性

備註

回傳點陣像素中各行之間的位元組數。 請注意,這裡指的是點陣圖原生儲存的像素。 如果你呼叫 getPixels() 或 setPixels(),則這些像素會一致地視為 32 位元值,並依照 Color 類別打包。

截至目前 android.os.Build.VERSION_CODES#KITKAT,此方法不應用於計算位圖的記憶體使用量。 請參見 #getAllocationByteCount()。

Java 文件 android.graphics.Bitmap.getRowBytes()。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於