home *** CD-ROM | disk | FTP | other *** search
/ Enigma Amiga Life 107 / EnigmaAmiga107CD.iso / PPaint / Tutorial.txt < prev    next >
Text File  |  1999-11-09  |  62KB  |  1,185 lines

  1.  
  2.  Personal Paint Tutorial
  3.  
  4.  
  5.  Exploring Personal Paint
  6.  
  7.  It is very easy to explore Personal Paint by choosing from the variety of
  8.  menus and gadgets. Once you start working with the program, remember to
  9.  frequently save your work during each session, and make periodical backup
  10.  copies of the entire disks. This will protect your work from mistakes,
  11.  power failures, software errors and disk read/write problems.
  12.  
  13.  The gadgets on the tool bar which is displayed on the left of the screen
  14.  may respond differently depending on the pointer's position over the
  15.  gadget (upper or lower half), the mouse button which is used (left or
  16.  right), and the number of mouse clicks (for cycle gadgets). For example,
  17.  the tool to the right of the "a" text editing symbol activates the image
  18.  processing functions. If it is selected with the right mouse button, a
  19.  requester appears to select different image processing options. The area
  20.  on which image processing is to be applied can be delimited by dragging
  21.  the mouse (i.e. moving it while the left button is held down).
  22.  
  23.  Personal Paint is not "dangerous to use: most program requesters can be
  24.  displayed to see what they do, and terminated by selecting the Cancel
  25.  gadget; painting and image processing operations can be undone; warning
  26.  messages are displayed whenever there is a risk of overwriting or losing
  27.  some data.
  28.  
  29.  The tools which appear on the bar on the left of the screen can be
  30.  selected either with the left or the right mouse button, in their upper
  31.  or lower half. The right mouse button usually activates an options
  32.  requester associated with the tool. The upper and lower halves of the
  33.  tool may be selected to specify the unfilled or filled mode. You should
  34.  try out all tools in all possible combinations (left/right mouse button
  35.  and upper/lower half).
  36.  
  37.  Clicking with the right mouse button on the little number which appears
  38.  among the predefined brushes pops up a little menu with numbers from one
  39.  to nine. This means that up to nine different brushes can be used. The
  40.  current number indicates which custom brush you want to use.
  41.  
  42.  Most painting and image processing functions make use of the current
  43.  foreground and background color. These can be selected from the palette
  44.  which is displayed on the screen with the left and right mouse button,
  45.  respectively.
  46.  
  47.  Again, left and right mouse buttons have different effects when painting.
  48.  The right mouse button usually clears the selected (or underlying) area
  49.  using the background color.
  50.  
  51.  If quality is preferred over speed, the Floyd-Steinberg Color Remapping
  52.  and Color Average Resize should be activated and saved with the default
  53.  settings ("Settings" menu). If available RAM is very limited, you should
  54.  close the Workbench screen, and use only one environment and a single
  55.  brush. Screen modes with higher resolution and more colors require
  56.  proportionally more memory. If you don't know whether you have a lot of
  57.  usable RAM, or just very little, check with the Memory Information
  58.  command.
  59.  
  60.  Before painting on a blank screen, you may want to choose an appropriate
  61.  screen mode, page size and color palette ("Project/Image Format" menu).
  62.  On Original and Enhanced Chip Set Amigas, low resolution screens (320 by
  63.  200) in 32 or 64 colors are normally preferred for paintings with plenty
  64.  of colors. Higher resolutions limit the maximum number of colors, and are
  65.  therefore used with palettes of up to 16 different colors. Advanced
  66.  Graphics Architecture Amigas can work in up to 256 colors in most video
  67.  modes. When you select a new screen mode, don't forget to set the page
  68.  size (usually the same as the screen size) and the maximum number of
  69.  colors. Setting the highest possible values is not necessarily the best
  70.  choice, especially if there is not much RAM to work with. Objects smaller
  71.  than the smallest possible screen can be saved as anim-brushes.
  72.  
  73.  Personal Paint offers many original features which you might not expect
  74.  to find in similar programs. You can start impressing image processing
  75.  operations with a click on a tool, use the GIF file standard to read
  76.  thousands of 256-color images which are available, grab screens from
  77.  other Amiga programs, output to PostScript devices adding interesting
  78.  effects, merge different images into one (and creating one common color
  79.  palette), reduce the number of colors used by an image and much, much
  80.  more.
  81.  
  82.  If you want to see some examples of what you can do by combining
  83.  different operations, just go on and read the following sections.
  84.  
  85.  
  86.  Gradient Fill
  87.  
  88.  This example will show you what you can do with Personal Paint's special
  89.  fill and line modes.
  90.  
  91.  Choose a high resolution screen format with 16 colors (Project/Image
  92.  Format menu). A standard PAL or NTSC high resolution mode will do. If you
  93.  are not annoyed by interlace mode, select an interlaced screen.
  94.  
  95.  Display the color palette requester (Color/Edit Palette menu). The
  96.  requester also appears if you press <p>. Click on the first color in the
  97.  row of colors displayed at the top of the requester. Make that color
  98.  white by setting the R, G and B sliders appropriately (all sliders to the
  99.  right). If white looks too bright on your monitor, move the Brightness
  100.  knob to 80% to obtain a light gray. Then go to the second color and make
  101.  it black (the three sliders should be moved to the extreme left). Now
  102.  pick the next color (color position 02) and make it dark green (set H, S
  103.  and B respectively to 137, 100 and 46). Jump to position 08 and set that
  104.  color to light green (HSB = 82, 61, 86). Set color 09 to dark red (HSB =
  105.  0, 100, 66) and color 15 to pink (HSB = 11, 33, 100).
  106.  
  107.  Now you need to create the intermediate shades of green and red. To do
  108.  so, click on dark green, select Create HSV Range (the gadget with a II
  109.  over the range symbol), and click on light green. Now there should be a
  110.  smooth transition of colors between dark green and light green. Repeat
  111.  the process with red: select dark red, click on the Create Range gadget
  112.  and then select pink. If everything goes well, you can select Proceed, to
  113.  confirm the changes. Otherwise, repeat the above steps.
  114.  
  115.  In the color palette below the tool bar, click on black with the left
  116.  mouse button, and on white (or gray) with the right button. This will set
  117.  the foreground and background colors. Clear the image, if it is not
  118.  already empty, by selecting the Clear tool.
  119.  
  120.  Select the smallest predefined brush (the first). You may also do this by
  121.  typing <.> on the keyboard. Select the Empty Rectangle tool by clicking
  122.  on the top half of the rectangle image with the left mouse button. Draw a
  123.  large box, almost as large as the screen, by clicking and dragging with
  124.  the left mouse button. If the box does not look like you would like it
  125.  to, select the Undo tool, or type <u>.
  126.  
  127.  Pick the largest of the round brushes. Make it even larger by typing <+>
  128.  half a dozen times (use the plus sign which appears on the alphanumerical
  129.  keyboard, not the one on the numeric keypad).
  130.  
  131.  Select the continuous freehand drawing mode by clicking on the top half
  132.  of the tool with the left mouse button. Move the pointer inside the box
  133.  which you have created, click on the left mouse button and move the mouse
  134.  to draw something like a snail, a worm, or an S-like shape. Release the
  135.  mouse button when you have finished. Again, select Undo if you would like
  136.  to try again.
  137.  
  138.  Now click on the fill tool using the right mouse button. The Area
  139.  Settings requester should appear. Select the Manual Gradient Mode by
  140.  clicking on the Gradient Mode symbol until the four boxes crossed by an
  141.  arrow appear. Click on the Gradient Type gadget until the Shape symbol is
  142.  selected (a circle containing four arrows should appear). If you see the
  143.  correct symbols, select Proceed. The Gradient Fill symbol should appear
  144.  on the title bar.
  145.  
  146.  Now select pink as the foreground color, and dark red as the background
  147.  color (by respectively selecting the colors in the palette with the left
  148.  and right mouse button). Move the mouse pointer over any point which is
  149.  inside the box, but not over the curved shape. The mouse pointer should
  150.  be displayed using the Fill symbol. Click on the left mouse button. This
  151.  will take a few seconds. The background of the box should be filled with
  152.  smooth shades of red. Now select light green (it should be just over red
  153.  in the palette) and dark green as the foreground and background color.
  154.  Fill the black shape inside the box as you have just done for the
  155.  background. You should now see something like a green snail lying on a
  156.  red cushion. If you wish, you can obtain different variations by
  157.  exchanging red and green, or light and dark colors.
  158.  
  159.  If you want to experiment more applying the same techniques, you can
  160.  select the Filled Freehand tool (use the left mouse button to click on
  161.  the lower half of the gadget) and draw a heart-like shape. The heart will
  162.  be softly shaded using the colors from the current foreground to the
  163.  background color.
  164.  
  165.  Did you expect that you could create similar effects with Personal Paint
  166.  and just a few mouse clicks? If you are looking for more surprises, just
  167.  go on reading.
  168.  
  169.  
  170.  Line Pattern
  171.  
  172.  For this short example you can use the same screen, image format and
  173.  colors of the previous example. You will see how you can draw lines
  174.  composed of color cycles from a sequence of palette colors.
  175.  
  176.  Select white (or gray) as the current background color (right mouse
  177.  button) and clear the image with the Clear tool.
  178.  
  179.  Click on the Filled Rectangle tool (lower half of the rectangle image)
  180.  using the right mouse button. This will display the Area Settings
  181.  requester. Click on the Gradient Type gadget until the Horizontal
  182.  Gradient symbol appears (a two-headed arrow completely contained in a
  183.  circle). While the requester is displayed, you can choose some colors in
  184.  the screen color palette. Select dark red as the foreground color (use
  185.  the left mouse button) and pink as the background color (right mouse
  186.  button). You will see how the Gradient box changes to show a smooth
  187.  transition of red. Select Proceed.
  188.  
  189.  Paint a long, horizontal filled rectangle by dragging the mouse on the
  190.  screen (left mouse button held down). It should automatically be filled
  191.  with the colors from dark red to pink. Now click once on the Define Brush
  192.  tool. Select a horizontal stripe inside the rectangle which contains all
  193.  gradations of red. Then click on the Line tool using the right mouse
  194.  button. The Line Settings requester will appear. Cycle the Line Type
  195.  gadget until Colored Pattern appears. Then click on the gadget
  196.  corresponding to the first brush (assuming that this is the brush you
  197.  have already defined). This will create a line pattern which uses the
  198.  colors that appear on the topmost line of the brush. Click on Proceed to
  199.  remove the requester. The Line Pattern symbol will appear on the title
  200.  bar.
  201.  
  202.  Now select the large, round, predefined brush, and start drawing some
  203.  lines or freehand curves of different lengths. You will notice that the
  204.  path is made up of all the colors in the range which was originally
  205.  enclosed by the brush. You may try several variations by redefining the
  206.  color palette with different color spreads. By selecting the shaded
  207.  brush, applying Brush/Rotate/Horizontal Flip and pasting the new brush to
  208.  the left or right of the original pattern, you can create "ping-pong"
  209.  color transitions (with colors softly changing back and forth).
  210.  
  211.  
  212.  Combining Text Editing, Image Processing and Stencils
  213.  
  214.  You could start this session using the same screen mode, page size and
  215.  color palette selected for the previous examples.
  216.  
  217.  Select light green as the current background color (right mouse button)
  218.  and clear the image with the Clear tool.
  219.  
  220.  Click on the Text tool with the right mouse button. This will display the
  221.  Font Selection requester. If you have many fonts, it will take the
  222.  operating system a few seconds to scan through all of them. Personal
  223.  Paint will then show you all the fonts which are available. Click on
  224.  "Topaz 9 oetf". This is a standard ROM-font which should be available on
  225.  all systems. (If you have a better font, use it.) In the Font Attributes
  226.  text gadget, change the 9 to 20, append an 's' after the other characters
  227.  and press <Return>. If you have version 2.0, or a higher version of the
  228.  operating system, you should now see an enlarged version of the Topaz
  229.  font. Click on Proceed.
  230.  
  231.  Select black as the foreground color, move the cursor to the center of
  232.  the screen and type a short sentence. Now use the right mouse button to
  233.  select the Image Processing tool. Double-click on Blur Low. The requester
  234.  should disappear.
  235.  
  236.  By dragging the mouse while the left mouse button is held down, select an
  237.  area of the screen which is sufficiently large to contain the text you
  238.  have just typed, with a margin of several dozen pixels. Line by line, you
  239.  should see the text being "blurred". This effect is useful if you want to
  240.  anti-alias a text typed with a font which has visible "steps", or to
  241.  smoothly merge a text with the background.
  242.  
  243.  Now let's try again, but blurring the pixels which make up the text
  244.  without affecting the background. Select Undo to cancel the effects of
  245.  applying image processing to the text. Select the Edit Stencil requester.
  246.  Put a checkmark on the light green box by clicking on it. Select Proceed.
  247.  The Stencil Mode symbol should appear on the title bar. Select Blur High
  248.  after clicking on the Image Processing tool with the right mouse button.
  249.  
  250.  Apply image processing again by redefining the area to be processed. The
  251.  background should remain intact, while blurring should change the outer
  252.  parts of the characters, making them look a bit like oxidized copper.
  253.  
  254.  Try another text color: select dark red and click on the Filled Rectangle
  255.  tool (left mouse button, lower half of the rectangle). Since the
  256.  background color is still "protected" by the stencil, you can change the
  257.  text by painting a rectangle over it. Try blurring again. Then disable
  258.  the stencil by typing <`> on the upper left of the keyboard: the stencil
  259.  symbol should disappear from the title bar.
  260.  
  261.  Now you can repeat all of the above combinations using different text and
  262.  background colors, changing some colors in the palette, applying
  263.  different effects (like Blur High, Randomize High, etc.), activating the
  264.  F-S Error Diffusion option in the Filter Selection requester, etc. You
  265.  can use the stencil to protect the text color instead of the background
  266.  color (in this way, you could quickly recolor the background without
  267.  modifying the text).
  268.  
  269.  
  270.  Color Reduction and Remapping
  271.  
  272.  This example will show you the differences between qualitative and
  273.  quantitative color reduction, and different types of color remapping. The
  274.  "Parrot.gif" and "Clown.gif" picture files are used in this section.
  275.  These files are part of a collection of pictures which is available for
  276.  use with Personal Paint. Check on the disks which come with the program.
  277.  If you don't have these files, you may use other pictures having the same
  278.  format, or contact your Amiga dealer. The single images are also
  279.  available from public domain sources.
  280.  
  281.  If your Amiga employs the Original or Enhanced Chip Set, you do not need
  282.  to set the screen size before loading the images used for these examples.
  283.  If you have an Advanced Graphics Architecture Amiga, or any other Display
  284.  Database-compatible device capable of displaying 256 colors, you must set
  285.  the screen and image format to 320 by 200 (LowRes HBrite, PAL or NTSC),
  286.  64 colors. If you are using a PAL screen, or any other screen having a
  287.  different size, remember to manually set the image size to the 320 by 200
  288.  image format. You should not set more than 64 colors, otherwise you won't
  289.  be able to appreciate Personal Paint's color reduction and remapping
  290.  applied to 256-color images.
  291.  
  292.  Make sure that Settings/Color Reduction is set to Qualitative and
  293.  Settings/Color Remapping is set to Simple.
  294.  
  295.  Select Project/Load Image and choose the file named "Parrot.gif". (On the
  296.  data disks which are designed for use with Personal Paint, picture files
  297.  are stored in the "Pictures" directory.) Double-click on the file name,
  298.  or select Proceed to load the image.
  299.  
  300.  A warning requester might appear, indicating that the selected image has
  301.  a format and number of colors different from the current environment
  302.  format. If you have been working with an AA (256-color) system, and have
  303.  manually set the screen format as explained before, select the lower
  304.  gadget to maintain the current format (the Stretch option should be
  305.  disabled). If you have an Original or Enhanced Chip Set Amiga, just click
  306.  on Proceed, leaving the default gadget selection unchanged. This will
  307.  activate the screen mode which most closely matches the format of the
  308.  selected image, i.e. Low Resolution HBrite.
  309.  
  310.  The progress requester keeps you informed about the current status of
  311.  loading and converting the image. The time it takes also depends on the
  312.  color remapping mode and the number of colors (if the screen can display
  313.  all image colors, there is no need to color-reduce and remap).
  314.  
  315.  The parrot image should appear on the screen. Select
  316.  Project/Environment/Copy to Other, followed by Project/Environment/Switch
  317.  (or press <j> on the keyboard). This will create a second environment,
  318.  identical to the first one. You will notice that you are in the second
  319.  environment from the "2:" which precedes the name of the picture on the
  320.  title bar.
  321.  
  322.  Now change the Settings/Color Reduction option and choose Quantitative.
  323.  To see the difference between the two modes, you can now load the same
  324.  image again, repeating the same selection on the warning requester. After
  325.  the usual progress indications, a second parrot will appear. Can you
  326.  notice the difference at first glance? Look at the tail, and press <j> to
  327.  switch from one environment to the other: the first parrot has a blue
  328.  tail, while the second parrot has a gray tail.
  329.  
  330.  Blue shades were used very little in that image, but were important to
  331.  render details like the tail. The qualitative color reduction method
  332.  respects these priorities. The quantitative method, on the other hand,
  333.  tends to preserve more shades of similar colors, as you can see if you
  334.  observe the branches of the trees.
  335.  
  336.  Now we'll do another experiment to understand the difference between
  337.  different methods of color remapping. Leave both images as they are.
  338.  Reset the Color Reduction to Qualitative. Start from any environment, and
  339.  load the "Clown.gif" picture. Reply to the program messages as you did
  340.  before.
  341.  
  342.  Now press <j> to go to the other environment. The parrot should still be
  343.  there. Select Floyd-Steinberg in the Settings/Color Remapping menu, and
  344.  load "Clown.gif". Now both environments contain the image of a clown.
  345.  Again, can you spot the difference? Look at the nose of the clown and
  346.  press <j> a few times. Floyd-Steinberg color remapping has created much
  347.  smoother color transitions, giving the illusion of a larger color palette
  348.  by carefully combining different colors.
  349.  
  350.  
  351.  Color Merge
  352.  
  353.  This example will require considerably more Chip RAM, and might not work
  354.  on 1 Mbyte systems. It will show you how to merge the color palettes of
  355.  different images into a common palette, so that different images can be
  356.  viewed, overlapped and freely mixed on the same screen.
  357.  
  358.  Four different images will be required. If you can spend more time on
  359.  this, select images which have different color palettes (both in the
  360.  number of color entries, and in the colors themselves), but were designed
  361.  for the same screen format. If all the source images have the same
  362.  format, you can create a simple poster without having to resize each
  363.  image in a different way. You should be able to create something like the
  364.  "PPaint.gif" sample file, where each image occupies a quarter of the
  365.  screen.
  366.  
  367.  If you have selected images with a particular format, then select the
  368.  same format for the screen and image (Project/Image Format menu). The
  369.  Color Merge process merges different palettes into a new palette which
  370.  has the same number of colors as the current environment. For this
  371.  reason, an image format with at least 16 colors should be set for higher
  372.  quality results.
  373.  
  374.  Now select brush number one. You can do this either by typing <1> on the
  375.  numerical keypad (not on the alphanumerical keyboard), or from the menu
  376.  which appears when you click with the right mouse button on the little
  377.  number among the predefined brushes, on the tool bar.
  378.  
  379.  Use Brush/Load to load the first of the four pictures. Then select the
  380.  following brush number and repeat the process until you have four images,
  381.  each associated to one brush. Don't be surprised if the brushes are not
  382.  displayed with their correct colors. This is caused by the fact that the
  383.  screen (i.e. the current environment) may probably use a different set of
  384.  colors from the brush. Also, don't worry if you are using Load Brush
  385.  instead of Load Image: you need to do this to be able to process
  386.  different images at the same time. If you wanted to merge only two
  387.  pictures, you could use Personal Paint's two image environments.
  388.  
  389.  Choose the Color/Merge menu item. In the requester, click on the items
  390.  which you want to merge. In this example, it should be sufficient to
  391.  click on the gadgets associated to the first four brushes. If the gadgets
  392.  are shadowed, you probably forgot to change the brush number before
  393.  loading a new brush. Select Proceed to see Color Merge in action.
  394.  
  395.  If you didn't select Current in the merge requester, you have to select
  396.  Color/Palette/From Brush to apply the brush palette to the current
  397.  environment. Now you can cycle through all of the brushes to resize them.
  398.  This time, as each brush is selected, it is also displayed properly on
  399.  the screen. If you notice that a brush is deformed, i.e. it is too tall,
  400.  or too wide, apply Halve Vertical or Halve Horizontal. Otherwise, if the
  401.  brush is simply too large, select Halve from the Brush/Resize menu.
  402.  
  403.  Now you have four brushes which are small enough to be manipulated and
  404.  combined on the screen. For most Amiga users with some graphics
  405.  experience who see four completely different pictures on the same screen,
  406.  it is a surprise to discover how few colors need be used. Paste the
  407.  brushes on the screen to create an image like "PPaint.gif", or
  408.  "ColorMerge.gif".
  409.  
  410.  You could apply some variations to the process described here. For
  411.  example, you could activate the Color Average Resize option in the
  412.  Settings menu. This would considerably slow down resizing operations, but
  413.  would also improve the quality of brush resizing. Alternatively, you
  414.  could set the Color Remapping option to Floyd-Steinberg. In that case,
  415.  however, you would have to first resize the images, and then execute the
  416.  color merge. Otherwise, resizing the brushes would alter the
  417.  Floyd-Steinberg patterns created by the color merge and remapping
  418.  process.
  419.  
  420.  If you want to save the image, use Project/Save Image. When choosing the
  421.  file format, keep in mind that GIF files generally occupy less space than
  422.  other formats, whereas IFF-ILBM is the standard which will allow you to
  423.  exchange data with most other Amiga software. If you like special effects
  424.  on your Workbench, you may want to use colored picture-icons.
  425.  
  426.  To conclude this example, click on <F9> to hide the tool bar with the
  427.  color palette. Then look at the screen: can you remember how many colors
  428.  you used?
  429.  
  430.  
  431.  File Formats
  432.  
  433.  Personal Paint and other Cloanto programs use external input/output
  434.  modules to read and save data in different file formats. I/O modules can
  435.  be added to extend the software without replacing the main program. The
  436.  modules are standard Amiga libraries, which can be stored either in LIBS:
  437.  or in the local directory (e.g. "PPaint:libs"). If libraries exist in
  438.  both places, the software determines which library is newer, and uses
  439.  it.
  440.  
  441.  Each library may support more than one file format. Some formats may be
  442.  available only as read formats or only as write formats. For example,
  443.  images can be written as C source code, but they cannot be read back from
  444.  that format (a C compiler would be able to process such a file). The
  445.  Plasma module instead, generates synthetic images, and is only an input
  446.  module.
  447.  
  448.  Some libraries have configuration options which can be set by the user
  449.  from the file requester, or through the ARexx programming interface. By
  450.  default, it is not necessary to change the file format options, which are
  451.  preset in a way which guarantees compatibility, efficiency and processing
  452.  speed. When a file is saved in the same format in which it was loaded,
  453.  the settings originally associated to the file format are preserved
  454.  (unless they are explicitly changed). For example, if an IFF-ILBM image
  455.  without screen mode information is loaded and edited, it is then saved
  456.  back without this information.
  457.  
  458.  ILBM, PNG, GIF and other file formats usually employ 24-bit color
  459.  palettes, but not all non-AGA Amiga screen modes have a 24-bit color
  460.  resolution. Personal Paint always encodes palette colors using 24-bits
  461.  ("true color") for higher quality, but colors may be rounded to the
  462.  closest Amiga color step (12 bits, i.e. 4 bits for each Red, Green and
  463.  Blue component, on original Amiga architectures) when they are copied
  464.  into the environment palette. In order not to lose color resolution when
  465.  loading an image and saving it again, you can set the read-only settings
  466.  REDBITS, GREENBITS and BLUEBITS to 8. This does not apply to brushes,
  467.  which can be loaded and saved without changes to the palette granularity
  468.  by Personal Paint, regardless of the current video mode color
  469.  resolution.
  470.  
  471.  It should be kept in mind that Personal Paint is a palette-based program
  472.  which can perform professional conversions from true color (24/48-bit)
  473.  data to palette images, but it cannot save back using true color formats
  474.  such as JPEG (or true-color-mode PNG, PCX, IFF or others), the only
  475.  exception being true color (8-bit) grayscale images which can be edited
  476.  as palette-based images (up to 256 levels of gray), and saved as true
  477.  color images in formats such as PNG.
  478.  
  479.  When loading a file, the "AUTO" file format option indicates that the
  480.  file format should be detected automatically. If more than one loader
  481.  exists for a specific file format (e.g. DataTypes, SuperView and/or a
  482.  specific Cloanto I/O module), it may be useful to manually select the
  483.  preferred loader. Otherwise, the first loader from the top of the list
  484.  which recognizes the format is used.
  485.  
  486.  The following sections list various file formats supported by the I/O
  487.  modules which can be used with Personal Paint. Options are explained only
  488.  once, even when they are common to several formats. The section "Personal
  489.  Paint for Authors" of this tutorial chapter explains some practical
  490.  applications of the various formats.
  491.  
  492.  
  493.  IFF ILBM 
  494.  
  495.  IFF ILBM (from "Interchange File Format - InterLeaved BitMap") is the
  496.  Amiga standard format. It is very fast, and compatible with most Amiga
  497.  applications, although it does not compress as well as PNG and GIF.
  498.  
  499.  This format supports stencils and transparencies. If a stencil (color
  500.  mask) is active, it is saved with the image. The ILBM format is also
  501.  capable of storing 24-bit data and Amiga HAM and HAM8 images, which
  502.  Personal Paint can load. Comments (Author, Copyright, Annotation) are
  503.  also supported.
  504.  
  505.  Options include Compression (activates or disables compression) and
  506.  Screen Format (specifies whether to save screen format information with
  507.  the image).
  508.  
  509.  
  510.  PNG 
  511.  
  512.  The PNG (Portable Network Graphics) format is the newest and the most
  513.  advanced of all the formats supported by Personal Paint. Personal Paint
  514.  was the first paint program worldwide to support PNG. PNG offers the best
  515.  compression of all file formats, and manages both palette-based and true
  516.  color (up to 48-bit) images. PNG can store transparency information, as
  517.  well as comments.
  518.  
  519.  The Automatic option determines whether the library should check the
  520.  palette and determine if it is a grayscale palette, and only in that case
  521.  automatically save the image in a special grayscale type of PNG, which is
  522.  more efficient. An image is considered grayscale if the palette contains
  523.  2, 4, 16 or 256 entries being a perfect set of black-to-white shades.
  524.  
  525.  The Progressive Display option means that the image is stored in a way as
  526.  to support progressive display during load. This increases the file size,
  527.  but allows for some types of mostly online (Internet) viewers to allow
  528.  for a preview which is raw at the beginning, and progressively more and
  529.  more detailed.
  530.  
  531.  The compression level can be set from minimum (one) to maximum (nine).
  532.  The maximum compression level takes longer to compress, but it does not
  533.  affect decompression.
  534.  
  535.  
  536.  GIF 
  537.  
  538.  GIF (Graphics Interchange Format, officially pronounced "jif") is a very
  539.  well-established graphics format, especially on the Internet. Its
  540.  popularity is only menaced by patent issues which make it necessary to
  541.  pay a royalty to Unisys Corporation for each piece of GIF software sold.
  542.  For this reason, the GIF input/output library is not included with all
  543.  versions of Personal Paint, especially those manufactured by third
  544.  parties under license from Cloanto.
  545.  
  546.  GIF compresses much better than ILBM, and almost as well as PNG. It
  547.  cannot store true color data.
  548.  
  549.  The GIF library includes an option to select between the GIF87a and the
  550.  GIF89a specification. GIF89a supports comments, transparency information,
  551.  and animation. The Frame load option allows the user (or Rexx client) to
  552.  specify a specific animation frame to be loaded.
  553.  
  554.  
  555.  BMP 
  556.  
  557.  The library included with Personal Paint supports both the Windows and
  558.  the OS/2 version of the BMP (BitMaP) format.
  559.  
  560.  This format supports palette-based and 24-bit true color images. The
  561.  Windows variant supports two types of compression (RLE4 and RLE8, used
  562.  for images having more than 16 colors), but not all BMP loaders support
  563.  compression.
  564.  
  565.  
  566.  PCX 
  567.  
  568.  PCX (ZSoft Paintbrush File Format) is the format originally preferred by
  569.  simple MS-DOS paint and scanner programs. This format supports
  570.  palette-based and 24-bit data.
  571.  
  572.  Internally, different PCX subformats are used in order to achieve best
  573.  compatibility with existing PC systems. Two-color images are saved as CGA
  574.  monochrome files. In this format, a few image loaders may assume color 0
  575.  to be black, and color 1 to be white. In such a case, the two colors
  576.  should be exchanged in Personal Paint's palette before remapping and
  577.  saving the picture. Images with 4 or 16 colors are stored as EGA/VGA
  578.  16-color files (adding extra empty planes if necessary). Images with more
  579.  colors are stored as 256-color VGA files.
  580.  
  581.  The Compatibility option, required to exchange data with some programs,
  582.  forces the library to only use a rigid set of PC palette sizes, and add
  583.  unused colors if the image has an intermediate number of color entries.
  584.  
  585.  
  586.  IFF ACBM 
  587.  
  588.  ACBM is an acronym of "Amiga Contiguous BitMap format". This is an old
  589.  IFF format similar to ILBM, only that it is not compressed.
  590.  
  591.  
  592.  Encrypted 
  593.  
  594.  The Encrypted format is useful to protect "private" pictures. Encrypted
  595.  images are modified using a key. If the picture is not loaded using the
  596.  same encryption key, it will be unreadable. The file name is not
  597.  encrypted.
  598.  
  599.  The encrypted format should not be used, imported or exported where doing
  600.  so would be illegal.
  601.  
  602.  
  603.  PBM 
  604.  
  605.  The PBM (Portable BitMap, for black and white images) format and the
  606.  closely-related PGM (Portable GrayMap, for grayscales) and PPM (Portable
  607.  PixMap, 24-bit images) are part of a popular (especially some time ago),
  608.  mainly freely disributable, set of conversion and image processing tools.
  609.  Personal Paint's PBM library supports all three formats, each of them
  610.  both in the binary and in the ASCII variant (Binary option). Data stored
  611.  in these formats is not compressed.
  612.  
  613.  If the Automatic option is disabled, images are always stored in the PPM
  614.  (24-bit) format. Otherwise, the software automatically detects the best
  615.  format, based on the image format.
  616.  
  617.  
  618.  Raw 
  619.  
  620.  This format was designed for Amiga game developers and other programmers
  621.  asking for a quick and informal way to incorporate bitmaps into their
  622.  code.
  623.  
  624.  The Colors option can be set to 0 to save only the image data, to 1 to
  625.  save the palette data followed by the image data, or to 2 to save the
  626.  image data followd by the palette data. The image data is written
  627.  bitplane after bitplane (each data-row is WORD-padded). The palette data
  628.  consists of three bytes (RGB) for each palette entry.
  629.  
  630.  
  631.  TIM 
  632.  
  633.  This is the graphics file format of choice on the PlayStation system
  634.  because it closely matches the display hardware architecture, and
  635.  therefore is very efficient. The following TIM modes are supported by
  636.  Personal Paint: 4-bit CLUT, 8-bit CLUT, 16-bit direct and 24-bit direct.
  637.  
  638.  TIM files can be found on PlayStation CD-ROMs, which apart from the copy
  639.  protection information can be read by Amigas with a CD-ROM drive and an
  640.  ISO 9660 filing system. This means that TIM graphics on PlayStation CDs
  641.  can be loaded directly into Personal Paint.
  642.  
  643.  Of course, Personal Paint can also save different variants of TIM files,
  644.  which is very important for PlayStation games developers. The following
  645.  (more technical) notes are dedicated to PlayStation artists and
  646.  developers.
  647.  
  648.  When saving, the width of 4-bit images is rounded up to the next multiple
  649.  of 4, and the width of 8-bit images is rounded up to the next even
  650.  number.
  651.  
  652.  Unlike "Save Brush", which stores transparency information as set by the
  653.  transparency settings, "Save Image" does not save any transparency
  654.  information. This means that images stored with this command will be
  655.  "opaque", unless the TRANSPBLACK option is set.
  656.  
  657.  The TIM format currently supports 16/256-color images ("CLUT" mode) and
  658.  true color images (16/24-bit "direct" mode). In either format except for
  659.  24-bit (which stays 8-8-8), the color resolution is limited to 5 bits per
  660.  color component (5-5-5, i.e. 15-bit palettes, allowing for 32768 colors
  661.  or 32 levels of gray). To accurately create images in this color
  662.  environment it is recommended to set the REDBITS, GREENBITS and BLUEBITS
  663.  program settings to 5.
  664.  
  665.  Several options determine how images are written by Personal Paint.
  666.  
  667.  FORMAT: 0 = 2..16-color images are saved as 4-bit files and 32..256-color
  668.  images are saved as 8-bit files, 1 = Images are saved as 16-bit "direct"
  669.  files, 2 = Images are saved as 24-bit "direct" files.
  670.  
  671.  IMAGEX: Image X coordinate in VRAM
  672.  
  673.  IMAGEY: Image Y coordinate in VRAM
  674.  
  675.  PALETTEX: Palette X coordinate in VRAM (only for CLUT files)
  676.  
  677.  PALETTEY: Palette Y coordinate in VRAM (only for CLUT files)
  678.  
  679.  TRANSLUCENT: 0 = All colors (except black and the transparent color, if
  680.  any) are marked as translucent, 1 = All colors are considered solid
  681.  colors (only for CLUT files).
  682.  
  683.  TRANSPBLACK: 0 = Black is encoded as transparent, 1 = The brush
  684.  transparent color is encoded as transparent (only for CLUT files).
  685.  
  686.  
  687.  C Source Code (Save Only) 
  688.  
  689.  The C source code format is suitable for embedding image data into Amiga
  690.  C graphics programming environments.
  691.  
  692.  C source code files also contain a filled-in Amiga DrawImage()-compatible
  693.  Image structure and arrays with color palette data in formats suitable
  694.  for both LoadRGB4() and LoadRGB32(). Unused bitplanes are not output as
  695.  data, but marked in the appropriate PlanePick and PlaneOnOff fields. The
  696.  image array data type is defined as "UWORD chip". The "chip" keyword is
  697.  used by some compilers to make sure that the data is loaded in Amiga Chip
  698.  RAM at run time. It may be necessary to remove it, or modify it into a
  699.  different name (e.g. "__chip").
  700.  
  701.  
  702.  ASCII (Save Only) 
  703.  
  704.  This is a simple "text art" format.
  705.  
  706.  The Width and Height parameters, in the range 0..32767 indicate the
  707.  number of characters per row and column, respectively. If one of the two
  708.  values is 0, then it is adjusted to a size in proportion to the other
  709.  value, in consideration of the image aspect. If both are set to 0, then
  710.  the width is adjusted to 80.
  711.  
  712.  The Gray Shades string contains a variable number of characters used to
  713.  render the different levels of gray, from black to white (e.g.
  714.  "#@08Oo+=-:. "). The more characters there are in the string, the more
  715.  shades will be used to render the image.
  716.  
  717.  
  718.  JPEG Format (Load Only) 
  719.  
  720.  The JPEG (Joint Photographic Experts Group) is a sophisticated,
  721.  highly-compressible (and lossy, meaning that the original image is not
  722.  preserved) format to render true color images. It cannot store
  723.  palette-based images, and it is not suitable to render sharp contrasts.
  724.  It is ideal for "real life" images.
  725.  
  726.  The Quality load option activates a fast and not very accurate algorithm
  727.  (DCT/IDCT) if set to 0, or a higher-quality (but slower) "fancy
  728.  upsampling" procedure if set to 1. If the Gray Shades option is enabled,
  729.  the image is converted to a grayscale picture during the load. The Format
  730.  setting determines whether the image is to be loaded in its original
  731.  format (Format = 0), or reduced to 1/2, 1/4 or 1/8 (Format values of 1, 2
  732.  and 3, respectively) of its original width and height.
  733.  
  734.  
  735.  Photo CD (Load Only) 
  736.  
  737.  This is a Photo CD implementation licensed from Kodak. Personal Paint can
  738.  load 24-bit images, as well as rotated images.
  739.  
  740.  Please note that on a standard Photo CD CD-ROM, pictures are usually
  741.  stored in a directory named "Photo_cd/Images". The files have names like
  742.  "Img0001.pcd", "Img0002.pcd", etc.
  743.  
  744.  Format values in the range 1..5 respectively select the following image
  745.  formats:
  746.  
  747.     1:  192 × 128  (BASE16)
  748.     2:  384 × 256  (BASE4)
  749.     3:  768 × 512  (BASE)
  750.     4: 1536 × 1024 (4BASE)
  751.     5: 3072 × 2048 (16BASE)
  752.  
  753.  Setting Gray Shades to 1 forces a grayscale conversion.
  754.  
  755.  The Photo CD implementation includes two loaders. In addition to the
  756.  normal image loader, a "Photo CD Overview" loader (short: "PCD-OV") is
  757.  used to load the thumbnail images showing miniatures of the photographs.
  758.  On standard Photo CDs, these are stored in the "Photo_cd/Overview.pcd"
  759.  file.
  760.  
  761.  A Format value of 1 or 2 respectively selects the 96 × 96 (1) or the
  762.  192 × 192 (2) thumbnail format. The Columns value (range: 1..32767) sets
  763.  the numer of images per row.
  764.  
  765.  
  766.  DataTypes (Load Only) 
  767.  
  768.  This I/O module acts as an interface to load any type of pictures
  769.  supported by the Amiga DataTypes. Both palette-based and true color
  770.  images are supported (picture.datatype version 43).
  771.  
  772.  
  773.  Plasma (Load Only) 
  774.  
  775.  Plasma is not strictly a loader, but rather a generator of fractal
  776.  images. This library uses a variety of parameters.
  777.  
  778.  Width: width of the image to be created; if 0, the current image (or
  779.  brush) format (width and height) is used.
  780.  
  781.  Height: height of the image to be created; if 0, the image or brush
  782.  format is used.
  783.  
  784.  Colors: number of colors of the image to be created (4..256 colors, i.e.
  785.  depth 2..8); if both Width and Height are set to 0, then the image (or
  786.  brush) depth is used.
  787.  
  788.  Graininess: image "graininess" in 1/10000 (range 5000..500000, default
  789.  20000).
  790.  
  791.  Random Seed: random seed; if negative, totally random image palettes are
  792.  generated.
  793.  
  794.  Gray Shades: color (0) or grayscale (1) palette; gray images can be
  795.  useful as alpha channel information.
  796.  
  797.  
  798.  Scanner (Load Only) 
  799.  
  800.  A scanner I/O library is not normally supplied with Personal Paint, but
  801.  it is rather provided with products such as ScanQuix. It is mentioned
  802.  here mainly to draw attention to the fact that the I/O modules allow for
  803.  capabilities which go beyond simple file I/O.
  804.  
  805.  
  806.  Personal Paint for Authors
  807.  
  808.  Personal Paint offers a unique range of features designed for authors of
  809.  artwork to be distributed on computer files. In this section, we would
  810.  like to share with you some of the experience collected by leading
  811.  artists. We also explain some of the settings we at Cloanto prefer in our
  812.  own configurations.
  813.  
  814.  An image or an animation created with public distribution in mind
  815.  requires some considerations which are normally not relevant when a file
  816.  is used only on the author's computer.
  817.  
  818.  As the public grows wider, compatibility becomes an issue: the image or
  819.  the animation may have been created using a screen mode different than
  820.  what a viewer may have available. Some (especially older) picture and
  821.  animation players had limitations and bugs, and it could be interesting
  822.  to have access to a range of options designed to prevent potential
  823.  difficulties before they become a problem for end users.
  824.  
  825.  Associating information such as author, copyright, and other comments to
  826.  files is usually appreciated both by authors and by the public (as well
  827.  as by possible publishers). Also, there should be no difficulties or
  828.  formalities in distributing the icons created by the art application, or
  829.  even replacing these with new default icons. Both the icons and the image
  830.  file should be product-neutral (no hidden advertising texts inside the
  831.  file). After more than six major versions, Personal Paint offers
  832.  experienced answers to these and many more requirements.
  833.  
  834.  Most computing platforms use display modes made of square pixels (i.e. an
  835.  X/Y ratio of 1, as on the Macintosh, or on the PC's VGA) as a standard.
  836.  This means that the pixels are exactly as tall as they are wide. To be
  837.  round, a circle drawn on such a screen would be as wide (in pixels) as it
  838.  is tall. Not so on the Amiga. The original non-interlaced Amiga modes had
  839.  a ratio close to 0.5 (so-called "tall-pixels"). A "round" circle could be
  840.  10 pixels on the X-axis and 5 pixels on the Y-axis. Most artists prefer
  841.  to work with square pixels. Yet even here there is no exact match on the
  842.  Amiga. PAL and NTSC screen modes, for example, have pixels of slightly
  843.  different ratios. Before it draws a circle, Personal Paint queries the
  844.  Amiga Display Database to obtain information on the ratio. For example,
  845.  the Display Database could tell Personal Paint that a "round" circle must
  846.  be 10 pixels wide and... 9 pixels tall. This is not what most artists
  847.  want. Rather than working with similar approximations, at Cloanto we
  848.  prefer to activate the Square Pixels option. This ensures that the
  849.  resulting images appear correctly when viewed using 1:1 pixels,
  850.  regardless of the screen mode in which the image was created.
  851.  
  852.  Normally, when storing an image in formats such as IFF-ILBM, information
  853.  about the current screen mode is also saved. When the Amiga was first
  854.  released, associating a screen mode to an image allowed simple viewer
  855.  applications to quickly open a screen of the same type as the one used by
  856.  the author. At that time, options were limited: screens could be either
  857.  low resolution or high resolution, interlaced or non-interlaced. These
  858.  were common to all Amigas. Minor difficulties would result from images
  859.  crossing the oceans separating PAL from NTSC video modes. Today, there
  860.  are not only different generations of Amiga display hardware, but even
  861.  third-party graphics boards. Even users of identical Amiga computers may
  862.  have installed different Monitor files on their systems. Furthermore,
  863.  applications became more intelligent: Personal Paint, for example, excels
  864.  in automatically picking the best available screen mode to display an
  865.  image.
  866.  
  867.  Over the years, associating default screen modes to pictures has become
  868.  more dangerous (the default may not be available, or viewable, on the
  869.  user's machine) and less necessary (software is more intelligent). At
  870.  Cloanto, we now prefer to store all images without associating a default
  871.  screen mode to the file. To switch this option, open the Options window
  872.  in the Save Image requester and clear the Screen Format setting. File
  873.  formats which cannot save screen mode information (e.g. PBM) do not have
  874.  this option.
  875.  
  876.  Animations require some additional attention. In accordance with the
  877.  different Amiga ANIM specifications (standards for animation file
  878.  formats), a default screen mode must be specified in the file. Personal
  879.  Paint and the most used Amiga animation players are capable of overriding
  880.  this information when loading an animation, and can automatically select
  881.  an appropriate screen mode just as Personal Paint does for images. This
  882.  is necessary, for example, when an animation's default mode is not
  883.  supported on the computer where the animation is to be played.
  884.  Nevertheless, when an animation is saved, the current screen mode is
  885.  always stored with the animation. At Cloanto, we have decided to
  886.  associate "DblPAL" screen modes to the animations we create and
  887.  distribute. These screen modes are supported by all AGA machines, and can
  888.  be displayed on VGA monitors not supporting 15 kHz modes. Furthermore,
  889.  the pixel X/Y ratio of PAL is closer than NTSC to 1, which is preferred
  890.  by most artists. The AGA chip-set is very common among the more active
  891.  Amiga users. Yet even if the end user's machine does not support DblPAL,
  892.  the animation can be displayed in other screen modes (the screen mode
  893.  information is only a hint required by the ANIM standard, not an
  894.  imperative for applications).
  895.  
  896.  Users of original and ECS Amiga chip-sets, as well as users of some
  897.  display cards such as the Picasso II should consider another issue: color
  898.  resolution. AGA allows users and applications to define and set colors
  899.  using 8 bits per color component (red, green and blue). This is 24 bits
  900.  (or 256 gray-levels, or more than 16 million different
  901.  color-combinations). Older Amigas only support 4 bits per component (i.e.
  902.  16 gray-levels, or 4096 colors). The Picasso II uses 6 bits per component
  903.  (64 gray levels, or 262 144 colors). This means that on some systems
  904.  colors cannot be defined with the precision possible on AGA (e.g. on the
  905.  Amiga 1200 and 4000), for example. Users of Personal Paint can quickly
  906.  check the color resolution of a given screen mode by displaying the
  907.  Palette requester and setting any color-slider to the maximum. The
  908.  numerical value indicates the precision of the display (e.g. a maximum
  909.  level of 15, 63 or 255 would indicate that the hardware supports 16, 64
  910.  or 256 levels for that color component).
  911.  
  912.  When a palette is loaded on a system with a lower color resolution, a
  913.  majority of colors is likely to "snap" to coarser levels. If the image is
  914.  then saved again, a loss of data may occur. As an artist, you may want to
  915.  make sure that the colors you see on your system will be loaded and
  916.  represented the same way by an older Amiga. Or, even if you do not own a
  917.  system capable of handling 8 bits per color component, you may need to
  918.  edit images in that resolution without losing precision. Personal Paint
  919.  offers a solution to all these requirements, by allowing the user to
  920.  manually set the color precision (number of bits per color component).
  921.  Even if this is different (higher or lower) than what is supported by the
  922.  system, Personal Paint can use a custom value for all processing,
  923.  overriding the Amiga defaults. When the program settings REDBITS,
  924.  GREENBITS and BLUEBITS are set to 0, Personal Paint uses the maximum
  925.  color resolution supported by the video device currently used. This is
  926.  the program's default. Other values, however, force Personal Paint to use
  927.  specific numbers of bits per color component. For example, setting all
  928.  three values to 8 allows for precise editing of AGA-resolution palettes
  929.  even on ECS or Picasso II systems.
  930.  
  931.  At Cloanto, where we work with different Amiga computers and graphic
  932.  boards, we manually set REDBITS, GREENBITS and BLUEBITS to 8 in our own
  933.  startup files. If you have an AGA computer and you only work in AGA
  934.  screen modes, you should not need to set these values yourself (by
  935.  default this is taken care of by Personal Paint), unless you want to
  936.  emulate a coarser color resolution.
  937.  
  938.  When we save an image, at Cloanto we use the IFF-ILBM format if the image
  939.  is mainly for Amiga distribution. The options we normally set are:
  940.  compression active, no screen format information. IFF-ILBM is the most
  941.  supported Amiga image file format, and also offers excellent loading and
  942.  saving times (e.g. viewers are faster), but its compression is not as
  943.  good as in other formats (i.e. the files are longer). When space is
  944.  really tight and excellent compression is a priority, we use PNG
  945.  (options: compression level 9, no progressive display, automatic mode
  946.  enabled). Setting a PNG compression level higher than 6 slightly improves
  947.  compression, but considerably slows down the compression procedure. PNG
  948.  is also our format of choice when the images are to be read by other
  949.  computers. We used to prefer GIF for cross-platform distribution, but
  950.  GIF's popularity was suffocated at the end of 1994, after Unisys
  951.  Corporation began demanding royalties for software reading and writing
  952.  GIF (and TIFF/LZW) files. When we write images to be used on an Amiga
  953.  CD-ROM, we sometimes prefer another format: uncompressed IFF-ILBM (no
  954.  compression, no screen format information). This can generate quite long
  955.  files, but on a CD-ROM space is usually not a problem. Due to the minimum
  956.  software overhead, uncompressed IFF-ILBM files can be loaded considerably
  957.  faster than other formats, especially on slower machines.
  958.  
  959.  When we write animations, at Cloanto we usually store them in ANIM-5
  960.  format. This is the most supported standard for Amiga animation files. It
  961.  also offers good compression. ANIM-7 files can be processed faster,
  962.  although they are not compressed as well and are not as widely supported
  963.  as ANIM-5. We use ANIM-7 for 256-color animations, and sometimes to store
  964.  all types of animations on CD-ROM, when we know that an ANIM-7 viewer is
  965.  available (e.g. Personal Paint). Very rarely, when a disk is really
  966.  packed, we store animations in the ANIM-5+7 format. When this format is
  967.  used, Personal Paint decides whether to use ANIM-5 or ANIM-7 on a
  968.  frame-by-frame basis, depending on which format yields the best
  969.  compression. This adheres to the ANIM specifications, but requires that
  970.  the software loading the animation can handle both ANIM-5 and ANIM-7. We
  971.  never use ANIM-8. It is neither as popular nor (in general) as good as
  972.  ANIM-7.
  973.  
  974.  Quite often, at Cloanto we use Personal Paint to optimize old animations
  975.  (among others, using the Optimize Frames command) before saving them
  976.  again. This alone can halve the size of certain animation files. Some
  977.  older and not very popular animation viewers do not support
  978.  frame-by-frame timing. In this case, the Optimize Frames command cannot
  979.  be used. These same programs usually also do not support more than one
  980.  color palette per animation (see the introduction to chapter 6). Personal
  981.  Paint marks these palettes with three dots under the associated frame in
  982.  the storyboard. At Cloanto, we use frame-by-frame timing and multiple
  983.  palettes without concerns, since neither of the limitations described
  984.  here is an issue with the most recent and the most used Amiga animation
  985.  viewers.
  986.  
  987.  A few other options can affect the animation format. Before the animation
  988.  is saved, we make sure that the current screen mode is the one that we
  989.  want to associate to the animation (see explanation in this same
  990.  section).
  991.  
  992.  Some older programs have a bug which does not allow them to handle
  993.  certain types of properly-written ANIM files. DPaint (up to release V) is
  994.  one of these programs. When compatibility with these applications is
  995.  important, we disable the Full ANIM Optimization option.
  996.  
  997.  As an author or publisher of an image or animation, you may want to
  998.  fill-in the Author, Copyright and Annotation texts, which are supported
  999.  by most file formats. You could put your name as the Author, and
  1000.  something like "Copyright © [Year of first publication] [Your name] -
  1001.  Freely Distributable" in the Copyright text. The Annotation could include
  1002.  a postal or E-mail address. Personal Paint allows for this information to
  1003.  be easily edited at any time. Empty fields are not saved, and do not
  1004.  occupy any space in the file.
  1005.  
  1006.  On the Amiga, Workbench icons are usually associated to files. Personal
  1007.  Paints can save images and animations using the default icons stored in
  1008.  the "PPaint:PPaint_Icons" drawer. These icons also determine the Default
  1009.  Tool, which is the program which will be loaded when the file is
  1010.  double-clicked on. If you like the icons which come with Personal Paint
  1011.  (they are freely distributable), you can leave them as they are, or
  1012.  perhaps you may want to change the default tool, for example by putting
  1013.  "VT" instead of "PPaint:PPView". This can be set with the Workbench
  1014.  Information command. PPView is a short program which uses Personal Paint
  1015.  as a viewer (it loads Personal Paint, if it is not already loaded).
  1016.  Please be careful not to Snapshot (Workbench command) the icons inside
  1017.  "PPaint:PPaint_Icons" to a fixed position. When dropping a new default
  1018.  icon inside the drawer, select the Workbench UnSnapshot command.
  1019.  
  1020.  At Cloanto, we usually set the Icons option to Original when we only want
  1021.  to change the file format of a picture or animation. This guarantees that
  1022.  the existing icon image will not be affected.
  1023.  
  1024.  
  1025.  Personal Paint for Internet Publishing
  1026.  
  1027.  As more and more organizations and individuals publish their work on the
  1028.  World Wide Web, it is becoming more important to stand out with carefully
  1029.  thought out web pages. Graphics play an important part in this. Poorly
  1030.  implemented pages annoy users with images having wrong or missing
  1031.  transparency information, lack of progressive display, and long
  1032.  transmission times for 256-color images where 16 or fewer colors could
  1033.  achieve the same results.
  1034.  
  1035.  In addition to supporting Internet still image formats, Personal Paint
  1036.  includes tools to create highly-optimized GIF animations, and to edit
  1037.  "image map databases". GIF animations became increasingly popular after
  1038.  1995, when several browsers began supporting this format. Image maps make
  1039.  it possible to specify regions on an image, and to associate them to
  1040.  actions that are executed when the user clicks on a region. The
  1041.  "LoadAnimGif", "SaveAnimGif" and "WebMap" Rexx macros contain additional
  1042.  documentation which can be displayed by selecting "About..." in the Macro
  1043.  Selection requester.
  1044.  
  1045.  
  1046.  Common File Formats 
  1047.  
  1048.  Personal Paint is an ideal tool for the creation of palette-based images
  1049.  to be included in HTML documents (the standard for web pages). Two file
  1050.  formats are recommended for this purpose: GIF and PNG. Both formats
  1051.  support progressive display and transparency, the appropriate use of
  1052.  which can make a difference between a good page and a poor page. We
  1053.  recommend the use of both features.
  1054.  
  1055.  GIF exists in two variants: GIF87a and GIF89a. PNG and GIF89a support
  1056.  transparency. GIF87a does not. The GIF format is designed in a way that
  1057.  programs supporting only the "87a" format should be able to read "89a"
  1058.  images, skipping the transparency information. Personal Paint's most
  1059.  recent GIF input/output libraries ("personal_gif_io.library" from version
  1060.  3.2) allow for the GIF version to be specified in the Options window of
  1061.  the Save Brush requester. Library versions from 5.1 also support reading
  1062.  and writing of GIF animations (with appropriate client programs, such as
  1063.  Personal Paint 7).
  1064.  
  1065.  PNG is technically better than GIF, but it has been officially introduced
  1066.  to the list of WWW-supported formats only in late 1996. It is likely that
  1067.  PNG will slowly replace GIF, which is being suffocated by patent
  1068.  problems. At Cloanto we began using GIF for our WWW images, but we expect
  1069.  to replace it with PNG as more browsers support it.
  1070.  
  1071.  
  1072.  Progressive Display 
  1073.  
  1074.  Progressive (also called "interlaced") display is a feature which is
  1075.  useful whenever it takes a long time (seconds, if not minutes) to load an
  1076.  image. Images stored without this option can be displayed only line by
  1077.  line, from the top to the bottom. It is very difficult to have an idea of
  1078.  the contents of such an image at the beginning of the transmission. If
  1079.  instead the progressive display option was enabled when the original
  1080.  image was saved, the entire image can be viewed in a coarse resolution at
  1081.  the beginning of the transmission, and during the transmission it becomes
  1082.  progressively more detailed.
  1083.  
  1084.  All versions of GIF and PNG support progressive display, although PNG
  1085.  uses a more appealing method. Personal Paint has a Progressive Display
  1086.  setting in the Options window of the Save Image and Save Brush
  1087.  requesters. Images saved using this option occupy slightly more space,
  1088.  but can be displayed progressively during the load. This feature is
  1089.  widely used on the Internet, and it is compatible with all WWW browsers.
  1090.  
  1091.  
  1092.  
  1093.  Transparency 
  1094.  
  1095.  Transparency is a feature which allows part of the image to be defined as
  1096.  transparent. This is useful, for example, when non-rectangular images
  1097.  have to be displayed over a pattern. But even if the background of a
  1098.  non-rectangular shape has the same color of the page background, we
  1099.  recommend setting that color as transparent, because some browsers may
  1100.  remap the image background to a slightly different color than the page
  1101.  background color. Some WWW browsers do not support the HTML commands
  1102.  which set the page background color, so an image background which was
  1103.  intended to be the same as the page, could appear to be different.
  1104.  Transparency can prevent this. Active use of transparency helps
  1105.  maintaining the quality of the page even when these browsers are used.
  1106.  
  1107.  To preserve the best possible page quality even with older browsers we
  1108.  recommend to use transparency and at the same time to also make sure that
  1109.  the transparent color is the same as the page background color. This
  1110.  helps with those few browsers that do not support transparency.
  1111.  
  1112.  Personal Paint saves transparency information only when saving brushes
  1113.  (Save Brush command, rather than Save Image). The transparent color is
  1114.  defined when the brush is defined. If the Transparency option in the
  1115.  Settings menu is set to None, then no transparency is associated to the
  1116.  brush. If instead it is set to Color, then the background color during
  1117.  the brush definition is used as transparent. Other types of transparency,
  1118.  such as transparency shapes which are not associated to a single color,
  1119.  which can be defined and stored in the IFF-ILBM format, are poorly
  1120.  supported on the Internet, and not at all supported by the GIF format. So
  1121.  the only way to mark a region as transparent is to reserve a color for
  1122.  that part of the picture, and selecting it as the background color before
  1123.  the brush is defined.
  1124.  
  1125.  While for still images we can safely recommend to use transparency for
  1126.  the background color even when this is not strictly required, for
  1127.  animations the choice can be more difficult, because transparency may
  1128.  have an impact on the size of the animation file, and also because some
  1129.  older browsers do not properly support certain types of transparent GIF
  1130.  animations. Therefore, for animations we recommend to set Transparency to
  1131.  "None" unless a transparency effect is required. The Frequently Asked
  1132.  Questions section of Personal Paint contains additional notes on possible
  1133.  problems which may be experienced when transparency is applied to GIF
  1134.  animations, and how these can be solved.
  1135.  
  1136.  
  1137.  Color Palettes 
  1138.  
  1139.  It should be considered that even 100% Amiga-oriented web sites are very
  1140.  often (if not preferably, as some statistics indicate) viewed using a PC
  1141.  browser. When they are not operating on a true color desktop (or
  1142.  "Workbench", in Amiga terminology), the majority of PC Internet browsers
  1143.  remap and dither all images using a 216-color "isopalette", which is a
  1144.  palette in which the entries are equally distributed in the color space.
  1145.  This allows for fast and efficient dithering, and is in general preferred
  1146.  to other methods involving dynamic color allocation and change based on
  1147.  the different images.
  1148.  
  1149.  Internet browsers by Microsoft, Netscape and others share a common
  1150.  216-color isopalette. The remaining colors out of 256 change from browser
  1151.  to browser. The "Colors" drawer in the Personal Paint program directory
  1152.  contains this color palette (as well as the subset of grays) ready for
  1153.  use with Personal Paint. Whenever this choice is easily practicable, we
  1154.  recommend to consider using these colors for palette-based graphics,
  1155.  especially for large surfaces of the same color, which would otherwise
  1156.  risk to be dithered by the browser.
  1157.  
  1158.  
  1159.  Other Recommendations 
  1160.  
  1161.  Newer browsers support a feature called "Low Resolution Preview"
  1162.  ("LOWSRC" attribute in the "IMG" HTML element), which makes it possible
  1163.  to specify a very compact image, usually in low resolution and with very
  1164.  few colors, which is displayed before the higher-resolution image is
  1165.  loaded and displayed in the same place. If this feature is used, it is
  1166.  important to consider that the low resolution image can use progressive
  1167.  display, but the high resolution image should not, because it would
  1168.  immediately cover the preview image.
  1169.  
  1170.  It is important to keep in mind some practical Internet traffic,
  1171.  bandwidth and cost restraints, which suggest that the size of the image
  1172.  files should be as small as possible. If you are planning to publish a
  1173.  256-color image, try to color-reduce it to 16, or even fewer colors. Very
  1174.  often, the difference in quality can hardly be noticed, but a 16-color
  1175.  image is transmitted twice as fast as one in 256 colors (and costs less,
  1176.  if traffic or time are charged). Personal Paint's most professional
  1177.  quantization mode is activated by setting the Dithering option to
  1178.  Floyd-Steinberg, with the Best Quality option active. It should also be
  1179.  noted, however, that Floyd-Steinberg dithering creates patterns which can
  1180.  slightly reduce the compression rate.
  1181.  
  1182.  
  1183.  
  1184.  Copyright © 1992-1998 Cloanto
  1185.