@@ -0,0 +1,940 @@
+package li.tengfei.apng.opt.optimizer;%0A%0Aimport java.awt.*;%0A%0A/**%0A * Pixel, Extend Color%0A *%0A * @author ltf%0A * @since 17/1/9, %E4%B8%8B%E5%8D%886:22%0A */%0Apublic class Pixel extends Color %7B%0A%0A    int x;%0A    int y;%0A    int z;%0A%0A%0A    public Pixel(int r, int g, int b) %7B%0A        super(r, g, b);%0A    %7D%0A%0A    public Pixel(int r, int g, int b, int a) %7B%0A        super(r, g, b, a);%0A    %7D%0A%0A    public Pixel(int r, int g, int b, int a,%0A                 int x, int y, int z) %7B%0A        this(r, g, b, a);%0A        this.x = x;%0A        this.y = y;%0A        this.z = z;%0A    %7D%0A%0A    @Override%0A    public int hashCode() %7B%0A        return super.hashCode() %5E ((x & 0xfff) %7C (y & 0xfff) %3C%3C 12 %7C z %3C%3C 24);%0A    %7D%0A%0A    @Override%0A    public boolean equals(Object obj) %7B%0A        return obj instanceof Pixel && ((Pixel) obj).getRGB() == this.getRGB()%0A                && ((Pixel) obj).x == this.x%0A                && ((Pixel) obj).y == this.y%0A                && ((Pixel) obj).z == this.z;%0A    %7D%0A%7D%0A

add pixel define