tags:

views:

12

answers:

0

I load an image. The image loads fine (140x40) I create a window (700x500) I create a subView (700x40), located at the top of the window.

when i draw the subview, i checked with a debugger. the dirtyRect is indeed 700x40 in size. I draw the image onto that rectangle, but it draws only as (~530x40), not the 700x40, leaving the top right corner blank although I use the same dirtyRect as dstRect for the drawing.

This baffles me and everyone on Experts-Exchange. There is no answer for this. The image is fine, drawing other things on the view (like a simple rectangle) work perfectly with dirtyRect - it fills the entire top of the window as needed. only projecting an image shrinks the image. trying manually to project one instance of that 140x40 images yields a 100x40 image on the screen.

It's as the jpeg I am loading and using has a different coordinate system where every logical pixel there translates to 0.66 device pixel when projected onto the screen.

has anyone experienced such weirdness?