• 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: NSImage size vs. representations' sizes
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSImage size vs. representations' sizes


  • Subject: Re: NSImage size vs. representations' sizes
  • From: Marcel Weiher <email@hidden>
  • Date: Sun, 3 Aug 2008 21:23:51 -0700


On Aug 2, 2008, at 14:19 , Jacob Bandes-Storch wrote:

I'm trying to use my application icon (icns) in a custom view to be draw in the background of a window, like Installer.app does. I can do all this just fine, but when I draw the image using - drawInRect:fromRect:operation:fraction:, it comes out at 128x128 instead of the full 512x512.

How do you mean "it comes out at"?

-size returns an NSSize of {128, 128},

If the size is 128x128, then it will draw at that size, the number of pixels is an implementation detail. If you want it to draw larger, you need to either increase the size, or scale by 4x before drawing.


Cheers,

Marcel

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >NSImage size vs. representations' sizes (From: Jacob Bandes-Storch <email@hidden>)

  • Prev by Date: Re: How to get the value of a NSNumber contained in an array while debugging ?
  • Next by Date: Irritating Problem with NSString Method and File Paths
  • Previous by thread: NSImage size vs. representations' sizes
  • Next by thread: Faster alternative to NSImage draw/composite?
  • Index(es):
    • Date
    • Thread