home *** CD-ROM | disk | FTP | other *** search
/ Amiga Plus 2002 #12 / Amiga Plus CD - 2002 - No. 12.iso / AmigaOS / Vollversion / AmigaMetaFormat_library / Docs / AmfFunctions.doc next >
Encoding:
Text File  |  1997-10-11  |  8.0 KB  |  182 lines

  1. Overview over all functions that implemented. Some functions are not very
  2. well presented in some output-formats.
  3. Example: Some CGM-Reader draw the pie and the arc wrong, other not.
  4.  
  5. 0------> x=AMF_SIZE-1 (32767)
  6. |
  7. |
  8. |
  9. V
  10. y=AMF_SIZE-1 (32767)
  11.                                                                     .90
  12. all angles are in degree and start is left and go anticlockwise  180 * ..0
  13. all values are LONG                                                 270
  14.  
  15. AmfFunctions:
  16.  
  17. FUNCTION            DESCRIPTION               ARGUMENTS
  18.  
  19. DrawFunctions:
  20.  0 CLEAR_REGION     Fill a rectangle with     xstart   leftedge
  21.                     the BackgroundColor       ystart   topedge
  22.                                               xend     rightedge
  23.                                               yend     bottomedge
  24.  
  25.  1 *OBSOLETE*
  26.  
  27.  2 *OBSOLETE*
  28.  
  29.  3 LINE             Draw line                 xstart
  30.                                               ystart
  31.                                               xend
  32.                                               yend
  33.  
  34.  4 *OBSOLETE*
  35.  
  36.  5 TEXT             Write text                x       x-position
  37.                                               y       y-position
  38.                                               alpha   angle
  39.                                               CHARS   0-terminated
  40.  
  41.  6 ELLIPSE          Draw ellipse              x       x-position of center
  42.                                               y       y-position of center
  43.                                               xsize   radius in x
  44.                                               ysize   radius in y
  45.  
  46.  7 BOX              Draw rectangle            xstart  leftedge
  47.                                               ystart  topedge
  48.                                               xend    rightedge
  49.                                               yend    bottomedge
  50.  
  51.  8 FILL_ELLIPSE     Draw a filled ellipse     see ELLIPSE
  52.  
  53.  9 FILL_BOX         Draw a filled rectangle   see BOX
  54.  
  55. 10 *OBSOLETE*
  56.  
  57. 11 POLYGON          Draw a polygon            x,y - pars
  58.                                               make move to first x,y then
  59.                                               draw to the next x,y's
  60.  
  61. 12 BITMAP_PIC       Paint a bitmappicture     not supported yet
  62.  
  63. 13 ARC              Draw a elliptical arc     x       x-position of center
  64.                                               y       y-position of center
  65.                                               xsize   radius in x
  66.                                               ysize   radius in y
  67.                                               alpha   start angle
  68.                                               beta    end angle
  69.  
  70. 14 MARK             Draw marker               x
  71.                                               y
  72.  
  73. 15 CURVE            Draw beziercurve like     n*[x1,y1       startposition
  74.                     postscript-operator          x2,y2       first and
  75.                     'curve to'                   x3,y3       second holdpos
  76.                                                  x4,y4]      endposition
  77.  
  78. 16 FILL_POLY        Draw a filled polygon     see POLYGON but it closed the
  79.                                               polygon
  80.  
  81. 17 ROUNDED          Draw a rounded rectangle  xstart  leftedge
  82.                                               ystart  topedge
  83.                                               xend    rightedge
  84.                                               yend    bottomedge
  85.  
  86. 18 PIE              Draw a pie.               x       x-position of center
  87.                                               y       y-position of center
  88.                                               xsize   radius in x
  89.                                               ysize   radius in y
  90.                                               alpha   start angle
  91.                                               beta    end angle
  92.  
  93. 19 FILL_ROUNDED     Draw a filled rounded     xstart  leftedge
  94.                     rectangle                 ystart  topedge
  95.                                               xend    rightedge
  96.                                               yend    bottomedge
  97.  
  98. 20 FILL_PIE         Draw a filled pie.        x       x-position of center
  99.                                               y       y-position of center
  100.                                               xsize   radius in x
  101.                                               ysize   radius in y
  102.                                               alpha   start angle
  103.                                               beta    end angle
  104.  
  105. 21 FILL_CURVE       Draw beziercurve like     n*[x1,y1       startposition
  106.                     postscript-operator          x2,y2       first and
  107.                     'curve to' and fill it       x3,y3       second holdpos
  108.                                                  x4,y4]      endposition
  109.  
  110. SetFunctions:
  111. 100 FONT            Like 106 but fontheight   see SETFONT
  112.                     in metacoordinates,
  113.                     in metafile will SETFONT
  114.                     to FONT
  115.  
  116. 101 SETFGPEN        Set the forgroundpen      r    red-value   |Byte repeated
  117.                                               g    green-value |in every Byte
  118.                                               b    blue-value  |from ULONG
  119.  
  120. 102 SETBGPEN        Set the backgroundpen     see forgroundpen
  121.  
  122. 103 SETDRMODE       Set drawmode              mode    0 w/o background
  123.                                                       1 with background
  124.                                                       2 complement
  125.                                                       3 invert
  126.  
  127. 104 SETLINEPAT      Set linepattern           patnr   0 solid
  128.                                                       1 - - -
  129.                                                       2 -- --
  130.                                                       3 .....
  131.                                                       4 -.-.-
  132.                                                       5 --.--
  133.  
  134. 105 SETLINEWIDTH    Set linewidth             size    width of line
  135.  
  136. 106 SETFONT         Set font                  size    height of font in point
  137.                                               style   fontstyle
  138.                                                       0-plain, 1-underline,
  139.                                                       2-bold, 4-italic
  140.                                               CHARS   0 terminated
  141.  
  142. 107 SETFILLPAT      Set fillpattern           patnr   0 solid
  143.                                                       1 ////
  144.                                                       2 \\\\
  145.                                                       3 ||||
  146.                                                       4 ====
  147.                                                       5 XXXX
  148.                                                       6 ++++
  149.  
  150. 108 SETMARKSIZE     Set the size of marker    size    height of marker
  151.  
  152. 109 SETMARKTYPE     Set type of marker        type    0 x
  153.                                                       1 filled square
  154.                                                       2 outline dreieck
  155.                                                       3 outline square
  156.                                                       4 o
  157.                                                       5 +
  158.                                                       6 outline karo
  159.  
  160. 110 SETDPI          Set the resolution of     xdpi    resolution in x
  161.                     output-device, only for   ydpi    resolution in y
  162.                     for channel=1 or 4                both in points per inch
  163.                     The initial resolution
  164.                     for channel1 and 4 are
  165.                     72 dpi, change only if
  166.                     you know what you do!
  167.  
  168. GetFunctions:
  169. 200 GETFONTHEIGHT   calcs the height of the     alpha     angle
  170.                     choiced font in virtual
  171.                     points (0 to 32767)
  172.  
  173. 201 GETSTRINGLENGHT calcs the lenght of the     alpha     angle
  174.                     string in virtual points    CHARS     0 terminated
  175.                     (0 to 32767)
  176.  
  177. 202 GETBASELINE     calcs the height of         alpha     angle
  178.                     baseline in virtual points
  179.                     (0 to 32767)
  180.  
  181.  
  182.