• 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: m <email@hidden>
  • Date: Thu, 6 Oct 2005 16:33:51 -0700

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
  • Follow-Ups:
    • Re: Problems with NSImage?
      • From: Blake Seely <email@hidden>
References: 
 >Problems with NSImage? (From: email@hidden)

  • Prev by Date: ignoring font family in font panel
  • Next by Date: Re: ignoring font family in font panel
  • Previous by thread: Problems with NSImage?
  • Next by thread: Re: Problems with NSImage?
  • Index(es):
    • Date
    • Thread