• 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: Lame problem with NSImageView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lame problem with NSImageView


  • Subject: Re: Lame problem with NSImageView
  • From: "M. Uli Kusterer" <email@hidden>
  • Date: Fri, 5 Nov 2004 01:25:47 +0100

At 9:21 Uhr -0500 03.11.2004, Michael Heinz wrote:
I'm taking the default settings for NSImageView, including proportional scaling but some images not only do not scale to fill the window they are getting rendered at only a few percent of their "real" size - even if I go and modify the NIB so that NSImageView is set to not scale at all. The images seem to behave appropriately in Preview.

"appropriately" meaning "the same way"? In that case it's probably that the images contain "dpi" information. MacOS X will honor that. Since MacOS X itself assumes 72 dpi, if the image has been saved with 144 dpi, the image will be seemingly "half size" on your screen.


To display images at 1:1 always, you'll probably want to determine the pixelsWide and pixelsHigh of the image's NSImageRep, and then do a setSize: on the NSImage itself to those values. At least that's what I'd try.
--
Cheers,
M. Uli Kusterer
------------------------------------------------------------
"The Witnesses of TeachText are everywhere..."
http://www.zathras.de
_______________________________________________
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: 
 >Lame problem with NSImageView (From: Michael Heinz <email@hidden>)

  • Prev by Date: what is NSPathStore2
  • Next by Date: Re: Why not a procedure for retain/release?
  • Previous by thread: Lame problem with NSImageView
  • Next by thread: Re: Lame problem with NSImageView
  • Index(es):
    • Date
    • Thread