They appear 50% smaller than the specified size in the image() or render() method. Code that shows the problem:
import processing.opengl.*;
import codeanticode.glgraphics.*;
boolean useGL = false;
GLGraphicsOffScreen off;
GLTexture tex;
void setup() {
size(1000, 600, GLConstants.GLGRAPHICS);
off = new GLGraphicsOffScreen(this, width, height);
PImage img = createImage(width, height, RGB);
img.loadPixels();
for (int y=0; y<img.height; y++) {
for (int x=0; x<img.width; x++) {
int loc = x + y * img.width;
img.pixels[loc] = color(map(y, 0, height, 255 ,0),map(x, 0, width, 255 ,0),map(y, 0, height, 255 ,0));
}
}
img.updatePixels();
tex = new GLTexture(this);
tex.putImage(img);
}
void draw() {
off.beginDraw();
off.background(255, 0, 0);
if (useGL) off.beginGL();
off.image(tex, 0, 0, width, height);
off.fill(0);
off.ellipse(mouseX, mouseY, 20, 20);
if (useGL) off.endGL();
off.endDraw();
image(off.getTexture(), 0, 0);
}