Maarten,
Maarten,
That value is completely arbitrary. It may work on your side but obviously
you will get different printing sizes depending on the printer resolution
you use. A bitmap of 300 x 300 pixels will have a size of one inch on very
old laser printers of 300 d.p.i., but on 1200 dpi laser printers will have a
size of a quarter of a inch.
As you can see there is not an easy conversion from pixels to inches or
millimeters, it depends on the the target resolution device. SO, my
recommendation is :
Never use pixel coordinates or dimensions when printing, always use
millimeters or inch map mode.
Regards,
Ignacio Ortiz de Zúñiga
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
http://www.xailer.com/forum
http://www.xailer.com/dokuwiki
"Maarten Roos" escribió en el mensaje de
noticias:4d2dd0ff$[email=1@svctag-j7w3v3j....]1@svctag-j7w3v3j....[/email]
Thank you... I had that already, but what I was wondering is
the following. I have now for example:
nWidth := ::oChemicalPicture:oPicture:nWidth * 2.7
nHeight := ::oChemicalPicture:oPicture:nHeight * 2.7
PrintBitmap(Printer:oCanvas,::oChemicalPicture:oPicture,
550, nXpos, 550+nWidth, nXpos+nHeight)
STATIC FUNCTION PrintBitmap( oReport, oBitmap, nLeft, nTop,
nRight, mBottom )
LOCAL nMapMode
WITH OBJECT oReport
nMapMode := :nMapMode
:nMapMode := mmHIMETRICS
:DrawPicture( {nLeft, nTop, nRight, mBottom}, oBitmap
)
:nMapMode := nMapMode
END WITH
RETURN NIL
I have to use *2.7 to get the picture on desired format,
otherwise it is way to small compared to original size. Can
the 2.7 be calculated automatically?