Printing Question - Rephrased

Frank D. Engel, Jr. fde101 at fjrhome.net
Fri Mar 11 10:51:37 EST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Actually, most of this depends on the underlying API used for printing, 
and on the type of printer involved.  The Win32 API, for example, uses 
a virtual resolution equal to the perceived printer resolution; in 
other words, a 300 DPI printer uses 300 pixels per inch when printing 
normally from the Win32 API.  Mac OS X, OTOH, uses a graphics engine 
based on PDF, so the imaging standards are much more flexible, and 
quite a bit more independent of the printer resolution.

As for all the inches/dpi conversion stuff, when printing from Rev, 
I've just been using the Rev notation:

print <card> from <topLeft> to <rightBottom> into <pageRect>

This means that I just assume the width of the card to equal the width 
of the paper, then use Rev's tools to automatically scale everything to 
the right size, regardless of the printer resolution.

Look at the following entries in the docs for some clues:

open printing command
print command
printPaperSize property


On Mar 11, 2005, at 10:38 AM, <kevin at stallibrass.com> wrote:

> Len,
> I'm a real newbee to programming but work in digital imaging and offer 
> the
> following which won't fully answer your question but will hopefully 
> clear a
> couple of the clouds...
> 1.Printerdrivers report resolution changes in DPI settings. This is
> tecnically correct -dot per inch
> 2.Images report resolution as DPI wich is incorrect - it should really 
> be
> PPI (pixels per inch)
> 3.There is not nececarily a mathematical link between PPI and DPI to 
> govern
> all printers as each printer driver will use different screens or 
> dither
> patterns to achive the dot image, and may not print at 100% 4.Selecting
> different printing resolutions in the printer driver will  keep the 
> print
> size the same as this instruction is interpreted by most drivers as 
> "slow
> down the printer and use finer dots, more closely spaced" - blame the
> marketing men for that one! At least that means that trial and error 
> will
> not be upset by a change in printer "resolution"
>
> Kevin S
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
>
- -----------------------------------------------------------
Frank D. Engel, Jr.  <fde101 at fjrhome.net>

$ ln -s /usr/share/kjvbible /usr/manual
$ true | cat /usr/manual | grep "John 3:16"
John 3:16 For God so loved the world, that he gave his only begotten 
Son, that whosoever believeth in him should not perish, but have 
everlasting life.
$
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFCMb6J7aqtWrR9cZoRAtDGAJ4vHx0s8Ef7RbHTstk8erlgg5CE9QCePvNh
v6m2Wn3GrUVxW67tTOBTR7Y=
=TBol
-----END PGP SIGNATURE-----



___________________________________________________________
$0 Web Hosting with up to 120MB web space, 1000 MB Transfer
10 Personalized POP and Web E-mail Accounts, and much more.
Signup at www.doteasy.com



More information about the Use-livecode mailing list