1 2 3 4 5 6 7 8 9 10 11 12 13 14
| points = new Point[5];
points[0] = new Point(1, 1);
points[1] = new Point(imageFond.getWidth()-1,1);
points[2] = new Point(1,imageFond.getHeight()-1);
points[3] = new Point(imageFond.getWidth(), imageFond.getHeight());
points[4] = new Point(imageFond.getWidth()/2, imageFond.getHeight()/2);
//Get Colors
couleurs = new Color[5];
for(int i=0;i<5;i++)
{
//couleurs[i] = new Color(imageFond.getRGB(points[i].x, points[i].y));
System.out.println("Boucle"+i+" - PIXEL:"+points[i].x+" "+points[i].y+" COLORS:"+imageFond.getRGB(points[i].x, points[i].y));
} |