home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / wps / graphic / pmpaint2 / pmpaint.doc next >
Text File  |  1993-02-16  |  17KB  |  357 lines

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