Re: NSImage bug? NEF Files.
Re: NSImage bug? NEF Files.
- Subject: Re: NSImage bug? NEF Files.
- From: Drarok Ithaqua <email@hidden>
- Date: Mon, 26 Jun 2006 01:58:47 +0100
On 26 Jun 2006, at 1:53 am, Uli Kusterer wrote:
Am 26.06.2006 um 01:49 schrieb Drarok Ithaqua:
I've used an NSTableView as the source of the images, the user
drags all the files they want resizing into it.
I used [NSImage imageFileTypes]; to allow them to only drop files
that NSImage can use.
However! When I drop on a NEF (Nikon RAW) file, it gets the size
totally wrong, I even outputted the image as loaded from disk
into an NSImageView, and it's tiny. The pictures are from a 7
megapixel camera, and look fine in Preview, but in my app, they're
the size of the thumbails shown in Finder!
An NSImage's size isn't necessarily its width and height in
pixels. You may have to set the width and height to the pixelsWide/
pixelsHigh values of the NSImageRep in the NSImage to get it at a
size where each pixel is equivalent to a unit. If the NEF file
specifies its resolution as, say 360 dpi, it wouldn't be surprising
that it might show up as rather small.
Cheers,
-- M. Uli Kusterer
http://www.zathras.de
No, I checked that already.
Representations Width: 160, Height: 120
That's the only representation available.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden