home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 131.lha / brush2icon.doc < prev    next >
Text File  |  1986-11-21  |  3KB  |  94 lines

  1.    This program will turn any iff brush or picture into an
  2. icon for the WorkBench.
  3.    I used to use 'zapicon' and it worked just fine except
  4. it used GADGHCOMP for the icon's hilighting mode which I
  5. personal think doesn't look to good.  The solution was to
  6. use zapicon to convert the iff brush to am icon and then
  7. load the icon into IconEd, change the hilite mode to
  8. BackFill and resave it.  The problem with that approach is
  9. that IconEd doesn't seem to like icons made with zapicon. 
  10. It loads them just fine but 30-40% of them it doesn't save
  11. them correctly.  I don't know what the problem is but after
  12. they'd been resaved with IconEd they would appear as almost
  13. total garbage on the WorkBench.  The other problem to that
  14. approach is that IconEd won't handle large icons.  So I
  15. finally sat down and wrote my own program to do what I
  16. needed.
  17.    Brush2Icon only runs from the CLI and takes the
  18. following format
  19.  
  20.    Brush2Icon name brush1 [-abrush2] [-backfill] [-tTYPE]
  21.  
  22. where 'name' is the name of the file your making an icon
  23. for. (ie. do NOT include the ".info")  'Brush1' is the IFF
  24. file that contains the picture to be used for the Icon. 
  25. The rest are optional.
  26.  
  27.    -abrush2 allows you to use a second IFF file for the
  28. selected image of the icon.  I think it is much easier to
  29. do this here than to make two icons and then run alticon on
  30. them.
  31.  
  32.    -backfill will set the hilite mode to BACKFILL instead
  33. of COMPLEMENT which is the default.  Note: this option is
  34. overridden by the -a option.
  35.  
  36.    -tTYPE sets the type of the icon.  The default type is
  37. PROJECT.  Valid types are TOOL, PROJECT, DRAWER, DISK and
  38. GARBAGE
  39.  
  40. examples.
  41.  
  42.    Brush2Icon Harv Face.pic
  43.  
  44. Creates an icon for the file 'Harv' (ie. it creates a file
  45. named 'Harv.info' using the iff image in the file
  46. 'Face.pic'.  The filetype will be PROJECT and the hilite
  47. type will be COMPLEMENT (GADGHCOMP)
  48.  
  49.    Brush2Icon Harv Face.pic -b -tTOOL
  50.  
  51. Same as above expect the filetype will be TOOL and the
  52. hilite type will be BACKFILL.
  53.  
  54.    Brush2Icon Progs Closed.pic -aOpened.pic -tDRAWER
  55.  
  56. Creates an icon for the drawer 'Progs'.  The icon will look
  57. like the image in the IFF file 'Closed.pic' then when it is
  58. clicked on or selected it will display the image in the
  59. file 'Opened.pic'.  the filetype is DRAWER and the hilite
  60. type is GADGHIMAGE.
  61.  
  62.    Brush2Icon
  63.  
  64. Prints out a few simple instructions.
  65.  
  66. Note: 1) If you make an alternate image be sure you save
  67. the two images in the same size.  (If you want an
  68. explanation just try it with different sized ones and see
  69. what happens. :-D )
  70.       2) This program doesn't strip extra bitplanes so if
  71. you draw a 16 color icon it 'SHOULD' save all 4 planes. 
  72. This is a waste of memory if you are only using a 2 plane
  73. WorkBench but if you have modified your WorkBench for more
  74. planes then it should allow you to make icons for it. 
  75. (Should means that I haven't actually tried it.  I don't
  76. personally strip the planes but PutDiskObject() might.)
  77.  
  78.  
  79.    I have uploaded the source in case you would like
  80. to add other features, change the defaults or just see if
  81. there are some nifty routines you can use in your own
  82. programs.  Actually there are a few but I will upload them
  83. separately with documentation in the near future.
  84.  
  85.    This program is Public Domain.  Please do NOT sell it
  86. or take credit for work that is not yours.  Thank you.
  87.  
  88.          Gregg Tavares
  89.          10500 National Blvd #24
  90.          Los Angeles, CA  90034
  91.  
  92.  
  93.  
  94.