home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_disks / 300-399 / ff355.lzh / ImageEditor / im24.doc < prev    next >
Text File  |  1990-06-12  |  16KB  |  280 lines

  1.                                 im24.doc
  2.                                 --------
  3.  
  4.                 official documentation to the graphic tool
  5.                 ------------------------------------------
  6.                             ImageEditor v2.4
  7.                             ----------------
  8.  
  9.                                 1.Function
  10.                                 ----------
  11.  
  12.     This program is thought for programmers interested in computer graphics.
  13.     It allows you to design pictures which you can use in your own programs.
  14.  
  15.     Just draw your picture, and when you are ready select the gadget disk
  16.     (or press the key d) and on the new window the gadget asm image (or the
  17.     key a) if you are programming in assembler or c image (or the key c) if
  18.     you favourite language is c and then type in your wished file name and
  19.     Return and your artwork will be saved as source code.
  20.  
  21.     This is the philosophy of this program: simple usage with as certain as
  22.     possible function. Another principle by writing of this program was
  23.     small usage of memory.
  24.  
  25.     To the usage: all functions can be activated by klicking on a gadget,
  26.     most of them also by a keystroke (exceptions: info-function, closing
  27.     of some windows); the key to activate a gadget is displayed on this
  28.     gadget; most functions open further windows, which can be closed by
  29.     typing 'q' (you can also leave the program by typing 'q' and then 'o').
  30.  
  31.     To the function: I don't know any way to get a guru out of this program,
  32.     if any function can't get the memory it needs, you will see a alert
  33.     and can continue the program after clicking with the left mouse button,
  34.     the actual function will be aborted; another aspect is, that this pro-
  35.     gram doesn't use any illegal tricks (as direct access to the custom-
  36.     chip-registers).
  37.  
  38.     To the memory usage: the program uses about 132K of memory (76K chip)
  39.     as standard (when you started it), functions which need more memory
  40.     (e.g. iff loading) allocate it dynamically; you have a special option:
  41.     the program can be iconified, then you can work with other programs and
  42.     im24 uses only about 60K (6K chip) of memory. Just activate the iconi-
  43.     fied window and push the right mouse button to 'uniconify' it.
  44.  
  45.                                 2.Information
  46.                                 -------------
  47.  
  48.     This program allows you to draw pictures up to 166*58 in hires-mode and
  49.     up to 83*58 in lores-mode. The difference between this two modes is, that
  50.     pixels in lores-(or normal-)mode are twice as width as in hires-mode.
  51.     The start-mode is hires. The mode and the picture width and height are
  52.     set in the pref(erence)s-part, the minimal width/height value is 1.
  53.     You draw always in the 16-color-mode, but the save- and load-functions
  54.     can also handle less than 16 colors (the number of colors is set in the
  55.     disk-part because it is only important for disk operations). If you know
  56.     an iff-file with the palette you want to use, you can also load only the
  57.     palette from this file, without changing your picture.
  58.  
  59.                         © 1990 by Robert Junghans
  60.                         written with Aztec-C v3.6a
  61.  
  62.     This program is shareware, so if you use it please send $5.00 to:
  63.     Robert Junghans, Agnes Straub Weg 10, 1000 Berlin 47, West Germany.
  64.  
  65.                 Improvement suggestions and any other form
  66.                 of constructive criticism welcome.
  67.  
  68.     This version consists of: the executable program im24, the source code
  69.     im24.c and the documentation file im24.doc. An example picture named
  70.     pic1.ilbm (width:128, height:58, depth:3) is also included.
  71.     The source code is about 80K (about 2700 lines, 43 functions), the exe-
  72.     cutable length is about 35K. Every function in im24.c is described
  73.     short. If you nevertheless will have questions, write me (address above).
  74.  
  75.     When you want to compile this program, you should have a precompiled
  76.     file which contains all amiga-dos-includes (those files in directories,
  77.     not e.g. functions.h).
  78.  
  79.     When you do not have such a file, make the following: write a file which
  80.     only contains #include-instructions and make sure to include all files
  81.     in the directories in your include-directory (example line: #include
  82.     <intuition/intuitionbase.h> (Return)). Then compile this file by typing
  83.     the following instructions in your cli:
  84.  
  85.                             cc all.c -a +hall.pre
  86.                             delete all.asm
  87.  
  88.     Now you will have this precompiled file named all.pre which our next
  89.     step will require. To compile the program, type this commands:
  90.  
  91.                             cc im24 -e360 +iall.pre
  92.                             ln im24 -lc
  93.                             delete im24.o
  94.  
  95.     .. and if your computer will not response with 'error: too many gotos in
  96.     program', you should have the executable in your actual directory.
  97.  
  98.     When you give this program away, please be sure to give all original
  99.     files away and not only some parts of this package.
  100.  
  101.                                 3.Description
  102.                                 -------------
  103.  
  104.     To start the program, type im24 and Return in an Cli-window. To quit it,
  105.     type 'q' or click on the close-gadget of the draw-window, then a re-
  106.     quester will apear and ask you if you are sure to quit the program. Then
  107.     click on the o.k.-gadget or type 'o' to quit or click on the cancel-
  108.     gadget to continue (typing of a letter different from 'o' will also
  109.     cause a 'cancel').
  110.  
  111.     In the draw-window you will see the bordered draw-area on the left side,
  112.     the color-gadgets right and the function-gadgets on the very right side.
  113.  
  114.     The two actual colors (for the left and the right mouse button) are
  115.     marked with two arrows left and right the color-gadgets. To change any
  116.     color, just click on the (bordered) color-gadget with the wished mouse
  117.     button (the according arrow will move to 'your' color).
  118.  
  119.     Now I come to the description of the 8 function-gadgets right: the first
  120.     4 gadgets are executed immediately, the last 4 are opening windows with
  121.     further gadgets. Here the first 4 gadgets and their meaning:
  122.  
  123.     keystroke/name  description
  124.     --------------  -----------
  125.     i / icon        If you don't want to use ImageEditor now but you will
  126.                     start programs requiring memory you must not quit
  127.                     ImageEditor. Just click on that gadget and the screen
  128.                     will be closed and ImageEditor will open a window on the
  129.                     Workbench screen. This window has a close-gadget, the
  130.                     depth gadgets and a drag bar. You can quit the program
  131.                     now on the same way as from the draw-window, furthermore
  132.                     you can get back the full ImageEditor-screen with your
  133.                     old picture by clicking with the right (menu-) mouse
  134.                     button (be sure that the window is active).
  135.                     Remark: you will lose the undo-picture.
  136.       / info        A info-window with some informations to the program will
  137.                     be opened. To leave this window push the o.k.-gadget.
  138.     f / flood       After activating of this gadget it will be inverted to
  139.                     show you that this function is active. To disactivate it
  140.                     press the key 'f' or the flood-gadget once again.
  141.                     To flood a cohering area click over this area with the
  142.                     wished mouse button (to select a color to fill).
  143.     u / undo        When you click on this gadget your last function will be
  144.                     'taken back'. Examples for functions: drawing, flooding,
  145.                     clearing of the whole area. If you changed the size of
  146.                     your picture (in pref(erence)s) and lost so your picture,
  147.                     you have to set up your old picture size and then activa-
  148.                     te the undo-function and you will get your old picture
  149.                     back.
  150.  
  151.     The next gadget is the disk-gadget (keystroke: 'd'). Here the functions:
  152.  
  153.     keystroke/name  description
  154.     --------------  -----------
  155.     1 / plane       (see below)
  156.     2 / planes      (see below)
  157.     3 / planes      (see below)
  158.     4 / planes      By clicking on these gadgets you choose the number of
  159.                     bitmaps to be loaded and saved by disk operations.
  160.     p / ilbm pal    If you know an iff-(ilbm-)file with the palette you want
  161.                     to use, you can load only the palette from this file
  162.                     without changing your picture (except of the colors).
  163.                     After activating this gadget another window will be
  164.                     opened and ask you for a file name (the extension '.ilbm'
  165.                     will be added). Type in your wished filename and hit
  166.                     Return or the o.k.-gadget to load the palette or cancel
  167.                     to abort the function (this is one of the windows you
  168.                     can't decide to cancel with only a keystroke, because the
  169.                     string-gadget is activated when the window is opened).
  170.     l / ilbm        Loading of an ilbm-file. You will see the same name-gad-
  171.                     get as in 'ilbm pal' and have the same ways to load or
  172.                     abort. You can load only files which have the same size
  173.                     and depth as actually set; if you should forget it, the
  174.                     program will remember you of this fact (it's surely not
  175.                     the best way (e.g. when you want to transform pictures),
  176.                     write me if you want to have this load/save-functions
  177.                     extended). Extension '.ilbm' will be added.
  178.     s / ilbm        First of all the same file-name-window. Same extension
  179.                     ('.ilbm') will be added. This function will save your
  180.                     actual picture to the file you wish.
  181.     a / image asm   You will be asked for the name of the source file. The
  182.                     extension '.asm' will be added. This function will save
  183.                     the computed words as simple dc.w(s) and an Image-struc-
  184.                     ture additional to the word-field. The computing and
  185.                     saving routines could be surely made faster what I plan
  186.                     for the next update (the same to the save-c-routines).
  187.     c / image c     This function is like the 'image asm'-function with the
  188.                     only difference that c-source-code is generated. The
  189.                     datas are seved as USHORTs with an Image-structure
  190.                     following. The extension '.c' is added.
  191.       / sprite asm  This and the following gadget will only appear if your
  192.                     width is 16 and your planes-value 2. This function will
  193.                     ask you for a name (what else?) and then save the datas
  194.                     in the sprite-format and a SimpleSprite-structure follo-
  195.                     wing. Extension added: '.asm'.
  196.       / sprite c    Saving of a data-field (as UWORDs) and a (naturally
  197.                     full initialized) SimpleSprite-structure in an file with
  198.                     the wished name with the automatically added extension
  199.                     '.c'.
  200.  
  201.     To quit this or any other of the last-4-gadget-windows you can either
  202.     click on the close-gadget of the corresponding window or hit the key 'q'.
  203.  
  204.     The next gadget is the colors-gadget (keystroke: 'c'). On the right side
  205.     you can see 3 proportional-gadgets which display the red, green and the
  206.     blue part of the current color. The current color is the 'left' color,
  207.     i.e. the color with the arrow left. Right from these proportional gadgets
  208.     are shown the values of the prop-gadget (hexadezimal: '0' to 'f').
  209.     With these 3 prop-gadgets you can change the actual color.
  210.  
  211.     This function has also two special keystrokes: 'n' and 'b', what means
  212.     (n)ext and (b)ack. When you type one of these keys, the actual color will
  213.     increase or decrease by 1.
  214.  
  215.     On the left side of the window you will find also these 3 gadgets:
  216.  
  217.     keystroke/name  description
  218.     --------------  -----------
  219.       / o.k.        Leaving of the colors-part with the colors you just set.
  220.                     Use this gadget after designing a new color palette.
  221.       / cancel      Leaving the colors-part with the colors which were set
  222.                     before you came to the colors-part (when you enter the
  223.                     color-function, your actual palette is saved).
  224.       / reset       Leaving of this function with the same palette as if you
  225.                     will just have started the program (the default palette).
  226.  
  227.     When you click on the close-gadget of the colors-window or type 'q' this
  228.     will be the same as if you have leaved the colors-function with 'cancel'.
  229.  
  230.     The gadget below the colors-gadget is named prefs and have the key 'p'.
  231.     In the now opened window you can see the actual mode (hires or normal),
  232.     picture width and picture height. While changing the mode you will see
  233.     that the picture width will also be changed.
  234.  
  235.     When you click on the o.k.-gadget your old picture will be deleted (not
  236.     the undo-picture) and a new border around the draw-area will be drawed.
  237.  
  238.     Clicking on the cancel-gadget or the close-gadget of the window or typing
  239.     'q' will close the pref(erence)s-window without changing anything.
  240.  
  241.     The last gadget is named 'extras' and contains everything I couldn't put
  242.     in one of the other 3 window-functions. The keystroke is naturally 'e'.
  243.     Extras offers you the following functions:
  244.  
  245.     keystroke/name  description
  246.     --------------  -----------
  247.     s / show        This function will open a small window with the picture
  248.                     in the original size. You don't have to close this window
  249.                     to continue, all functions will work also when this
  250.                     function is 'active'.
  251.                     When only the draw-window and the show-window are open
  252.                     (and no of the 4-last-gadget-windows) and you type 'q',
  253.                     then you won't get the request if you want to quit the
  254.                     program, but this show-window will be closed (you can
  255.                     close this window also by clicking on this close-gadget
  256.                     (but not when another function (even extras) is active)).
  257.     c / clear       This function will fill the whole draw-area with the
  258.                     (left-)active color. When you clear by mistake, remember
  259.                     the undo-function.
  260.     h / flip h      When you activate this function your picture will be
  261.                     flipped horizonthal (old left side is new right side).
  262.     v / flip v      This function is very similar to 'flip h' with the
  263.                     difference that it is flipping vertical (your picture
  264.                     will be upside down after usage of this function).
  265.     u / up1         (see below)
  266.       / up2         (see below)
  267.       / up3         (see below)
  268.     d / down1       (see below)
  269.       / down2       (see below)
  270.       / down3       (see below)
  271.     r / right1      (see below)
  272.       / right2      (see below)
  273.       / right3      (see below)
  274.     l / left1       (see below)
  275.       / left2       (see below)
  276.       / left3       These functions will move your picture 1, 2 or 3 pixels
  277.                     up, down, to the right or to the left.
  278.  
  279.                         End of the documentation.
  280.