for (int i = 0; i < this.pan_width; i++) {
for (int j = 0; j < this.pan_height; j++) {
if (mainpanel.bi.getRGB(i, j) == Color.BLACK.getRGB()) {
//this.bi.setRGB(Color.lightGray.getRed(),Color.lightGray.getGreen(),Color.lightGray.getBlue());
f.drawLine(i, j, i, j);
this.repaint();
}
}
}
for (int j = 0; j < this.pan_height; j++) {
if (mainpanel.bi.getRGB(i, j) == Color.BLACK.getRGB()) {
//this.bi.setRGB(Color.lightGray.getRed(),Color.lightGray.getGreen(),Color.lightGray.getBlue());
f.drawLine(i, j, i, j);
this.repaint();
}
}
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货