GL11.glRasterPos2i(wt.getX(), wt.getY()); GL11.glDrawPixels(imageWidth, imageHeight, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, image.getData());
GL11.glDrawPixels(imageWidth, imageHeight, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, image.getData());   GL11.glPixelZoom(1f, 1f);
    public void render() {        WidgetImage wt = (WidgetImage) getWidget();        initWidgetProjection(wt);        // TODO: clip drawing to widget bounds.        Image image = wt.getImage();        int imageWidth = image.getWidth();        int imageHeight = image.getHeight();        if (WidgetImage.SCALE_MODE_SIZE_TO_FIT == wt.getScaleMode())        {            int widgetWidth = wt.getWidth();            int widgetHeight = wt.getHeight();            float xfactor = ((float)widgetWidth) / ((float)imageWidth);            float yfactor = ((float)widgetHeight) / ((float)imageHeight);            GL11.glPixelZoom(xfactor, yfactor);        }        else if (WidgetImage.SCALE_MODE_ABSOLUTE == wt.getScaleMode())        {            GL11.glPixelZoom(wt.getHorizontalScale(), wt.getVerticalScale());        }        else if (WidgetImage.SCALE_MODE_RELATIVE == wt.getScaleMode())        {            int widgetWidth = wt.getWidth();            int widgetHeight = wt.getHeight();            float xfactor = ((float)widgetWidth) / ((float)imageWidth) * wt.getHorizontalScale();            float yfactor = ((float)widgetHeight) / ((float)imageHeight) * wt.getVerticalScale();            GL11.glPixelZoom(xfactor, yfactor);        }        GL11.glRasterPos2i(wt.getX(), wt.getY());        GL11.glDrawPixels(imageWidth, imageHeight, GL11.GL_RGB, GL11.GL_UNSIGNED_BYTE, image.getData());        resetWidgetProjection();    }