Lines Matching defs:image

35 import java.awt.image.BufferedImage;
127 BufferedImage image = ImageIO.read(input);
128 if (image == null && input.exists()) {
129 // There was a problem decoding the image, or the decoder isn't registered. Webp maybe.
130 // Replace with a broken image icon.
138 image = ImageIO.read(brokenFile);
142 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888);
183 * @param image the bitmap content
190 public static Bitmap createBitmap(BufferedImage image, boolean isMutable, Density density) {
191 return createBitmap(image, getPremultipliedBitmapCreateFlags(isMutable), density);
197 * @param image the bitmap content
204 public static Bitmap createBitmap(BufferedImage image, Set<BitmapCreateFlags> createFlags,
206 // create a delegate with the given image.
207 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ARGB_8888);
255 // create the image
256 BufferedImage image = new BufferedImage(width, height, imageType);
259 image.setRGB(0, 0, width, height, colors, offset, stride);
263 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig));
283 // create the image
284 BufferedImage image = new BufferedImage(width, height, imageType);
286 // copy the source image into the image.
289 image.setRGB(0, 0, width, height, argb, 0, width);
292 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.nativeToConfig(nativeConfig));
351 BufferedImage image = delegate.mImage;
353 Graphics2D g = image.createGraphics();
357 g.fillRect(0, 0, image.getWidth(), image.getHeight());
508 BufferedImage image = createCopy(bitmap.getImage(), BufferedImage.TYPE_INT_ARGB, alpha);
511 Bitmap_Delegate delegate = new Bitmap_Delegate(image, Config.ALPHA_8);
614 private Bitmap_Delegate(BufferedImage image, Config config) {
615 mImage = image;
647 * @param image the image to copy
648 * @param imageType the type of the new image
652 /*package*/ static BufferedImage createCopy(BufferedImage image, int imageType, int alpha) {
653 int w = image.getWidth();
654 int h = image.getHeight();
659 image.getRGB(0, 0, image.getWidth(), image.getHeight(), argb, 0, image.getWidth());