語言

Image.Plane.PixelStride 屬性

定義

相鄰像素樣本間的距離,以位元組為單位。

public abstract int PixelStride { [Android.Runtime.Register("getPixelStride", "()I", "GetGetPixelStrideHandler")] get; }
[<get: Android.Runtime.Register("getPixelStride", "()I", "GetGetPixelStrideHandler")>]
member this.PixelStride : int

屬性值

屬性

備註

相鄰像素樣本間的距離,以位元組為單位。

這是一排像素中兩個連續像素值之間的距離。 為了考慮交錯影像資料或填充格式,它可能比單一像素還大。 請注意,像素步幅對於某些格式如 RAW_PRIVATE 未定義,呼叫這些格式的圖片 getPixelStride 會導致拋出 UnsupportedOperationException。 對於像素步幅定義明確的格式,像素步幅總是大於 0。

Android 參考資料。android.media.Image.Plane.getPixelStride

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

適用於