[Contents] [Index] [Help] [Retrace] [Browse <] [Browse >]

Using the special flags it is fairly easy to ensure a graphic dump will
have the correct aspect ratio on paper. There are some considerations
though when printing a non-displayed rastport.  one way to get a corrected
aspect ratio dump is to calculate the printer's ratio from XDotsInch and
YDotsInch (taking into account that the printer may not have square
pixels) and then adjust the width and height parameters accordingly. You
then ask for a non-aspect-ratio-corrected dump since you already corrected
it yourself.

Another possibility is having the printer device do it for you. To get a
correct calculation you could build your rastport dimensions in two ways:


   1. Using an integer multiple of one of the standard (NTSC) display
      resolutions and setting the io_Modes argument accordingly. For
      example if your rastport dimensions were 1280 x 800 (an even multiple
      of 640 x 400) you would set io_Modes to LACE | HIRES. Setting the
      special_aspect flag would enable the printer device to properly
      calculate the aspect ratio of the image.

   2. When using an arbitrary sized rastport, you can supply the modeid of
      a display mode which has the aspect ratio you would like for your
      RastPort. The aspect ratio of the various display modes are defined
      as ticks-per-pixel in the Resolution field of the displayinfo
      structure.  You can obtain this value from the graphics database.
      For example, the resolution of Productivity Mode is 22:22, in other
      words, 1:1, perfect for a RastPort sized to the limits of the output
      device.  See the "graphics library" chapters of the  amiga rom
      Kernel Reference Manual: Libraries for general information on the
      graphics system.

The following example will dump a rastport to the printer and wait for
either the printer to finish or the user to cancel the dump and act
accordingly.

     demo_dump.c