NSImage question
NSImage question
- Subject: NSImage question
- From: "Oscar Bascara" <email@hidden>
- Date: Thu, 24 May 2007 23:32:01 -0700
Hi All,
Here is an NSImage puzzle. I've got an image that I dragged from a
web page to the desktop. The image gets saved as a jpg file, but it's
behaving strangely. In Preview, the jpg file displays fine. It has
size 180 x 240 (just as it is shown in the web page). But then I try
to display the image in a program a usual way:
image = [NSImage imageNamed:@"image_file"];
[image compositeToPoint:point operation:NSCompositeSourceOver];
The image is drawn smaller for some reason. Checking the image
representation size, I get 129.6 x 172.8. Also, the image quality is
not as good, especially if I try rescaling it to 180 x 240. Viewing
the image in the Xcode editor, by the way, also gives this weird,
smaller display size. Somehow Preview knows how to display the image
correctly.
Any idea what is going on?
Oscar
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden