Image.Plane.PixelStride Property
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.
The distance between adjacent pixel samples, in bytes.
public abstract int PixelStride { [Android.Runtime.Register("getPixelStride", "()I", "GetGetPixelStrideHandler")] get; }
[<get: Android.Runtime.Register("getPixelStride", "()I", "GetGetPixelStrideHandler")>]
member this.PixelStride : int
Property Value
- Attributes
Remarks
The distance between adjacent pixel samples, in bytes.
This is the distance between two consecutive pixel values in a row of pixels. It may be larger than the size of a single pixel to account for interleaved image data or padded formats. Note that pixel stride is undefined for some formats such as RAW_PRIVATE, and calling getPixelStride on images of these formats will cause an UnsupportedOperationException being thrown. For formats where pixel stride is well defined, the pixel stride is always greater than 0.
Android reference for android.media.Image.Plane.getPixelStride.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.