I have several images that I use in my application (one of them is attached). The strange thing is that the actual size of the image (shown by the search device and the preview) is 1200x701 px.
When I access the image from the code and how its size, I get 360x210px. What's happening?
The code I use to get the image size:
NSImage *newImg = [[NSImage alloc] initWithContentsOfURL:
[NSURL URLFromPasteboard:[sender draggingPasteboard]]];
float h = [newImg size].height;
float w = [newImg size].width;
The content of newImg is the same image that was specified and uploaded - I still display it in NSImageView, so I see. Only the size made with -sizeis incorrect.
This image:
alt text http://www.tomaszkrasnyk.yoyo.pl/image.jpg