home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / windows / pbi_edit.zip / PBICON.TXT < prev    next >
Text File  |  1990-06-21  |  9KB  |  173 lines

  1.  
  2. NOTE:  If you just want to start right away and read my speech later, skip to
  3. Section 1 and AT LEAST READ IT before starting PBIcon.
  4.  
  5.  
  6.  
  7.                                  PBIcon
  8.                                Version 1.0
  9.                                  6/19/90
  10.  
  11.  
  12. PBIcon serves as an extension to the file format cabilities of Microsoft
  13. Windows Paintbrush to allow icons to be created or modified within
  14. Paintbrush.  PBIcon will open and save files in a format suitable for use
  15. by Program Manager.  The clipboard is used to transfer images between
  16. PBIcon and Paintbrush.
  17.  
  18. This is a different approach than writing a complete Icon creator program.
  19. The following list summarizes some advantages and disadvantages that I
  20. currently recognize:
  21.  
  22.     ADVANTAGES:
  23.  
  24.       - Microsoft Windows Paintbrush is already an extremly powerful
  25.         paint program which provides access to a rich choice of drawing
  26.         tools and options.
  27.  
  28.       - You don't have to remember how to use two paint programs.
  29.  
  30.       - Using Paintbrush to supply the painting facilities will allow
  31.         this program to concentrate on serving your Icon program desires
  32.         (as you provide feedback), instead of duplicating effort on the
  33.         drawing development.  This is my understanding of part of
  34.         Microsoft's current message to developers; integrating software
  35.         should complement existing applications, not replicate them.
  36.  
  37.  
  38.     DISADVANTAGES:
  39.  
  40.       - You lose the ability to use the drawing 'tools' when you Zoom In
  41.         to make your editing image bigger-than-life size.  Only pixel-by-
  42.         pixel editing can be done in PaintBrush while in this mode.
  43.  
  44.       - You are required to perform a 32 pixel by 32 pixel clip.  This is
  45.         really an easy task once you've done it once or twice.  A 32x32
  46.         pixel bitmap is included to assist you in making the perfect clip.
  47.  
  48.  
  49. IMPORTANT: Please Read!
  50.  
  51. This is a test release of PBIcon for Windows.  It is my 'prototype' test
  52. of both a design strategy and a market test for a shareware product (cheap,
  53. say $10, hopefully with many added features).  I really am looking for
  54. feedback from you if you think this a good idea and would like to support a
  55. fully developed product.  I will be looking at both your replies and the
  56. number of downloads versus other icon utilities to decide where to go from
  57. here.   Thank you for your time and replies!
  58.  
  59.  
  60. ------------------------------------------------------------------------------
  61.  
  62.  
  63. SECTION 1: Using PBIcon
  64.  
  65. The following are two very quick exercises that teach you all you need
  66. about PBIcon.
  67.  
  68. Number 1:
  69.  
  70. First, start PBIcon.  You will see a small window appear in the top left
  71. corner of your screen.  Two menu selections are on the main menu.  The
  72. File menu controls opening and closing icon files.  The Edit menu allows
  73. copying and pasting to the clipboard to communicate with Paintbrush.
  74.  
  75. Now start Paintbrush.  Select 'Edit' and then select 'Paste From...'.
  76. There are two 32 by 32 pixel bitmaps included with Windows 3.0, boxes.bmp
  77. and pyramid.bmp.  Double click on either one of these bitmaps to paste it
  78. into Paintbrush.  While the new bitmap is still in the clipping rectangle,
  79. select 'Edit' once more and then select 'Copy'.  This will copy the bitmap
  80. to the clipboard.
  81.  
  82. Now switch over to the PBIcon window.  Select 'Edit from the main menu and
  83. then select 'Paste'.  This copies the bitmap from the clipboard and will
  84. display it in PBIcon's viewing frame.  Now select 'File' and then 'Save' to
  85. activate the save dialog.  For reasons that are explained later in this
  86. document, I have chosen to use a default extension of 'ICN' for icon files
  87. in Program Manager format.  After saving your new icon, you can verify it
  88. is ready for use by highlighting any icon in one of your program groups
  89. and selecting 'Properties' from the Program Manager 'File' menu.  Select
  90. 'Change Icon...' and then replace the file name in the existing edit box
  91. with your new icon's name, for example, 'PYRAMID.ICN'.  Now select 'View
  92. Next' and you should see your new icon appear.  You can select 'Cancel'
  93. to exit from the dialog boxes.  If you select 'OK', Program Manager will
  94. replace the current icon with your new icon.
  95.  
  96.  
  97.  
  98. Number 2:
  99.  
  100. This exercise adds clipping a new or modified icon (the usual case) to
  101. allow copying it to the clipboard from Paintbrush.  After making sure that
  102. the included 32x32.BMP file is in your Windows (or other Paintbrush
  103. directory), select 'Edit' and 'Paste From...' once more.  This time choose
  104. the 32x32.bmp file to paste in.  When it appears in PaintBrush, place the
  105. cursor in the center of the clip and drag it ti the center of your screen.
  106. The bitmap is actually 34 x 34 pixels.  The dotted red line is the outline,
  107. the part you DON'T want to clip.  The inner black line is the edge of your
  108. 32 x 32 pixel area.  The area occupied by this black line lies within the
  109. area you do want to clip.  AT this point you can either begin drawing a new
  110. icon within the assist template, or you can paste another bitmap using
  111. Paintbrush (you could load a *.ICN file into PBIcon, 'Copy' it from its
  112. 'Edit' menu, and then paste it into Paintbrush, also).  If you paste in
  113. a bitmap for modification, simply drag it until you get it on top of the
  114. assist template with the red dotted line showing on all sides.
  115.  
  116. In either case, you can now create or edit the icon.  When complete, select
  117. the square scissors tool (upper right tool) to clip the icon for the
  118. clipboard.  The Paintbrush clip has an idiosynchracy to it, at least on my
  119. VGA display.  The left and top sides of the image you clip INCLUDE the
  120. pixels underneath them.  The right and bottom clipping lines DO NOT include
  121. the pixels underneath them.  Therefore, if you clip from top right to bottom
  122. left, start by placing the cursor crosshairs to right and bottom of the
  123. dotted red line (so that you can still see the true red dash).  Now push
  124. the right mouse button and drag the cursor to the bottom left and position
  125. it so that the crosshairs are directly on top of the right and bottom red
  126. dashed lines.  Release the mouse button.  To check how clean your clip is,
  127. place the cursor over your clip and move it to one side.  The red dashed
  128. line should remain and all of your icon should move.  If this is not the
  129. case, select 'Undo' from the 'Edit' menu and you get another chance!  This
  130. will become easier after you do it once or twice.
  131.  
  132. Now select 'Edit' and then 'Copy' just as in exercise one.  Switch to PBICon
  133. and select 'Paste' from the 'Edit' menu, and 'Save' etc...
  134.  
  135.  
  136. SECTION 2:  Different File Formats
  137.  
  138. The following information may be incomplete (and probably is) since I still
  139. have to wait for the Windows 3.0 Software Development Kit which should be
  140. released to the public any day now.
  141.  
  142. Icons and bitmaps both have two types of formats (at least).  Bitmaps have a
  143. 'file' format, as well as an internal format when you use a bitmap in a
  144. Windows program.  The file format is what you call up in PaintBrush, and has
  145. a file extension of BMP.  This file not only contains pixel information for
  146. the bitmap, but also a color 'palette'.  The internal form of a bitmap (so
  147. far as the 2.0 SDK), does not contain a palette.  Instead, the pixel infor-
  148. mation is divided into four color 'planes'.  Different combinations of on/off
  149. bits in these four planes provides for sixteen unique colors.  I noticed when
  150. I examined the clipboard after clipping a bitmap from PaintBrush that in
  151. addition to a BITMAP being available, there was another (yet unknown to me)
  152. type of info available.  Perhaps this is a '3.0' style with extended color
  153. capabilities.  If I decide to pursue PBIcon further, I will be certainly
  154. investigating color related information much more.
  155.  
  156. Icons also have at least two formats from what I have found.  The Windows SDK
  157. contains an Icon creating utility which creates an input file for the 'resource'
  158. compiler which comes with the SDK.  I have an old copy of a neat program called
  159. EXEDMP which extracts resources from Windows programs.  It successfully
  160. extracted all 98 icons from the ICON2.DLL (not sure if that name is correct)
  161. file uploaded here last week.  This format, used for programming, has a little
  162. more header information than the icon file used by Program Manager (which I
  163. think is actually a compiler resource file).  For this reason, until I learn
  164. otherwise, I have chosen to use the extension of 'ICN' for Program Manager files
  165. to avoid confusion with *.ICO files used in programming.  I may be partially
  166. or completely wrong on this, but I'll soon learn when the SDK is released.
  167.  
  168.  
  169. Thank you for your time, interest, and feedback!
  170.  
  171. Best regards,
  172. Len Gray
  173.