Sun Jun 10, 2007 9:01 pm
class A{
public static void main(String[] args){
try {
BufferedImage bi=ImageIO.read(new File("C:\\a.gif"));
int a=bi.getRGB(20,20);
} catch (IOException ex) {
ex.printStackTrace();
}
}
}
Sun Jun 10, 2007 9:38 pm
int a=bi.getRGB(20,20);
int r = (rgb >> 16) & 0xff;
int g = (rgb >> 8) & 0xff;
int b = (rgb >> 0) & 0xff;
rgb= (rgb & 0xff000000) | (r << 16) | (g << 8) | (b << 0);
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com
Powered by phpBB © phpBB Group.