Re: NSImage and Photoshop jpegs
Re: NSImage and Photoshop jpegs
- Subject: Re: NSImage and Photoshop jpegs
- From: "John C. Randolph" <email@hidden>
- Date: Thu, 20 Mar 2003 14:22:23 -0800
On Thursday, March 20, 2003, at 01:44 PM, Alesh Slovak wrote:
Hello,
I am developing a Cocoa app which needs to open jpeg files. It seems,
however, that jpeg files created by Photoshop and then opened with
initWithContentsOfFile have incorrect sizes.
For example I opened an image with a resolution of 1280 x 1920 but
when I opened it the NSImage reported it as being only 288 x 432
pixels.
The pixel dimensions and the size are not the same thing. If you check
the NSBitmapImageRep within the NSImage after you've loaded the image,
you'll probably find that -pixelsHigh and -pixelsWide return the values
you expect.
-jcr
John C. Randolph <email@hidden> (408) 974-8819
Sr. Cocoa Software Engineer,
Apple Worldwide Developer Relations
http://developer.apple.com/cocoa/index.html
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.