- pixels
- The array to receive the bitmap's colors
- offset
- The first index to write into pixels[]
- stride
- The number of entries in pixels[] to skip between rows (must be >= bitmap's width). Can be negative.
- x
- The x coordinate of the first pixel to read from the bitmap
- y
- The y coordinate of the first pixel to read from the bitmap
- width
- The number of pixels to read from each row
- height
- The number of rows to read
Type Reason Java.Lang.IllegalArgumentException if x, y, width, height exceed the bounds of the bitmap, or if abs(stride) Java.Lang.ArrayIndexOutOfBoundsException if the pixels array is too small to receive the specified number of pixels.
Returns in pixels[] a copy of the data in the bitmap. Each value is a packed int representing a Android.Graphics._Color. The stride parameter allows the caller to allow for gaps in the returned pixels array between rows. For normal packed results, just pass width for the stride value. The returned colors are non-premultiplied ARGB values.