home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / graphic / pmpaint / pmpaint.doc next >
Text File  |  1991-07-14  |  16KB  |  340 lines

  1.  
  2.  
  3.       PmPaint Version 1.11 (C)1991 by Mitchell Fisher    05-28-91
  4.  
  5.  
  6.  
  7. O V E R V I E W:
  8. ____________________________
  9.  
  10.  
  11.       PmPaint is a very simple paint program for the OS/2 Presentation
  12. Manager.  The purpose for this program was to aid in the developement of
  13. graphic images (MetaFiles) for a game I am writing and planning to convert
  14. to OS/2 - so this program is actually one of my many developement tools.
  15. However, I find this program to be appropriate enough to send out for
  16. other people to use since it may be useful to them.
  17.  
  18.       PmPaint allows the user to generate simple to complex vector images
  19. consisting of lines and filled areas.  These images are stored in memory
  20. in a special PmPaint format but when you save it you have the option to
  21. save the Image as a metafile.  Note, however, that you cannot load the
  22. metafile back into memory for re-editing so therefore the image is saved
  23. as a PmPaint file as well.  Currently, the PmPaint files are actually
  24. smaller in size than its associated metafile, however, you must use
  25. PmPaint to view it and cannot access it throug OS/2 as easily as
  26. matafiles.
  27.  
  28.  
  29.  
  30.  
  31.  
  32. F U N C T I O N S:
  33. ___________________________
  34.  
  35.  
  36.       PmPaint is very simple to use, however, certain rules must be
  37. understood before using the program.  First of all, the program does not
  38. draw bitmap images - It draws VECTOR images which means your images are
  39. made up of lines and filed areas (Similar to what a plotter does).
  40.  
  41.       However, do not think that this is a drawback - True it may be more
  42. difficult to draw vector images but, generally, vector images will consume
  43. much less memory than most Raster image.  Also, if this means anything to
  44. your use of a paint program, vector graphics are somewhat faster to draw
  45. than raster image in OS/2.
  46.  
  47.       Following is a description of the functions of PmPaint 1.11.  In the
  48. future there are plans to enhance what functions there are and to add new
  49. and more powerfull functions and to eventually exploit as many of the GPI
  50. functions of the Presentation Manager as possible.
  51.  
  52.       Here are the graphic functions available through PmPaint 1.00:
  53.  
  54.             1. Line Drawing
  55.             2. Moving Draw Position
  56.             3. Filling in areas
  57.             4. Creating curves
  58.             5. Drawing lines via GpiPolyLine.
  59.             6. Drawing Boxes
  60.             7. Changing Colors
  61.             8. Changing Fill Patterns.
  62.             9. Deleting Items
  63.  
  64.       Furthermore, there are these operation functions:
  65.            10 . Loading Pre-made graphics.
  66.            11. Saving your work
  67.            12. Drawing the graphic to the window size.
  68.            13. Misc. functions
  69.  
  70.       NOTE:  Currently PmPaint does not support Line Width Sizes beyond
  71.              the default which is 1 pel in width except in the use of Path
  72.              Brackets.  Path brackets are not active in PmPaint Version
  73.              1.11 but will be supported later versions.
  74.  
  75.  
  76.       1. Line Drawing.
  77.             Line drawing is the basis of PmPaint.  The mouse controls line
  78.             drawing.  The Button 1 (Left Button) draws a line from the
  79.             current draw position to the current mouse position.  The draw
  80.             position is then set to the end of the line.
  81.  
  82.  
  83.       2. Moving the draw position.
  84.             To draw a line a draw position must be provided to start the
  85.             line and the ending coordinates must be provided.  To set the
  86.             draw position press Button 2 (Right Button).  Now the line can
  87.             be drawn from the draw position to the mouse position.
  88.  
  89.  
  90.       3. Filling in Areas.
  91.             Filling in areas with PmPaint is similar to a tradition paint
  92.             program - you create your figure, select a fill function, and
  93.             click your mouse anywhere in the area to be filled.  If you
  94.             left an open hole, TOO BAD - you might have just filled the
  95.             entire screen.
  96.             With PmPaint all you have to do is:
  97.                   A. Position you drawing position to the place where you
  98.                      want to start your filled area.
  99.  
  100.                   B. Select Begin area from the Special Drawing menu.
  101.  
  102.                   C. Draw your figure.  You do not have to end your figure
  103.                      exactly at the start point since when you end the
  104.                      area, OS/2 PM does it for you, by closing the figure
  105.                      from the last point to the first point.
  106.  
  107.                   D. Select End Area from the Special Drawing Menu and
  108.                      WHAM! you have a filled figure!
  109.  
  110.             Of course you can decide what color you want this figure to be
  111.             and with what fill pattern.
  112.  
  113.             SPECIAL:  After beginning an area bracket, you can also begin
  114.                       other graphic functions such as boxes or curves.
  115.                       You must then end the special drawing function then
  116.                       end the Area Bracket.  This will allow the creation
  117.                       of filled Boxes, arcs and PolyLine shapes.
  118.  
  119.  
  120.       4. Drawing Curves.
  121.             PmPaint 1.11 has a very simple way to draw curves:
  122.                   A. Position you drawing position to where you want to
  123.                      start the curve.
  124.  
  125.                   B. Select Begin Fillet under the Special Drawing menu.
  126.  
  127.                   C. Draw you lines ending at points where you want curves
  128.                      to be drawn.
  129.  
  130.                   D. Selecr End Fillet under the Special Drawing menu and
  131.                      BEHOLD! a curved line...
  132.  
  133.             Curved lines or Fillets as they are called can be any color
  134.             and can also be used inside an Area Bracket.  To use inside
  135.             and Area:
  136.                   A. Begin the Area.
  137.  
  138.                   B. Begin a Fillet wherever in the area bracket you want
  139.                      it started.
  140.  
  141.                   C. Draw your figure.
  142.  
  143.                   C. End the Fillet.  The image you have drawn will
  144.                      dissappear.  Don't worry, it's not really gone.
  145.  
  146.                   D. End the Area.  Now your invisible line reappears with
  147.                      the Fillet drawn as well.
  148.  
  149.             IMPORTANT:
  150.                   The way a Fillet is implimented in GPI, it must have an
  151.                   array of points to draw.  Since that method of storing
  152.                   points is not used by PmPaint, a limitation of 255
  153.                   points has been set for each Fillet drawn.  Any points
  154.                   added after 255 are not drawn as part of the Fillet.  A
  155.                   high tone will be generated for every point set after
  156.                   255.
  157.  
  158.             PmPaint version 1.01 and above support the Arc command that
  159.             allow the creation of an arc which is much more asymetric
  160.             than the fillet.  The same procedure is used to create an arc
  161.             as is s fillet, however, three points ar necessary.
  162.  
  163.  
  164.       5. Drawing lines with PolyLine.
  165.             PmPaint supports two types of drawing modes, one as the
  166.             default by just pointing and clicking the mouse without
  167.             selecting any options, and two - the PolyLine.
  168.  
  169.             A PolyLine is a GPI function that draws several line segments
  170.             given an array of points.  PolyLine is much faster at drawing
  171.             several contiguous line segments than drawing a single line at
  172.             time with the default draw mode.  To start a PolyLine just
  173.             select Begin PolyLine from the Special Drawing menu and draw
  174.             the figure as you would normally.
  175.  
  176.             Note, however, that you cannot move the draw pointer while in
  177.             a PolyLine mode, if you do the point you move to will act as
  178.             just another point at which to draw to and a line will be
  179.             drawn to it - Remember a PolyLine is a CONTIGUOUS set of
  180.             lines.
  181.  
  182.             When done drawing the PolyLines, select End PolyLine to end
  183.             the use of the PolyLine function:
  184.  
  185.             PolyLine can be used inside an Area Bracket as well.  Just
  186.             follow the steps outlined in for Fillets but instead of using
  187.             the Fillet, us the Begin and End PolyLine functions.
  188.  
  189.             IMPORTANT:
  190.                   The way a PolyLine is implimented in GPI, it must have
  191.                   an array of points to draw.  Since that method of
  192.                   storing points is not used in PmPaint directly, a
  193.                   limitation of 255 points has been set for each PolyLine
  194.                   figure drawn.  Any points added after 255 are not drawn
  195.                   as part of the PolyLine.  Also, the End PolyLine command
  196.                   will not automatically be set for you at this limit. A
  197.                   high tone will be generated for every point set after
  198.                   255.
  199.  
  200.  
  201.       6.  Drawing Boxes
  202.             PmPaint allows a very easy and simple way to draw boxes.
  203.             First, move the mouse pointer and mark the location where you
  204.             would like to place the LOWER LEFT corner of the box (Select
  205.             the location by moving the draw position to that location).
  206.             Next, select "Begin Box" from the menu.  Notice that your
  207.             location you selected is marked with an "x".  Now either draw
  208.             a line or move the draw position to where you would like to
  209.             have the TOP RIGHT corner of the box.  Now, select "End Box"
  210.             from the menu and - bingo - a box.  You can also use the box
  211.             command within an area bracket to get a filled box.  The box
  212.             command will not within Fillets, Poly Lines, or curves.
  213.  
  214.  
  215.       7. Changing Color.
  216.             To change the color of the current draw pointer just select
  217.             the color you like from the Color menu.  When you change the
  218.             drawing color, the Fill Patterns window will reflect your
  219.             color choice by changing the color of the current fill
  220.             pattern.
  221.  
  222.                 NOTE:  The older versions of PMPAINT (Prior to 1.11)
  223.                        added a color command to the list of commands
  224.                        stored in the picture whether the previous commands
  225.                        was setting the color also, however, PMPAINT
  226.                        version 1.11 and above will not do this.  If the
  227.                        last command selected was to change the color, then
  228.                        the old node is updated instead of a new one added.
  229.  
  230.  
  231.       8. Changing Fill Patterns.
  232.             To change the fill pattern just click the Left mouse button
  233.             on top of the Fill Patterns Window.  Pressing the Right mouse
  234.             button (Button 2) will go to the previous fill pattern.  The
  235.             visible pattern is what will be used for the next fill.
  236.  
  237.  
  238.       9. Deleting Items.
  239.             Deleting items in PmPaint is Primitive but effective. You can
  240.             either delete the last line, Area, Fillet, or PolyLine you
  241.             created by selecting the Options, Delete, Last Command
  242.             function or by pressing Control-D.
  243.  
  244.             Any Area, Fillet, PolyLine or Box, that requires you to select
  245.             a begin command on will be deleted from the start of that
  246.             command (The Begin ??? Command) to the end of that command
  247.             (The End ??? Command).
  248.  
  249.             Note: You cannot delete something whenever you have Begun an
  250.             Area Bracket, Fillet, or PolyLine.  You must end the Bracket,
  251.             Fillet, or PolyLine in order to delete it.
  252.  
  253.             A second way to delete something is to select the command to
  254.             delete the last fill (CTRL-F) under the Options, Delete,
  255.             Last Fill command.  When this is chosen the last thing that
  256.             was filled (i.e an Area Bracket) will be deleted even if it
  257.             was not the last command executed.
  258.  
  259.  
  260.      10. Loading Pre-made graphics.
  261.             To load Pre-Made graphics, just press Control-L or select LOAD
  262.             from the File menu.  Only graphics with the .PMP can be
  263.             loaded.  These files are special to the PmPaint program only.
  264.             METAFILES CANNOT BE LOADED - sorry.  However, any files loaded
  265.             as a PmPaint file can be saved as a MetaFile as well as the
  266.             PmPaint file.
  267.          
  268.             After Loading a file, the mouse pointer will be positioned to
  269.             the last location drawn.
  270.  
  271.  
  272.      11. Saving your work.
  273.             To save your work, just press Control-S or select SAVE from
  274.             the file menu.  When you save, you have the options of saving
  275.             a MetaFile of the drawing as well.  Note that the PmPaint
  276.             format will always be saved and by checking the box for
  277.             MetaFile save, you save a MetaFile as well.
  278.  
  279.             NOTE:  When saving or loading a file, DO NOT supply an
  280.             extension after the FilName - PmPaint does that for you and
  281.             assumes that the filename does not have an extension.  If you
  282.             add an extension, the file will not be saved or loaded.
  283.  
  284.  
  285.             IMPORTANT!
  286.             PMPAINT supports the use of Long File names for use with the
  287.             HPFS for saving and loading of PmPaint Files.
  288.  
  289.             Also, PmPaint version 1.10 and above uses list boxes for
  290.             filenames and directories instead of having to enter the
  291.             filename at a prompt.  However, PmPaint does not warn you if
  292.             you are going to overwrite another file, you must make sure
  293.             everything is alright before saving.
  294.  
  295.  
  296.      12. Drawing the graphic to the window size.
  297.             If you change the Window Size you can view what you have drawn
  298.             to fill the entire window for VIEWING only.  Your graphic can
  299.             be reduced or enlarged.  The original purpose of this was to
  300.             aid in my design of the OS/2 game as described at the start of
  301.             this document.  To view the picture at normal size, either hit
  302.             CTRL-W again or adjust the size of the window so OS/2 can
  303.             repaint your drawing to the original size.
  304.  
  305.      13. Misc. functions
  306.             The miscellaneous functions include Hiding the Coordinate box
  307.             and moving the mouse pointer to the current draw pointer.
  308.             These functions should be self-explanitory.
  309.  
  310.  
  311.  
  312.  
  313.  
  314. T H E  F U T U R E
  315. ___________________________
  316.  
  317.  
  318.       As stated above, PmPaint will feature more functions in the future
  319. and try to exploit as many if not all of the GPI functions available to
  320. the Presentation Manager.
  321.  
  322.       Furthermore, in the works are functions to draw circles, elipses,
  323. arcs, etc. all with the possibility of being filled or not.  Also, I plan
  324. to add features to change the line type.
  325.  
  326.  
  327. Thank you for supporting PmPaint and registering the software.  There is a
  328. lot of hard work that goes into a simple program such as PmPaint and to
  329. register the software gives me the incentive to write more software for
  330. OS/2 PM for all of you users out there.  All the programs written by me
  331. and registered will always come with source code for you to learn from and
  332. add to and experiment with.  If you have any questions or problems with
  333. the programs, please correspond to me at the following address:
  334.  
  335.         Mitchell Fisher
  336.         5914 West Golden Lane
  337.         Glendale, AZ (USA)  85302
  338.         (602) 930-8585
  339.  
  340.