@@ -0,0 +1,1479 @@
+package org.stuygfx.graphics;%0A%0Aimport org.stuygfx.graphics.Pixel;%0Aimport org.stuygfx.graphics.Point;%0A%0Apublic class Image %7B%0A%0A    public int XRES;%0A    public int YRES;%0A%0A    private Pixel%5B%5D%5B%5D canvas;%0A    private int originX;%0A    private int originY;%0A    private boolean reflectOverX;%0A%0A    public Image() %7B%0A        this.XRES = 512;%0A        this.YRES = 512;%0A        this.originX = 0;%0A        this.originY = 0;%0A        this.reflectOverX = false;%0A        this.canvas = new Pixel%5BYRES%5D%5BXRES%5D;%0A    %7D%0A%0A    public Image(int xres, int yres) %7B%0A        this.XRES = xres;%0A        this.YRES = yres;%0A        this.originX = 0;%0A        this.originY = 0;%0A        this.reflectOverX = false;%0A        this.canvas = new Pixel%5BYRES%5D%5BXRES%5D;%0A    %7D%0A%0A    public void setOrigin(Point origin) %7B%0A        this.originX = origin.x;%0A        this.originY = origin.y;%0A    %7D%0A%0A    public void setOriginX(int x) %7B%0A        this.originX = x;%0A    %7D%0A%0A    public void setOriginY(int y) %7B%0A        this.originY = y;%0A    %7D%0A%0A    public void plot(Point p, Pixel color) %7B%0A        if (reflectOverX) %7B%0A            this.canvas%5B(this.YRES - 1) - (p.y + originY)%5D%5Bp.x + originX%5D = color;%0A        %7D else %7B%0A            this.canvas%5Bp.y + originY%5D%5Bp.x + originX%5D = color;%0A        %7D%0A    %7D%0A%0A    public void plot(int x, int y, Pixel color) %7B%0A        if (reflectOverX) %7B%0A            this.canvas%5B(this.YRES - 1) - (y + originY)%5D%5Bx + originX%5D = color;%0A        %7D else %7B%0A            this.canvas%5By + originY%5D%5Bx + originX%5D = color;%0A        %7D%0A    %7D%0A%7D%0A

Add Image class