class QImage extends PImage { public static final int CHANNEL_DEPTH_8BIT = 0; public static final int CHANNEL_DEPTH_16BIT = 1; private int CHANNEL_DEPTH = 0; QColor pix[][]; QImage(int w, int h) { super(w,h); pix = new QColor[w][h]; for (int x=0;x=width) return; if (y<0) return; if (y>=height) return; pix[x][y].set(c); this.set(x,y,c.toColor()); } public QColor get16bit(int x, int y) { if (x<0) x=0; if (x>=width) x=width-1; if (y<0) y=0; if (y>=height) y=height-1; return pix[x][y]; } public void background(int c) { QColor qc = new QColor(c); for (int x=0;x