• 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: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)


  • Subject: Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
  • From: John Stiles <email@hidden>
  • Date: Fri, 7 Jan 2005 15:39:21 -0800

That's nice from a computer-science perspective, but if you want to draw something on-screen that's an actual inch, it's not helpful information. You need to scale things to match the monitor DPI. This should be as simple as a transformation matrix with a scale factor in it—which, of course, you wouldn't apply when printing.


On Jan 7, 2005, at 3:31 PM, Erik M. Buck wrote:

I am shocked that it has not been stated already or I missed it.

Quartz 2D is DEVICE INDEPENDENT!

Pixels are irrelevant.
DPI of the output device is irrelevant.

Only "real world" distance units like inches, centimeters, miles, yards,
light-years, and Postscript Points are relevant.

In an unscaled Quartz 2D coordinate system a distance of 1.0 is one
Postscript Point which is defined a 1/72 Inch.
To draw a one inch long line on any output device including a 300 DPI
printer or a 2000 DPI printer or a 100 DPI screen, draw a line that is 72
units long in an unscaled Quartz 2D coordinate system.

Because printers are calibrated, the printed line will be one inch long as
measured with a standard ruler.
Because computer displays are NOT calibrated and in fact CRTs can vary with
temperature and time, the 1 inch line drawn will not be one inch long as
measured with a standard ruler, but it will be one inch long as measured by
a ruler that is also drawn by Quartz in an unscaled coordinate system.


_______________________________________________
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
 _______________________________________________
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: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
      • From: Henry McGilton <email@hidden>
    • Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
      • From: Mike Paquette <email@hidden>
References: 
 >Subject: WYSIWIG drawing vs printing (was drawing scaled lines) (From: "Erik M. Buck" <email@hidden>)

  • Prev by Date: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
  • Next by Date: NSTask with non-ASCII paths
  • Previous by thread: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
  • Next by thread: Re: Subject: WYSIWIG drawing vs printing (was drawing scaled lines)
  • Index(es):
    • Date
    • Thread