• 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: Drawing scaled lines
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Drawing scaled lines


  • Subject: Re: Drawing scaled lines
  • From: Tommy Nordgren <email@hidden>
  • Date: Fri, 7 Jan 2005 21:15:48 +0100


Jan 7, 2005 kl. 8:41 PM skrev Mark Dawson:

I want to draw line figures (lines, rects, etc) that are correctly scaled (i.e., 1" on screen is 1' in real life). I haven't quite figured out the question to ask to find the correct documentation…

I've found that NSSize is the basic size, which contains floats. From what I can tell, they are in "point" units. Do I just use the 72.0 points/inch constant, or is there a system call that I should use? Give than NSize uses floats, what does it mean to have 1.01 points--i.e., do fractional points show up?

Thanks,

mark


According to the Core Graphics documentation, Quarts coordinates are DEVICE INDEPENDENT. It's only necessary to find the unit used.
Tommy Nordgren


_______________________________________________
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: 
 >Drawing scaled lines (From: Mark Dawson <email@hidden>)

  • Prev by Date: Re: Drawing scaled lines
  • Next by Date: Re: Drawing scaled lines
  • Previous by thread: Re: Drawing scaled lines
  • Next by thread: Re: Drawing scaled lines
  • Index(es):
    • Date
    • Thread