Hi,
If i have an image (100x100) and i want to draw it slightly off of the screen, how can i do this using glDrawPixels? I have tried calling gl.glRasterPos2i(-50, 0) but this doesn't work. It overlaps fine on the top or right of the window but not the left or bottom (x=0 & y=0).
Also, I'm not sure if its a similar answer to the previous question, but how can you get a sub image of an image? For example, if i have a Byte array of an image, how can i get another Byte Array containing the pixels from position (20, 20) size W=10, H=10 from the original image?
Thanks,
Michael
Start Free Trial