• 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: drawRect: wrong scale in a programmatically created window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: drawRect: wrong scale in a programmatically created window


  • Subject: Re: drawRect: wrong scale in a programmatically created window
  • From: Graham Cox <email@hidden>
  • Date: Sat, 16 Jan 2016 12:00:13 +1100

> On 15 Jan 2016, at 10:42 PM, Andreas Höschler <email@hidden> wrote:
>
> But how does NSBitmapImageRep know which pixel resolution to choose? How does it derive Pixels=1702x1798  when I create the imageRep with a {{0, 0}, {851, 899} rect


It has a ‘size’ property which can be different fron the ‘pixelsWide' and ‘pixelsHigh' properties. The ratio of these defines the resolution.

—Graham



_______________________________________________

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: 
 >drawRect: wrong scale in a programmatically created window (From: Andreas Höschler <email@hidden>)
 >Re: drawRect: wrong scale in a programmatically created window (From: Quincey Morris <email@hidden>)
 >Re: drawRect: wrong scale in a programmatically created window (From: Andreas Höschler <email@hidden>)

  • Prev by Date: Re: Looking at moving part of our iOS app become an iOS framework to be used in other apps.
  • Next by Date: Re: Looking at moving part of our iOS app become an iOS framework to be used in other apps.
  • Previous by thread: Re: drawRect: wrong scale in a programmatically created window
  • Next by thread: NSTableView registerNib:forIdentifier: - multiple IDs in a single NIB
  • Index(es):
    • Date
    • Thread