Re: Problems with NSImage?
Re: Problems with NSImage?
- Subject: Re: Problems with NSImage?
- From: Blake Seely <email@hidden>
- Date: Thu, 6 Oct 2005 16:59:16 -0700
That was it. Thank you very much, m.
On Oct 6, 2005, at 4:33 PM, m wrote:
On Oct 6, 2005, at 4:11 PM, email@hidden wrote:
I'm loading data from URLs into NSImage objects and then drawing
those onto a custom view. However, some of the images (seems to be
about 25%) show up too small. If I take the URL I'm loading the
NSImage from and type it into the browser, I see the correct size,
but NSImage shows it as an incorrect size.
You're almost certainly running into images that aren't 72 dpi.
(The one you linked is 180 dpi).
So I think you need to synchronize the size of the NSImage's image
rep to its pixel size. See the docs for NSImage setSize:
_murat
_______________________________________________
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