home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / mac / viewers / vislab10.sit / Vision_Lab_Help.bin / Vision Lab Help.rsrc / Thlp_9355_PixMap Menu < prev    next >
Encoding:
Text File  |  1988-06-24  |  4.5 KB  |  64 lines

  1.   ²~F3~~s12~~C~~SB~~SU~PixMap Menu:~SB~~SU~
  2. ~s9~~L~
  3. Exactly what appears under the ~SB~PixMap~SB~ menu depends upon the pix map PROCs installed in Vision Lab.  If you are a programmer the ╥shared.h,╙ ╥Invert Clut,╙ and ╥Invert Clut.c╙ files will provide an example for adding your own pix map PROCs to Vision Lab.  (Note the ╥Invert Clut╙ file is a LightspeedC project file)
  4.  
  5. Some PROCs may need special hardware or software to run.  For example, a PROC that uses a hierarchical menu will be dimmed (unavailable) unless you are using system 4.1 or greater.  The following are descriptions of the pix map PROCs that come with Vision Lab.
  6.  
  7. ~F0~~s12~Apply Gray Map~F3~~s9~
  8.  
  9. Turns the pix map into a black and white image applying the brightness and contrast settings of the gray map.  ~SB~16 Gray Levels~SB~ maps each pixel into values of 0 (for white) to 15 (for black).  ~SB~256 Gray Levels~SB~ maps each pixel into values of 0 (for white) to 255 (for black).
  10.  
  11. ~F0~~s12~Crop~F3~~s9~
  12.  
  13. Crop simply reduces the image to the portion of the image selected.
  14.  
  15. ~F0~~s12~Expand~F3~~s9~
  16.  
  17. Converts a pix map of a lesser depth to a greater depth.  ~SB~To 2 Bits~SB~, ~SB~To 4 Bits~SB~, and ~SB~To 8 Bits~SB~ choose the depth of the resulting pix map.
  18.  
  19. ~F0~~s12~Filter~F3~~s9~
  20.  
  21. The functions available in Filter assume that 4 bit deep pix maps contain values from 0 (for white) to 15 (for black) and 8 bit deep pix maps contain values from 0 (for white) to 255 (for black).  Using Apply Gray Map will force a pix map into these constraints.  Although these functions are not intended to work on color images they can be used for creating some interesting ╥special effects.╙
  22.  
  23. ~SB~Edge~SB~ is similar to the bit map PROC called contour.  Edge, however, produces contours with various gray levels.  ~SB~Smooth~SB~ produces a soft dulling effect on the selected portion of the pix map.  ~SB~Sharpen~SB~ highlights features of the selected portion of the image.
  24.  
  25. ~SB~The Most~SB~, ~SB~A Lot~SB~, and ~SB~A Little~SB~ control the strength of the filter on the image.
  26.  
  27. ~SB~Box~SB~, ~SB~Plus~SB~, and ~SB~Cross~SB~ control the neighboring pixels that are used in the filtering process.  Depending on the image you may notice ~SU~very~SU~ little difference between these options.
  28. ~F4~~C~
  29.       X X X           O X O            X O X
  30. Box - X P X    Plus - X P X    Cross - O P O
  31.       X X X           O X O            X O X
  32. ~F3~~L~
  33. ~SB~Punctured~SB~ controls whether the center pixel ╘P╒ is used in the calculations.  This option is only valid for smoothing.
  34.  
  35. ~SB~Average~SB~ and ~SB~Median~SB~ control the type of smoothing performed.  If you are experimenting with color images you may find Median smoothing much more desirable.
  36.  
  37. ~F0~~s12~Flip~F3~~s9~
  38.  
  39. Flips the ~SU~selected~SU~ portion of the pix map either ~SB~Horizontal~SB~ or ~SB~Vertical~SB~.
  40.  
  41. ~F0~~s12~Histogram~F3~~s9~
  42.  
  43. Produces a normalized histogram of the selected portion of the pix map.  The gray map is applied to the pixel values when computing the histogram.
  44.  
  45. ~F0~~s12~Invert Clut~F3~~s9~
  46.  
  47. Invert Clut simple does what it says.  It inverts the entries in the color lookup table for the pix map.  It does not change the values contained in the pix map in any way.
  48.  
  49. ~F0~~s12~Rotate~F3~~s9~
  50.  
  51. ~SB~Left~SB~ - Rotates the entire pix map image 90í to the left.
  52. ~SB~Right~SB~ - Rotates the entire pix map image 90í to the right.
  53.  
  54. Rotate will not work with a bit map window open.
  55.  
  56. ~F0~~s12~Scale~F3~~s9~
  57.  
  58. Scale changes the pix map╒s size by applying the scaling factors set by ~SB~Set Scale~SB~.  Unlike the Vision Lab functions Zoom In and Zoom Out, Scale actually changes the pix map in memory.  You can scale the horizontal and vertical dimensions independently from /2 (0.500) to 2x (2.000).  Color QuickDraw is needed for scaling pix maps with depths greater than one.
  59.  
  60. ~F0~~s12~Squeeze~F3~~s9~
  61.  
  62. Squeeze does a number of things to the pix map to ~SU~try~SU~ to make it smaller in size.  If there are any entries in the clut that map to the same color they are squeezed into the same value.  Gaps in the numerical order of used entries are squeezed out.  Also, the color table itself is sorted by red, green, and finally blue.  If possible this command will also make the first entry in the color table white and the last entry black regardless of whether or not they are actually used in the image.
  63.  
  64. If there is a box around the pix map information in the information window using Squeeze PixMap will usually remove it.  This is ~SU~very~SU~ important if you intend on saving the pix map as a PixelPaint or MacPaint file.  It may also be important in other cases too.