コード例 #1
0
 public Picture(Picture p)
 {
     this.isOriginUpperLeft = true;
     this.width             = p.width();
     this.height            = p.height();
     BufferedImage.__ <clinit>();
     this.image    = new BufferedImage(this.width, this.height, 1);
     this.filename = p.filename;
     for (int i = 0; i < this.width(); i++)
     {
         for (int j = 0; j < this.height(); j++)
         {
             this.image.setRGB(i, j, p.get(i, j).getRGB());
         }
     }
 }