• 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
resolution independent [NSImage drawInRect]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

resolution independent [NSImage drawInRect]


  • Subject: resolution independent [NSImage drawInRect]
  • From: Andrew Bush <email@hidden>
  • Date: Wed, 20 Sep 2006 01:07:45 +1200

Hi all,

Im drawing some arbitary images into a custom view using drawInRect and specifying the srcRect, reasonably enough some images, with resolution of 300dpi instead of 72 dpi, are drawing into a smaller rect than the one I specify.

Clearly I can fix this by calculating a larger srcRect depending on the resolution of the image I am handling...but I dont really want to :) is there an easier (read: built in) way of handling images of varying resolutions?

thanks for any help.


Yours cheerfully,


Andrew Bush

_______________________________________________
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: resolution independent [NSImage drawInRect]
      • From: Peter Schart <email@hidden>
  • Prev by Date: Re: Evaluating an NSString to a symbol at runtime...
  • Next by Date: Invoking add: operation to an ArrayController manually (CoreData)
  • Previous by thread: NSSecureTextField UI value is set to 8-byte string automatically
  • Next by thread: Re: resolution independent [NSImage drawInRect]
  • Index(es):
    • Date
    • Thread