Lines Matching defs:pixels

320      * to try to access its pixels, and the bitmap will not draw.
381 * how pixels are stored. This affects the quality (color depth) as
460 * <p>Copy the bitmap's pixels into the specified buffer (allocated by the
462 * hold all of the pixels (taking into account the number of bytes per
466 * that if this bitmap stores its pixels pre-multiplied
490 throw new RuntimeException("Buffer not large enough for pixels");
502 * <p>Copy the pixels from the buffer, beginning at the current position,
503 * overwriting the bitmap's pixels. The data in the buffer is not changed
530 throw new RuntimeException("Buffer not large enough for pixels");
544 * this bitmap's pixels into the new bitmap. If the conversion is not
550 * its pixels can be modified)
624 * @param width The number of pixels in each row
648 * @param width The number of pixels in each row
650 * @param m Optional matrix to be applied to the pixels
828 * @param colors Array of {@link Color} used to initialize the pixels.
839 * the color array's length is less than the number of pixels.
853 * @param colors Array of {@link Color} used to initialize the pixels.
864 * the color array's length is less than the number of pixels.
895 * @param colors Array of {@link Color} used to initialize the pixels.
903 * the color array's length is less than the number of pixels.
916 * @param colors Array of {@link Color} used to initialize the pixels.
924 * the color array's length is less than the number of pixels.
974 * pixels).
1005 * <p>Indicates whether pixels stored in this bitmaps are stored pre-multiplied.
1022 * @return true if the underlying pixels have been pre-multiplied, false
1128 * Return the number of bytes between rows in the bitmap's pixels. Note that
1129 * this refers to the pixels as stored natively by the bitmap. If you call
1130 * getPixels() or setPixels(), then the pixels are uniformly treated as
1137 * @return number of bytes between rows of the native bitmap pixels.
1144 * Returns the minimum number of bytes that can be used to store this bitmap's pixels.
1156 * Returns the size of the allocated memory used to store this bitmap's pixels.
1187 * if the pixels may contain non-opaque alpha values. For some configs,
1190 * known that all of its pixels are opaque. In this case hasAlpha() will
1199 * Tell the bitmap if all of the pixels are known to be opaque (false)
1200 * or if some of the pixels may contain non-opaque alpha values (true).
1258 * Fills the bitmap's pixels with the specified {@link Color}.
1287 * Returns in pixels[] a copy of the data in the bitmap. Each value is
1289 * the caller to allow for gaps in the returned pixels array between
1293 * @param pixels The array to receive the bitmap's colors
1294 * @param offset The first index to write into pixels[]
1295 * @param stride The number of entries in pixels[] to skip between
1301 * @param width The number of pixels to read from each row
1306 * @throws ArrayIndexOutOfBoundsException if the pixels array is too small
1307 * to receive the specified number of pixels.
1309 public void getPixels(int[] pixels, int offset, int stride,
1315 checkPixelsAccess(x, y, width, height, offset, stride, pixels);
1316 nativeGetPixels(mNativeBitmap, pixels, offset, stride,
1341 * @param x left edge of the area of pixels to access
1342 * @param y top edge of the area of pixels to access
1343 * @param width width of the area of pixels to access
1344 * @param height height of the area of pixels to access
1345 * @param offset offset into pixels[] array
1346 * @param stride number of elements in pixels[] between each logical row
1347 * @param pixels array to hold the area of pixels being accessed
1350 int offset, int stride, int pixels[]) {
1370 int length = pixels.length;
1401 * <p>Replace pixels in the bitmap with the colors in the array. Each element
1405 * @param pixels The colors to write to the bitmap
1406 * @param offset The index of the first color to read from pixels[]
1407 * @param stride The number of colors in pixels[] to skip between rows.
1414 * @param width The number of colors to copy from pixels[] per row
1420 * @throws ArrayIndexOutOfBoundsException if the pixels array is too small
1421 * to receive the specified number of pixels.
1423 public void setPixels(int[] pixels, int offset, int stride,
1432 checkPixelsAccess(x, y, width, height, offset, stride, pixels);
1433 nativeSetPixels(mNativeBitmap, pixels, offset, stride,
1465 * Write the bitmap and its pixels to the parcel. The bitmap can be
1535 * ensure that the pixels have been decoded.
1587 private static native void nativeGetPixels(int nativeBitmap, int[] pixels,