147148149150151152153154155156157
} public ArrayList getAllBufferedImages(ByteSource byteSource) throws ImageReadException, IOException { BufferedImage bi = getBufferedImage(byteSource, null); ArrayList result = new ArrayList(); result.add(bi);
2324252627282930
{ public BufferedImage getColorBufferedImage(int width, int height, boolean hasAlpha) { if (hasAlpha) return new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); return new BufferedImage(width, height, BufferedImage.TYPE_INT_RGB); }
30313233343536
} public BufferedImage getGrayscaleBufferedImage(int width, int height, boolean hasAlpha) { return new BufferedImage(width, height, BufferedImage.TYPE_INT_ARGB); }
5354555657585960
} public ImageWrapper(int[] a, int w, int h, boolean x) { For.get(x); image = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); image.getRaster().setDataBuffer(a); }
59606162636465
image.getRaster().setDataBuffer(a); } public ImageWrapper(int w, int h) { setImage(new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB)); }
7677787980818283
private void createImageFromArray(int[] a, int w, int h) { source = a; width = w; height = h; image = new BufferedImage(w, h, BufferedImage.TYPE_INT_ARGB); image.getRaster().setDataBuffer(a); }