loadimage on iPhone - images jagged

Hello
I am just trying to print some images on the screen. They have the pixels perfectly defined, but when drawing them in the iphone simulator, they appear jagged. I am only doing this:

  
imgSlit.loadImage("images/slit.gif");  
imgSlit.draw(0,0);  

and this is a capture of the screen

… I don’t know what am I doing wrong… it should be easy! :oops:

it’s because oF has a hack to fix the edges of images by scaling them a tiny bit. this messes up images on the iphone… it’s fixed in the latest version of ofxiphone:

http://code.google.com/p/ofxiphone/

OR

just add

  
ofDisableTectureEdgeHack();  

to your setup

hope that helps!

1 Like

sharp pixels again!

Thanks :slight_smile: