You are not logged in.
Pages: 1
Hello
I am wondering what the coordinate units are for Canvas.Textout, etc. and how to set them, i.e., TextOut('Hello World', 600, 600) for DPI=600 at one inch...
Thank
Doug
Offline
Which Canvas are you talking about?
The TPdfCanvas uses PDF units, and floating point coordinates of 72 pixels per inch. You can use PdfCoord() to compute the coordinate from mm.
There is no variable DPI in the PDF unit itself. It is always 72 pixels per inch. But since coordinates are floats it is not a problem.
The VCLCanvas is a standard VCL TCanvas. So here coordinates are integers, and you have the Canvas dimension in VCLCanvasSize property, and PageWidth/PageHeight properties in PDF units.
Offline
Pages: 1