Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Flipper 6.0 Help File - <b>prt_scale()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
PRT_SCALE()
   Scales the output.

   Syntax
         PRT_SCALE(nType)

   Arguments
         nType       Sets the scale for sizing the output to the printer.
                     1 - Centimeters.
                     2 - Inches.
                     3 - Absolute Scale.
                     [Default is 2 (Inches)]

   Returns
         None

   Description
         You will typically not want to do a straight dot-for-dot screen dump.
         Most printers have a much higher resolution than your screen, so
         you'll want to stretch the output. For example, a 640x480 VGA screen
         would only be 2.13" x 1.60" for a laser printer using a 300dpi
         resolution. We take the printer resolution into account and let you
         specify the size of the output image in inches, centimeters or
         'absolute scale'.
         Output in inches is the default. You can use this function to change
         the type of scaling.
         By default, the output image is scaled in inches. However you may
         want it scaled in centimeters, or in an 'absolute scale'. By absolute
         scale we mean that the output will be some multiple of the size of
         the image on the screen. Thus you can specify that the output image
         should be 2.43 inches wide, or 2.43 centimeters wide or should have
         2.43 times the number of dots on the page as it had on the screen
         (i.e. if it was 200 dots wide on the screen it should have 486 dots).

   Examples

               PRT_SCALE(2)                  && Scale as inches
               PRT_SCREEN(700,500,100,100)   && Print screen 7 inch by 5 inch
                                               && 1 inch from top, 1 inch over

See Also: PRT_SCREEN()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson