BufferedImage image = ImageIO.read(new File("F:\\meinv.bmp")); int width = image.getWidth(); int height = image.getHeight(); System.out.println(image.getWidth()); System.out.println(image.getHeight());
int rgb = image.getRGB(1,150);
Color col = new Color(rgb, true); System.out.println(col.getRed()); System.out.println(col.getGreen()); System.out.println(col.getBlue()); System.out.println(col.getAlpha());
|