• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Problems with NSImage?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Problems with NSImage? (From: email@hidden)
 >Re: Problems with NSImage? (From: m <email@hidden>)

  • Prev by Date: Re: only defined for abstract class
  • Next by Date: Re: next TextField with Enter key
  • Previous by thread: Re: Problems with NSImage?
  • Next by thread: ignoring font family in font panel
  • Index(es):
    • Date
    • Thread