home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / CVTICONS.ZIP / CVTICONS.DOC < prev    next >
Text File  |  1991-06-30  |  4KB  |  71 lines

  1. /**
  2.  
  3.   CvtIcons.exe Copyright @ 1991 Jay Giganti All Rights Reserved
  4.  
  5.  
  6.               All Options are Mutually Exclusive
  7.  
  8.          x : Extracts Icons from Windows ICO file(s)
  9.          w : Converts ICO files from PM to Windows
  10.          p : Converts ICO files from Windows to PM
  11.          ? : Displays this screen
  12.  
  13.         Usage CVTICONS -option File (Wild Cards Accepted)
  14.  
  15.         examples cvticons -x c:\windows\*.*
  16.                  cvticons -p *.ico
  17.  
  18.         example 1 : will extract all icons from the files in c:\windows
  19.                     directory and will create them in your current directory
  20.  
  21.         example 2 : will convert all ICO files in your current directory
  22.                     into ICP files in the PM format in your current directory
  23.         
  24. This program currently does three things.
  25. Extracts Icons:
  26.   It will extract Icons from windows EXE and DLL files.  It scans through
  27.   these files and will create a file with and extension of .ICO based upon
  28.   2 things.  First it will look in the resource table for any Names, if it
  29.   finds a name it will use up to 8 characters of it to create the file
  30.   name.  If There were no names found in the resource table, or there were
  31.   more icons than names, (ie -- several Icons in one directory entry) then
  32.   the icon name will containg the first 5 characters if the program it is
  33.   stripping it from, and then append a 3 digit number,m thus you can process
  34.   a file with up 1000 icons in it.  
  35.   side note:  I stripped a file form the MS-DOS program  under windows and
  36.               found a 64x64 OS/2 1.1 icon format.
  37.  
  38. Converts Icons To PM Format:
  39.   This will translate an ICO file into a PM format.  It creates the file
  40.   with an .ICP extension.  Currently I will only copy one Icon from each ICO
  41.   file, since this is how I write them.  If Needed I will add multiple
  42.   icons per ICO file handling.  The format for the icon will be written
  43.   in its current dimensions, ie: a 32x32 stays 32x32. Under OS/2 1.2 it
  44.   seems that if they are not 64x64 then it is not in a device independent (DI)
  45.   format, thus when loaded into the Icon Editor, you are told the It has
  46.   created on for you, if you save the file, then this 64x64 DI format will
  47.   be written to disk along with the origional 32x32 format.  I have the Icon
  48.   Editor do all translation.  In the furture I might do the streching required
  49.   to create a 64x64 bitmap and thus the resulting PM file will be smaller 
  50.   and the icon editor won't complain.  The reason it would be smaller is 
  51.   because there would only be one format stored in it.
  52.  
  53. Converts Icons To Windows 3.0 Format:
  54.   This will translate a PM Icon file into a Windows format.  It will translate
  55.   all Icons in the file, as long as they are <= 32x32.  I might add the
  56.   functionality to squeeze 64x64 to 32x32 but the Icon edititor does a good
  57.   job.  Thus if you have a 64x64 then select a VGA type and it will be 
  58.   converted to a 32x32 format which I can read and save in a file.  The
  59.   file will be named with the filename and the extensions .ICW. If there
  60.   is more than one Icon which is <= 32x32 then the next filename will be
  61.   created with the first 6 characters of the filename plus a 2 digit number
  62.   and then .ICW appended to it.
  63.  
  64.   In the future I will port this to a Windows and PM app but this does the
  65.   job for now.  It is a dos program.  Also I will probably add the ability
  66.   to read and write multiple icons per ICO file, and the ability to extract
  67.   icons from windows files and convert them directly to PM format.  Currently
  68.   you have to extract and then convert.  I also will probably add the ability
  69.   to extract Icons from OS/2 files.  Until then I hope this utility helps.
  70.  
  71. ***/