int value;
    public JRaster(ERaster eraster) {        super();        JGraphic.fillOMGraphicParams(this, eraster.egraphic);        setColorModel(COLORMODEL_INDEXED);        x = eraster.p1.x;        y = eraster.p1.y;        lat = eraster.ll1.lat;        lon = eraster.ll1.lon;        height = eraster.height;        width = eraster.width;        bits = eraster.pixels;        // Transparency HACK for Java RPF specialist...        transparent = eraster.transparent & 0xff;        // scaling HACK!        if ((eraster.transparent & 0xff00) != 0) {            scaleTo(eraster.x_hot, eraster.y_hot, OMRaster.FAST_SCALING);        } else {            x_hot = eraster.x_hot;            y_hot = eraster.y_hot;        }        // save the tmp colortable        Color[] tmpColors = new Color[eraster.colorsTotal];        int value;        for (int i = 0; i < eraster.colorsTotal; i++) {            tmpColors[i] = ColorFactory.createColor(eraster.ct[i].red,                    eraster.ct[i].green,                    eraster.ct[i].blue,                    eraster.ct[i].open,                    true);        }        setColors(tmpColors);        setNeedToRegenerate(true);    }