home *** CD-ROM | disk | FTP | other *** search
/ World of Graphics / WOGRAPH.BIN / 061.256PAINT.DOC < prev    next >
Text File  |  1992-06-03  |  48KB  |  958 lines

  1.  
  2.  
  3.              ++------------------------------------------------++
  4.              ||                                                ||
  5.              || 256 PAINT - 256 Color VGA Image Workshop  v2.0 ||
  6.              ||               Formerly 256 DRAW                ||
  7.              ||                                                ||
  8.              ||         A Pod Bay Enterprises Product          ||
  9.              ||                                                ||
  10.              ||         Programmer: David A. Johndrow          ||
  11.              ||                                                ||
  12.              ||   Registration Fee: $10  (Registration Only)   ||
  13.              ||                     $15  (Reg. & 256 PLUS)     ||
  14.              ||                                                ||
  15.              ||      Register with: David A. Johndrow          ||
  16.              ||                     3115 Deerchase Wynd        ||
  17.              ||                     Durham, NC  27712          ||
  18.              ||                                                ||
  19.              ||          IMPORTANT: Make checks payable to     ||
  20.              ||                     David A. Johndrow          ||
  21.              ||                                                ||
  22.              ++------------------------------------------------++
  23.  
  24.  
  25. WHY SHOULD YOU REGISTER?
  26.  
  27.      Three reasons, mainly.  First, at the $15 registration level, the
  28. author will send you 256 Plus, a set of extra tools and program examples
  29. that will augment the 256 Paint program (see 256 Plus in table of
  30. contents).  Secondly, the author will also include any more recent versions
  31. of 256 Paint and any other Pod Bay titles when you are shipped 256 Plus.
  32. Lastly, you will support the shareware idea.  At first, this notion may
  33. seem superfluous, but the shareware concept is based on the "try-before-
  34. you-buy" principle.  This does not mean that it is free.  If you use 256
  35. Paint, you are expected to register.  No support for code or program usage
  36. will be extended to those who do not register!
  37.  
  38.  
  39. HOW CAN YOU REGISTER?
  40.  
  41.      Very simply, print the file Register.DOC, fill out the questionnaire,
  42. then send it to me via U.S. mail.  The accompanying form does not
  43. necessarily need to be sent, but it will help you determine the
  44. registration fee and help me process the order.  Please pay particular care
  45. for extra charges pending if you intend to use it for a business or are
  46. outside the U.S.
  47.  
  48.  
  49. ANY QUESTIONS?
  50.  
  51.      Don't worry, I'm not going to throw an egg into a frying pan and call
  52. it your brain!  If you have questions about using 256 Paint, please include
  53. them with your registration fee.  If you have a burning need to have a
  54. question answered before you register, write a letter or send me E-mail
  55. through America On-Line under "Pod Bay".
  56.  
  57.                 +--------------------------------------------+
  58.                 |  256 Paint - 256 Color VGA Image Workshop  |         2
  59.                 +--------------------------------------------+
  60.  
  61.         +------------------------------------------------------------+
  62.         |  Table of Contents                                  Page   |
  63.         +------------------------------------------------------------+
  64.         |                                                            |
  65.         |  About 256 Paint, Pod Bay Enterprises..................3   |
  66.         |                                                            |
  67.         |  General Information...................................4   |
  68.         |                                                            |
  69.         |  Macros................................................4   |
  70.         |                                                            |
  71.         |  Screen Layout.........................................5   |
  72.         |                                                            |
  73.         |  An Important Note About Files & Palettes..............6   |
  74.         |                                                            |
  75.         |  256 Paint Menu Items Descriptions.....................7   |
  76.         |                                                            |
  77.         |      Draw a Shape......................................8   |
  78.         |                                                            |
  79.         |      Rectangular Moves.................................9   |
  80.         |                                                            |
  81.         |      Disk I/O.........................................10   |
  82.         |                                                            |
  83.         |      Zoom.............................................11   |
  84.         |                                                            |
  85.         |      Misc. Toolbox....................................11   |
  86.         |                                                            |
  87.         |      Oops!............................................13   |
  88.         |                                                            |
  89.         |      Palette Operations...............................13   |
  90.         |                                                            |
  91.         |      256 Paint Settings...............................14   |
  92.         |                                                            |
  93.         |      General Help.....................................14   |
  94.         |                                                            |
  95.         |      Paint Operations.................................14   |
  96.         |                                                            |
  97.         |      Resizing.........................................17   |
  98.         |                                                            |
  99.         |      Exit.............................................17   |
  100.         |                                                            |
  101.         |  Palette Editor.......................................18   |
  102.         |                                                            |
  103.         |  256 PLUS, What id It?................................19   |
  104.         |                                                            |
  105.         |  PB256 Turbo Pascal Unit, What Is It?.................20   |
  106.         |                                                            |
  107.         |  256 Paint Version History............................21   |
  108.         |                                                            |
  109.         +------------------------------------------------------------+
  110.  
  111.                 +--------------------------------------------+
  112.                 |  256 Paint - 256 Color VGA Image Workshop  |         3
  113.                 +--------------------------------------------+
  114.  
  115.  
  116. 256 Paint - The "256 PAINT VGA Image Workshop" is designed for use by
  117. anyone who has a desire to paint or edit images in 256 color VGA mode.  The
  118. images created with 256 Paint are simple bitmap images with no compression
  119. schemes involved.  This product encompasses many diverse painting and
  120. graphics-related routines.  Since this is a shareware product it may be
  121. freely distributed, copied or shared.  After reviewing 256 Paint, please
  122. register the product by sending the registration fee directly to David
  123. Johndrow If you wish to have Pod Bay Enterprises send you the corollary
  124. program, 256 PLUS, please include an extra $5 for expenses for a total of
  125. $15.
  126.  
  127.  
  128. 256 PLUS - The "256 PLUS TOOLBOX PROGRAM" was devised to complement the 256
  129. Paint program for the power-users.  All sorts of powerful tools such as
  130. Palette Approximations, Code Examples, and Hardcoding, to name a few, are
  131. included with this program.  You get 256 PLUS by registering 256 Paint for
  132. $15.  For most users, we recommend registration to include this product.
  133. Please specify which type of drive you have (5¼ or 3½) and we will mail you
  134. a low-density disk with the "256 PLUS TOOLBOX" as well as any recent
  135. versions of 256 Paint.  For more detail on 256 PLUS, please refer to the
  136. section at the end of this document entitled "256 PLUS, What to expect."
  137.  
  138.  
  139. POD BAY ENTERPRISES - is a software-development team dedicated to bringing
  140. quality software to the shareware and commercial markets.  256 PAINT
  141. originated from a need for a qualitative, simple, yet powerful graphics
  142. program without the usual exorbitant price-tag.  Although 256 PAINT is
  143. being distributed under the POD BAY ENTERPRISES name, it is solely owned by
  144. the author, David Johndrow.  The author wishes to thank Brian Cox, Sharon
  145. Watson, Dwight Sharpe, Harold Burdick, Bob Roberds, Jordan Hargave, and all
  146. the people who have registered for their valuable contributions to the
  147. development and evolution of 256 PAINT.  Their needs and ideas clearly
  148. defined the direction of this endeavor. Both 256 Paint and 256 Plus were
  149. developed under Turbo Pascal version 6.0, the Example.C file was tested
  150. using Turbo C++ version 1.01.  The author is currently a Research Analyst
  151. at Duke University Medical Center.
  152.  
  153.                 +--------------------------------------------+
  154.                 |  256 Paint - 256 Color VGA Image Workshop  |         4
  155.                 +--------------------------------------------+
  156.  
  157.  
  158. GENERAL INFORMATION - The 256 Paint graphics program is designed to operate
  159. stand-alone.  This means that you can install it somewhere on the path and
  160. then call it up by simple typing 256Paint at any time.  If you are new to
  161. DOS, or if you have no hard drive, you may want to run 256 Paint from a
  162. floppy disks.  The DOS manuals might prove useful for determining what the
  163. path is as well as how to change it, but 256 Paint is not required to be
  164. placed in the path.  Once you have copied the 256PAINT.EXE program to the
  165. desired location, you are ready to run it.  Even though 256 Paint, as well
  166. as 256 Plus, does not need to be in the current directory, be aware that
  167. all files (palette and image) are saved in the current directory.  Before
  168. running the 256 Paint program, you may wish to print this document.  Either
  169. load it as a file in your word processor and print it or type the
  170. following command in DOS: "TYPE 256PAINT.DOC >PRN"  Refer to the General
  171. Information section for more information about files included with the 256
  172. Paint program.
  173.  
  174.  
  175. MACROS - The following is a list of macros supported by 256 Paint:
  176.  
  177.     [Alt][1] - Pixel size 1x1
  178.  
  179.     [Alt][2] - Pixel size 2x2
  180.  
  181.     [Alt][3] - Pixel size 3x3
  182.  
  183.     [Alt][4] - Pixel size 4x4
  184.  
  185.     [Alt][5] - Pixel size 5x5, customized pattern, also [Alt][P]
  186.  
  187.     [Alt][G] - Toggle the grid mode, if appropriate.
  188.  
  189.     [Alt][S] - Abort program quickly.  Image saved as "256Dump.VGA"
  190.  
  191.     [Alt][X] - Abort program quickly.  No image save.
  192.  
  193.     [ESC]    - Abort program with prompt.
  194.  
  195.                 +--------------------------------------------+
  196.                 |  256 Paint - 256 Color VGA Image Workshop  |         5
  197.                 +--------------------------------------------+
  198.  
  199. Screen Layout:
  200.  
  201.  
  202. +------------------------------------------------------------------------+
  203. | +------------------------------------------+                           |
  204. | |                                          |                           |
  205. | |  Paint Window - This is where all of the | This area will hold the   |
  206. | |                                          |                           |
  207. | |      real action occurs.                 | real size image if the    |
  208. | |                                          |                           |
  209. | |  [Left Button] - will either place a     | Paint window is adjusted. |
  210. | |                                          |                           |
  211. | |      pixel or choose a point.            | See note 1 below.         |
  212. | |                                          |                           |
  213. | |  [Right Button] - will select the paint  | +-----------------------+ |
  214. | |                                          | |                       | |
  215. | |      color to be whatever is currently   | |  Menu Window - Choose | |
  216. | |                                          | |                       | |
  217. | |      located at that location.           | |      options here.    | |
  218. | |                                          | |                       | |
  219. | +------------------------------------------+ |  [LB] - Chooses item. | |
  220. | +------------------------------------------+ |                       | |
  221. | |                                          | |  [RB] - Help on topic.| |
  222. | |  Palette Window - Choose colors here.    | |                       | |
  223. | |                                          | |  See note 2 below.    | |
  224. | +------------------------------------------+ +-----------------------+ |
  225. +------------------------------------------------------------------------+
  226.  
  227. NOTE 1: The paint window often uses pixels larger than an actual screen
  228. pixel.  This makes editing pixels much easier, especially while in zoom
  229. mode.  If the image being edited is smaller or equal to 100x75 pixels in
  230. size, the real-size image is displayed in the upper-right corner of the
  231. screen.
  232.  
  233.  
  234. NOTE 2: Keep in mind that Help is available most of the time.  Only when
  235. you are in the middle of a process is help unavailable.  If you have begun
  236. a process and you are not sure what you have done, you can usually abandon
  237. it by hitting the Right mouse button.  Probably the most relieving command
  238. available is the UNDO command.  Exploring should be encouraged by the fact
  239. that you can always undo the last action.  Saving periodically can also
  240. take some of the danger of unwanted changes becoming permanent.
  241.  
  242.                 +--------------------------------------------+
  243.                 |  256 Paint - 256 Color VGA Image Workshop  |         6
  244.                 +--------------------------------------------+
  245.  
  246. FILES AND PALETTES - This section is included to explain a subject that
  247. can be confusing for many users.  In this document, the term file refers
  248. to the disk file that can hold just the image or the image along with its
  249. own palette.  In the 256 PAINT program these files have a .VGA file
  250. extension.  The term palette refers to the settings of the 256 colors that
  251. are visible.  These files have a .PAL file extension.  Remember, only 256
  252. colors can be displayed at one time but they can be selected from 262,144
  253. colors!
  254.  
  255. When saving an image to disk, you must decide whether or not to bundle the
  256. palette with that file.  The best rule of thumb to follow when deciding
  257. which route to go is to first assess your needs.  If you are working with
  258. different PCX files or you will be using the images in a situation where
  259. only one is visible at a time, you may want to save the palette along with
  260. the image.  If you are going to use a generic or constant palette, avoid
  261. saving the palette with the images and you will save 768 bytes per file.
  262. 256 PAINT uses the .VGA extension on both kinds of files so it relies on
  263. file size alone to determine if you have saved the palette along with the
  264. image.
  265.  
  266. 256 PAINT will know to load the palette with the image if there is one
  267. saved with a file.  You need to make sure that your program knows to do
  268. the same if you use unique palettes.  Of course, we have provided a means
  269. for you to save just the palette in its own file for the purpose of
  270. loading it within 256 PAINT as well as your own programs.  Saving the
  271. current palette by itself, into a .PAL file as mentioned above, may be
  272. done in 256 PAINT by clicking on PAL and then choosing SAVE from the next
  273. sub-menu.
  274.  
  275. Included in the package you have already received is some sample code in C
  276. and Pascal that will show you how to load and use image files.  Be sure to
  277. review the files EXAMPLE.C and/or EXAMPLE.PAS.
  278.  
  279.                 +--------------------------------------------+
  280.                 |  256 Paint - 256 Color VGA Image Workshop  |         7
  281.                 +--------------------------------------------+
  282.  
  283. THE MENUING SYSTEM - The new menuing system, as of version 2.0, is
  284. comprised of an icon-driven menu with each component having several sub-
  285. components.  The components are grouped together logically, therefore you
  286. know longer have to search for the desired action among a list of 36 items!
  287. Simply click with the left button to choose menu items.  Clicking with the
  288. right button will allow you to receive a brief description about that item.
  289. If 256 Paint is in hidden menu mode, moving the cursor off of the menu will
  290. return you to normal edit mode and make the menu go away.
  291.  
  292.  
  293. THE PALETTE SYSTEM - The color palette allows you to choose which color you
  294. want to perform drawing activities in.  Simply point to the color you want
  295. and click the mouse button.  Since only 64 of the 256 colors are visible at
  296. a time, use the arrows on the right side of the palette to page through the
  297. colors.  Also note that in the paint window, hitting the right button will
  298. set the current color to be what was under the mouse.  If 256 Paint is
  299. operating in hidden palette mode, hitting the right button will return you
  300. to normal editing and make the palette go away.
  301.  
  302.  
  303. IMPORTANT NOTE: As of version 2.0, 256 Paint allows you to work on full-
  304. screen images.  If the image is too large to allow the menu on-screen, you
  305. can bring the menu up by either hitting the middle button on a three-button
  306. mouse or holding down the right button and then pressing the left.  Now for
  307. the tricky part.  If both the menu and the color palette are hidden, this
  308. action will invoke either depending on the current location of the mouse.
  309. In the left-half of the screen, it will call up the color palette, in the
  310. right-half it will invoke the menuing system.  If you are working on an
  311. odd-shaped image where one of those two is already active, say 160x200,
  312. then the hidden palette is invoked regardless of your location at the time
  313. of calling.  This is difficult to describe with language, so give it a
  314. whirl and you will get the hang of it.
  315.  
  316.  
  317. The next large section will take you through each menu component and all of
  318. its sub-components as well.  Below is a diagram which shows the locations
  319. of the main components with their english-version names:
  320. +---------------------+  +---------------------+  +---------------------+
  321. |                     |  |                     |  |                     |
  322. |    Draw a Shape     |  |  Rectangular Moves  |  |      Disk I/O       |
  323. |                     |  |                     |  |                     |
  324. +---------------------+  +---------------------+  +---------------------+
  325. +---------------------+  +---------------------+  +---------------------+
  326. |                     |  |                     |  |                     |
  327. |        Zoom         |  |    Misc. Toolbox    |  |    Oops! (Undo)     |
  328. |                     |  |                     |  |                     |
  329. +---------------------+  +---------------------+  +---------------------+
  330. +---------------------+  +---------------------+  +---------------------+
  331. |                     |  |                     |  |                     |
  332. | Palette Operations  |  | 256 Paint Settings  |  |    General Help     |
  333. |                     |  |                     |  |                     |
  334. +---------------------+  +---------------------+  +---------------------+
  335. +---------------------+  +---------------------+  +---------------------+
  336. |                     |  |                     |  |                     |
  337. |  Paint Operations   |  |      Resizing       |  |        Exit         |
  338. |                     |  |                     |  |                     |
  339. +---------------------+  +---------------------+  +---------------------+
  340.  
  341.                 +--------------------------------------------+
  342.                 |  256 Paint - 256 Color VGA Image Workshop  |         8
  343.                 +--------------------------------------------+
  344.  
  345.  
  346. +---------------------+
  347. |                     |
  348. |    Draw a Shape     |
  349. |                     |
  350. +---------------------+
  351.  
  352.  
  353. These routines are the fundamental drawing routines inherent in a Paint
  354. program.  The following shape choices are available:
  355.  
  356.  
  357. LINE - This will allow you to paint a line.  You must specify the
  358. endpoints.
  359.  
  360.  
  361. RECTANGLE - This will allow you to paint a rectangle.  You must specify
  362. two opposing corners.
  363.  
  364.  
  365. CIRCLE - This will allow you to paint a circle.  You will be asked to
  366. first specify the center, and then a point along the circumference.
  367.  
  368.  
  369. ELLIPSE - This process lets you create odd shaped ellipses.  After
  370. supplying the center of the circle, you will then give the x and y radius'
  371. respectively.  Unlike the circle routine, where the circumference point
  372. can be anywhere, the program isolates mouse movement so only appropriate
  373. points are selected for x and y radius.
  374.  
  375.  
  376. POLYGON - The most powerful of the shape processes.  This feature allows
  377. the user to paint a shape that has up to 100 sides.  This will give a
  378. tremendous amount of freedom to create shapes that are widely diverse.
  379. Since it is a nuisance to stop and figure out how many points the shape
  380. will have, the program allows you to just keep entering points until you
  381. decide it is time to either draw the shape or abort the process.  To use
  382. this process, just start selecting points in the work area.  Once you are
  383. done, the right mouse button interrupts the process.  It is at this time
  384. that you inform the program whether you are done selecting points or
  385. changed your mind and want to abort.
  386.  
  387.                 +--------------------------------------------+
  388.                 |  256 Paint - 256 Color VGA Image Workshop  |         9
  389.                 +--------------------------------------------+
  390.  
  391.  
  392.  
  393. +---------------------+
  394. |                     |
  395. |  Rectangular Moves  |
  396. |                     |
  397. +---------------------+
  398.  
  399.  
  400. These routines all operate on a rectangularly defined region.  Each has a
  401. slightly different property described below:
  402.  
  403. COPY - This will copy, verbatim, the rectangular region you specified, to
  404. a new location.  All pixels, background included, will appear in the new
  405. location.
  406.  
  407.  
  408. MOVE - Like the copy routine, this process will leave a hole of color 0
  409. where the picture was originally.  This routine is most useful when
  410. desiring to pick up and move an object, and that object is bounded by
  411. space (color 0).
  412.  
  413.  
  414. OVERLAY - Same as the copy routine with one exception: Any background
  415. color (color 0) in the moving picture will allow colors under it to
  416. appear.  That is, no color 0 will be put over any other color.
  417.  
  418.  
  419. ERASE - This simply erases the area specified by the rectangular bounds.
  420. By erase, this means that color 0 will be used.
  421.  
  422.                 +--------------------------------------------+
  423.                 |  256 Paint - 256 Color VGA Image Workshop  |         10
  424.                 +--------------------------------------------+
  425.  
  426.  
  427. +---------------------+
  428. |                     |
  429. |      Disk I/O       |
  430. |                     |
  431. +---------------------+
  432.  
  433.  
  434. CREATE NEW IMAGE - This option allows you to start a fresh picture.  If you
  435. were currently working on a picture, you will be prompted for a chance to
  436. save. Use the mouse to select the size of the picture you will be working
  437. on. If you wish to change these dimensions later, you may do so with the
  438. size command.
  439.  
  440.  
  441. LOAD VGA IMAGE - This option allows you to load a saved (.VGA) picture from
  442. disk.  All of the information regarding size and palette, if applicable,
  443. will be loaded as well.  For more information regarding the handling of
  444. files and palettes, see the special section entitled "Files and Palettes."
  445.  
  446.  
  447. LOAD PCX IMAGE - This option allows you to load a saved (.PCX) picture from
  448. disk.  Note: Only 256 color PCX images not exceeding 320 pixels in width or
  449. 200 pixels in height can be loaded into 256 Paint.  If you wish to use
  450. images larger than 320x200, try using some available clipping routines to
  451. size it down to the appropriate size.
  452.  
  453.  
  454. SAVE VGA IMAGE- This option allows you to save the current picture to a
  455. (.VGA) disk file. If you had previously loaded the picture from disk, the
  456. save option will ask if you want to save the picture under the same name,
  457. if not, or if it is a new picture, you will be prompted for the picture
  458. name.  In addition to saving the picture data, you may also save the
  459. palette with the picture.  You must tell 256 Paint whether you wish to do
  460. so or not.  This is discussed in more detail in the section "Files and
  461. Palettes."
  462.  
  463.  
  464. SAVE PCX IMAGE- This option allows you to save the current picture to a
  465. (.PCX) disk file.  256 Paint saves all (.PCX) images as 320x200.
  466.  
  467.  
  468. MERGE - In order to simplify the process of editing pictures separately
  469. with one final picture in mind, this process was created.  This will allow
  470. you to load in any picture from the disk and place it over the current
  471. picture.  This uses the overlay routine so that only non-background colors
  472. are actually placed over the picture.  The picture loaded must be less
  473. than or equal to the size of the picture already being worked on.  Note:
  474. Any picture pulled into the current picture will ignore the palette of the
  475. picture being loaded.
  476.  
  477.                 +--------------------------------------------+
  478.                 |  256 Paint - 256 Color VGA Image Workshop  |         11
  479.                 +--------------------------------------------+
  480.  
  481.  
  482. +---------------------+
  483. |                     |
  484. |        Zoom         |
  485. |                     |
  486. +---------------------+
  487.  
  488.  
  489. This routine has no subcomponents.  It allows you to zoom into a smaller
  490. region and work on really "fat" pixels, which are much easier for pixel
  491. manipulation.  After selecting this option, you will define rectangularly
  492. the region you want to zoom.  Upon leaving, you will be asked if you want
  493. to keep the changes that you made.  If you save while in zoom mode, you are
  494. saving only the zoomed portion.  Only a few options, such as image
  495. resizing, ar unavailable while zoomed in.  This provides a means to lift
  496. smaller images out of the current image.  Users of earlier versions of 256
  497. Paint may notice a slight delay while zooming, this is due to disk swapping
  498. while switching in and out of zoom mode.
  499.  
  500.  
  501. +---------------------+
  502. |                     |
  503. |    Misc. Toolbox    |
  504. |                     |
  505. +---------------------+
  506.  
  507.  
  508. The following routines are miscellaneous.  Future versions of 256 Paint
  509. will probably have additions inserted here:
  510.  
  511.  
  512. HORIZONTAL FLIP - This will simply flip the picture left-right.  This means
  513. the picture will be flipped along a central vertical axis.  Note that the
  514. entire picture will be flipped.  To flip only a portion, zoom-in, perform
  515. the flip and then zoom back out.
  516.  
  517.  
  518. VERTICAL FLIP - This routine will flip the picture top-bottom.  Pictures
  519. will be turned "upside down".  This means that the picture will be flipped
  520. along a central horizontal axis.  Keep in mind the same usefulness of the
  521. zoom option mentioned above.
  522.  
  523.  
  524. ROTATE IMAGE - This routine will rotate an image 90 degrees, thus turning a
  525. picture on end.  You will notice that the disparity between x and y images
  526. creates a problem here.  This routine will crop any x dimension greater
  527. than 200.  If you don't want cropping, use the size command to resize to
  528. 200 pixels wide.  Since this option swaps image x and y dimensions,
  529. rotation cannot be performed while in zoom mode.
  530.  
  531.                 +--------------------------------------------+
  532.                 |  256 Paint - 256 Color VGA Image Workshop  |         12
  533.                 +--------------------------------------------+
  534.  
  535.  
  536. +------------------------------+
  537. |                              |
  538. |    Misc. Toolbox, cont'd.    |
  539. |                              |
  540. +------------------------------+
  541.  
  542.  
  543. SELECT A FONT - This routine allows you to select a (.CHR) stroked font
  544. file to be used in the addition of text to your images.  These files
  545. can be created with and are distributed with the BGI Toolbox which
  546. is a Borland International Public Domain product.  256 Paint looks for
  547. these files in the directory from which you called 256 Paint.  That is,
  548. it will ignore (.CHR) files in the current directory if you relied on the
  549. path to call 256 Paint.  The good side to this is that you don't have to
  550. have all of these files lying around in each drawing directory you use.
  551. Two important notes: First, any file named LITT.CHR is ignored since a
  552. modified form of this file is what 256 Paint uses.  Secondly, You always
  553. have at your disposal a default font which is not in a (.CHR) file but
  554. rather resides in memory.
  555.  
  556. ADD TEXT - This routine allows you to enter text into your image.  The
  557. source for the Text are the (.CHR) font files discussed in the previous option.
  558. When you choose this option, you will see a screen that has the words
  559. "Example Text" typed in the current font and text size.  If you wish to change
  560. the current font, quit and go to "Select a Font", If you wish to change the
  561. current text size, use the mouse to select a position.  Note: Size 0 is
  562. considered the default size so in many cases, it is not smaller than size 1!
  563. As soon as you type a letter, the "Example Text" is replaced with the text you
  564. will be adding.  The Escape key or the right mouse button will let you exit
  565. this mode without adding text.  The [Alt][T] Macro will quickly call this
  566. routine up.
  567.  
  568.                 +--------------------------------------------+
  569.                 |  256 Paint - 256 Color VGA Image Workshop  |         13
  570.                 +--------------------------------------------+
  571.  
  572.  
  573. +---------------------+
  574. |                     |
  575. |    Oops! (Undo)     |
  576. |                     |
  577. +---------------------+
  578.  
  579.  
  580. This routine can be a real saver.  Since saving after every operation would
  581. be a tremendous waste of time, you can always back up one step by the push
  582. of a button.
  583.  
  584.  
  585. +---------------------+
  586. |                     |
  587. | Palette Operations  |
  588. |                     |
  589. +---------------------+
  590.  
  591.  
  592. 256 Paint allows you to load, save and manipulate 256 color palettes
  593. independent from image files:
  594.  
  595.  
  596. LOAD PALETTE - Load allows you to load a palette from disk.  You will
  597. choose from a list in the same manner that you load a picture file.  The
  598. Load Palette feature seeks files using the (.PAL) extension.
  599.  
  600.  
  601. SAVE PALETTE - Save allows you to save the palette to disk.  Just as the
  602. Load Palette feature is analogous to the Load File feature, so is the Save
  603. Palette feature analogous to the Save File feature.  Therefore, overwrites
  604. are confirmed.  Always remember that this feature saves only the palette
  605. into a file with a (.PAL) extension and not anything relating to the
  606. current image.
  607.  
  608.  
  609. MODIFY PALETTE - The most powerful palette feature, Modify brings up an
  610. entirely new screen which allows the user to change the existing palette in
  611. some way.  The two main operations include a direct single-color
  612. manipulation as well as a multi-color trend operation.  This option is
  613. discussed in detail in the section entitled: "The Palette Editor."
  614.  
  615.                 +--------------------------------------------+
  616.                 |  256 Paint - 256 Color VGA Image Workshop  |         14
  617.                 +--------------------------------------------+
  618.  
  619.  
  620. +---------------------+
  621. |                     |
  622. | 256 Paint Settings  |
  623. |                     |
  624. +---------------------+
  625.  
  626.  
  627. This routine opens a window in which you can change various settings for
  628. the editing environment.  For example, normally a press on the left button
  629. paints one pixel in the work area.  You can modify this by having 2x2, 3x3,
  630. 4x4, 5x5 or any pattern up to 5x5 be painted when you press the left
  631. button.  In addition to pixel size, you can also turn on a grid that makes
  632. pixel delineation more clearer.  Of course, the grid is available only when
  633. the work area contains "fat" pixels.  Lastly, you can change the time
  634. setting for delayed prompts.  If you work on full-screen images, you will
  635. note that all prompts are timed.  Changing this setting will alter how long
  636. they remain visible.  Almost all of the settings can also be changed using
  637. macros, please refer to that section.
  638.  
  639.  
  640. +---------------------+
  641. |                     |
  642. |    General Help     |
  643. |                     |
  644. +---------------------+
  645.  
  646.  
  647. Choosing this option will step you through a general description of the 256
  648. Paint program.  Detailed help on menu options is available by pressing the
  649. left button while over an icon and then choosing the subcomponent, if
  650. necessary.
  651.  
  652.  
  653. +---------------------+
  654. |                     |
  655. |  Paint Operations   |
  656. |                     |
  657. +---------------------+
  658.  
  659.  
  660. This section provides the real meat of the paint options offered by the 256
  661. Paint program.  Most of these options may be considered advanced and take a
  662. little practice to fully understand.  Please keep in mind that the "active"
  663. or "current" color place an important role in the outcome of these
  664. procedures.  You may inadvertently have the wrong color selected and then
  665. wonder why the Sunburst procedure didn't do anything.  Used properly, these
  666. options can yield the most dramatic effects.  Improperly they can be a real
  667. headache:
  668.  
  669.  
  670. FILL - This feature allows you to fill an area with the current color.
  671. You will need to specify an area to fill.  The fill command keeps filling
  672. until all adjacent areas of the disappearing color are gone.
  673.  
  674.                 +--------------------------------------------+
  675.                 |  256 Paint - 256 Color VGA Image Workshop  |         15
  676.                 +--------------------------------------------+
  677.  
  678.  
  679. +---------------------------+
  680. |                           |
  681. | Paint Operations, cont'd. |
  682. |                           |
  683. +---------------------------+
  684.  
  685.  
  686. COLOR REPLACEMENT - This routine allows you to replace all instances of one
  687. color with the currently selected color.  After selecting this option you
  688. will first be asked to define the rectangular region over which the replace
  689. will be performed, then you will be asked to select a color in that region
  690. to be the color replaced.  The program will then replace that color with
  691. the current color.
  692.  
  693.  
  694. RANDOM REPLACEMENT - This process is similar to the replace option with one
  695. main exception: Instead of replacing all instances of the target color, it
  696. will replace a percentage of the pixels at random locations.  To enter the
  697. percentage of pixels to replace, use the mouse in a vertical manner and
  698. click when the desired percentage is shown.  Say you want to replace 50% of
  699. the pixels of color 1 with color 2.  The program will randomly select
  700. pixels of color 1 to replace with color 2 until 50% of the pixels of color
  701. 1 are replaced.  Like the replace feature, the activity occurs over a
  702. rectangular region you specify.
  703.  
  704.  
  705. PHASE - A powerful graphics routine, this procedure will allow you to
  706. create transitional phases of colors.  You will specify the rectangular
  707. coordinates for the phase to take effect.  You will need to then decide
  708. between a horizontal or vertical phase, and an ascending or descending
  709. color phase.  You will also need to specify how many colors are in the
  710. phase, from 2 to 99.  Important: The phase takes effect only on all
  711. instances of the current color within the rectangular region.  The
  712. demonstration document will step you through an example of this procedure.
  713. See PHASE.VGA.
  714.  
  715.  
  716. SUNBURST - Similar to the phase routine, this function differs only in
  717. that the colors spread out in a radial manner.  See SUNBURST.VGA.
  718.  
  719.                 +--------------------------------------------+
  720.                 |  256 Paint - 256 Color VGA Image Workshop  |         16
  721.                 +--------------------------------------------+
  722.  
  723.  
  724. +---------------------------+
  725. |                           |
  726. | Paint Operations, cont'd. |
  727. |                           |
  728. +---------------------------+
  729.  
  730.  
  731. ANTI-ALIASING - The anti-aliasing process is tricky to use but allows the
  732. computer to make "best-fit" approximations to midway colors based on
  733. mathematical reasoning.  This routine will sweep through a specified
  734. rectangular region and find all instances of the current color.  When it
  735. does, it sees if the pixels on either side of the pixel are different than
  736. the current color.  If so, it will select a best-fit approximation to the
  737. color that has the averages of each of the RGB components.  This procedure
  738. is palette independent - that is, it will make a best-fit approximation no
  739. matter what palette you are using.  There are two methods to choose from.
  740. One method takes whichever color has the smallest sum of the differences
  741. in RGB values, the other takes the color with the least magnitude in range
  742. of the 3 values.  Experiment with either and decide which one you like
  743. best. Make sure that the pixels that you want converted to approximations
  744. are not in use elsewhere.  An example of Anti-Aliasing is shown below.
  745. Imageine that color 1 has RGB components of 20,20,20 respectively.  Suppose
  746. color 2 has components of 30,64,0.  The anti-aliasing routine would then
  747. use the decision method (whichever you chose) to try and match a color with
  748. RGB components of 25,44,10.  Look at the following setup:
  749.  
  750.                          Color3=0,0,0
  751.      Color1=20,20,20  |     AA Color    |  Color2=30,64,0
  752.                          Color4=64,0,64
  753.  
  754. If you chose Left-Right comparisons, this routine would find a fit for RGB
  755. of 25,44,10.  If you chose Up-Down comparisons, this routine would find a
  756. fit for 32,0,32.  Clear as mud, right?  See ALIAS.VGA.
  757.  
  758.  
  759. INTERPOLATION - Another one of the more advanced features, Interpolation is
  760. discussed and demonstrated in more detail in the "256Demo.Doc" file.
  761. Basically, interpolation provides a sweeping transition form one polygon to
  762. another, incrementing or decrementing colors as it goes.  Two separate
  763. polygons are entered in the same manner they are under the polygon option.
  764. The points are paired and a series of polygons are plotted in-between the
  765. two, with the colors incrementing for each.  The number of polygons in the
  766. series are selected by the user.  In addition, the user chooses whether
  767. they should be solid or hollow.  See INTERPOL.VGA.
  768.  
  769.                 +--------------------------------------------+
  770.                 |  256 Paint - 256 Color VGA Image Workshop  |         17
  771.                 +--------------------------------------------+
  772.  
  773.  
  774. +---------------------+
  775. |                     |
  776. |      Resizing       |
  777. |                     |
  778. +---------------------+
  779.  
  780.  
  781. This option will allow you to resize the current picture.  Move the mouse
  782. to select a frame size.  If the picture is smaller than the new size, your
  783. picture will be upper-left justified with the new frame.  You can either
  784. scale the old picture to the new size or crop the extra portion of the old
  785. picture.   Scaling will fit the picture into the frame using an
  786. approximation of the old picture.  The degree of continuity between the old
  787. and new picture is a function of how radical the change in size.  Resizing
  788. is not available while in zoom mode.
  789.  
  790.  
  791. +---------------------+
  792. |                     |
  793. |        Exit         |
  794. |                     |
  795. +---------------------+
  796.  
  797.  
  798. Just what you'd expect, this will exit the program.  If you have edited a
  799. file, you will be asked if you want to save the file.  If you need to get
  800. out really fast...there are two options.  [Alt][X] will immediately exit
  801. and return you to DOS.  [Alt][S] will save the file under the name
  802. "256DUMP.VGA" without any associated palette.
  803.  
  804.                 +--------------------------------------------+
  805.                 |  256 Paint - 256 Color VGA Image Workshop  |         18
  806.                 +--------------------------------------------+
  807.  
  808.  
  809. PALETTE EDITOR - The palette editor, an extremely useful feature not found
  810. in many commercial packages, allows the user to actually modify the 256
  811. color palette to contain the 256 colors they want out of a possible 262,144
  812. colors!  In addition to simply choosing RGB values, other options are
  813. available.  Below is a list of the three main operations to perform in the
  814. palette editor:
  815.  
  816.   1. RGB Modification - The easiest to grasp, simply click on the desired
  817. color you want to modify.  Then click on the box of the component (Red,
  818. Green or Blue) that you want to modify.  Then move the cursor up and down
  819. until the component is set where you want it.  You can then click the left
  820. button to accept the change, or the right to restore the component to its
  821. original value.
  822.  
  823.   2. Quick Set - In the color spectrum area (where all 256 colors are
  824. shown),  you choose a color by clicking the left button.  The cuurently
  825. chosen color is always outlined by a box.  If you click on a color with the
  826. right button, and that color is not the outlined color, the outlined color
  827. will be quickly set to have the RGB components of the color you clicked on.
  828. This feature gives you the quick means to move colors around or blank them
  829. out.
  830.  
  831.   3. Trending - For lack of a better term, trending allows you to choose
  832. two colors and have all of the colors in between them become gradual
  833. transitions from the first color to the last.  You perform a trend by
  834. choosing the first color you want and then clicking over "Start Trend."
  835. Next, choose the last color in the trend and click over "End Trend."  Now
  836. you are ready to click on the "Do Trend" button and watch 256 go to work.
  837. Naturally, the farther apart in the palette x and y are, the more slight
  838. the increments.
  839.  
  840.  
  841.      More difficult to understand but much more powerful, is the
  842.      Trend Operation.  In a nutshell, the trend operation will allow
  843.      you to select color x and y, then make every color between x and
  844.      y a gradual blend in between.  Naturally, the farther apart in
  845.      the palette x and y are, the more slight the increments.  As an
  846.      example, let's say you want a black to white trend of 32 colors
  847.      starting at color 16.  Select color 16 and change all of it's
  848.      RGB components to zero.  Then push the button titled "Start
  849.      Trend."  Next, go to color 47 and set all of it's RGB components
  850.      to 63.  Now push the "End Trend" button.  Now all you have to do
  851.      is push the "Do Trend" button and watch it go!  Toy with this
  852.      feature and you will get used to it's usefulness.
  853.  
  854. After finishing with the modify palette screen, hit "Quit" to return to the
  855. program where you left off.  You must first tell the program whether or not
  856. to keep any palette changes made.  Selecting a no will return you with the
  857. same palette as when you entered modify palette.  Choosing a yes will make
  858. the changes active!  Important: Changes made in the palette are not saved
  859. unless you either (1) choose the palette menu and save the palette in a
  860. (.PAL) file or (2) save the palette with the current image!
  861.  
  862.                 +--------------------------------------------+
  863.                 |  256 Paint - 256 Color VGA Image Workshop  |         19
  864.                 +--------------------------------------------+
  865.  
  866.  
  867. 256 PLUS, WHAT IS IT? - Here is a list of some of the features that are
  868. available in the 256 PLUS program.  This is not a complete list, nor is it
  869. a final list.  It is, however, a list of some of the items included in the
  870. current version.  If you have any suggestions or other needs, write to the
  871. author at the address shown on the cover page.  He will almost certainly
  872. graciously respond if you have registered the product.  Users of version
  873. 1.2 and beyond will note some redundancies due to migration from 256 Plus
  874. to 256 Paint.  The older routines were not removed in deference to those
  875. who have 256 Draw instead of 256 Paint.
  876.  
  877.     - Palette conversion and "best-fit" matching.  This will allow
  878.       the user to match an image to a specific palette. Extremely useful
  879.       for those of you who wish to use several images with different
  880.       palettes simultaneously.  If Image A has its own palette, and Image B
  881.       has its own distinct palette, the two cannot be shown at the same
  882.       time unless they are fit into one palette!
  883.     - Hard-Code conversion.  This will allow the user to save a .VGA
  884.       file in a source-code, structured data file.  Turbo Pascal and C
  885.       are included. All you have to do is include the resulting code in
  886.       the source and it will now be a part of the .EXE file you create.
  887.       No need to search the disk for a file at run-time!
  888.     - 256 Color ==> 64 Greyscale conversions.  Convert your image to a
  889.       64, 32, 16, 8, 4 or 2 color greyscale image.
  890.     - More advanced code examples.  Examples like those found on the
  891.       256 Paint program disk, only more advanced, more thorough.
  892.     - 16 to 256 color, and Vice-versa, for those who want to use EGA image
  893.       support also.
  894.  
  895.                 +--------------------------------------------+
  896.                 |  256 Paint - 256 Color VGA Image Workshop  |         20
  897.                 +--------------------------------------------+
  898.  
  899. PB256 TURBO PASCAL UNIT, WHAT IS IT? -  The PB256 Units are Turbo Pascal
  900. units that will enable TP programmers to make use of many ordinary and
  901. advanced graphics routines WITHOUT the need to load .BGI device drivers.
  902. Let's face it, those device drivers can be difficult to use at times and
  903. provide some unnecessary overhead.  You do not receive source code, you
  904. do receive the compiled units in TP 4.0, 5.5 and 6.0 as well as a manual
  905. describing how to use them.  The following is a preliminary list of
  906. procedures guaranteed to be included.  To order the PB256 Units, check
  907. the appropriate box in the Register.Doc file and include the correct
  908. amount.
  909.   
  910. Procedure Name:         Purpose:
  911. --------------          -------
  912. SetupVGAMode            Go into VGA mode.
  913. ReturnToTextMode        Go back into Text mode.
  914. Pixel                   Puts a pixel.
  915. Line                    Draws a line.
  916. Rectangle               Draws a rectangle.
  917. Circle                  Draws a circle.
  918. Ellipse                 Draws an ellipse.
  919. LoadImage256            Loads a 256 color image.
  920. PutImage256             Displays a 256 color image.
  921. GetImage256             Gets an image from the screen.
  922. OverlayImage256         Displays a 256 color image, allowing you to see-
  923.                         through where color 0 is.  This is similar to the
  924.                         Overlay routine in 256 Paint.
  925. ScaleImage256           Displays an image at a different size.  This is
  926.                         similar to the Resizing routine in 256 Paint.
  927. InvertImage256          Flip an image horizontally or vertically.
  928. LoadPalette256          Load a 256 color (.Pal) file from disk.
  929. SetPalette256           Sets a 256 color palette.
  930. HidePalette             Hides the Palettes so screen updates can be performed
  931.                         invisibly.
  932. SetRGBColor             Changes a colors RGB settings.
  933.  
  934. All of these routines, including many constant and variable declarations
  935. are available in the PB256 Units.
  936.  
  937.                 +--------------------------------------------+
  938.                 |  256 Paint - 256 Color VGA Image Workshop  |         21
  939.                 +--------------------------------------------+
  940.  
  941.  
  942. 256 PAINT VERSION HISTORY
  943.  
  944.     - Version 1.0 - Initial release of 256 Draw.  Images limited to 200x150
  945.                     in size.  October, 1991.
  946.     - Version 1.1 - Slightly faster, more comprehensive version.  Images up
  947.                     to 320x200 now creatable and usable.  Borland (TM)
  948.                     VGA256.BGI driver replaced with Jordan Hargrave's
  949.                     SVGA256.BGI driver. December, 1991.
  950.     - Version 1.2 - Name changed from 256 Draw to 256 Paint.
  951.                     New iconized menuing system.
  952.                     PCX image loading & saving included.
  953.                     Much better shape & rectangle choosing interface.
  954.                     April, 1992.
  955.     - Version 2.0 - Released June 1st, 1992.  Full-Screen 320x200 editing.
  956.                     Speed improved vastly.  Rotation & Text Added.
  957.                     Hidden menuing system employed.
  958.