Bits! 2.0
  (Released 3/2/2002)

Hex Tab Hex Controls Tab Image HTML tab Image Batch tab Full Hex Value Netscape 216 Colors Clipboard Bit checks Color Swatch Red Value Green Value Blue Value RGB Button Hex value Hex Button Decimal Value Decimal Button All Button Clear Button Shift Left Button Shift Right Button Not Button And Button Or button Xor Button Modify Value
Image HTML Tab Hex Controls Tab Image HTML tab Image Batch tab Clipboard Image List Sub Folder Use Default URL Browse Button Image Directory HTML tag
Image Batch Hex Controls Tab Image HTML tab Image Batch tab Clipboard Image List Pixel Width Image Count Browse Button HTML Output Tabbed Output Comma Separated Output Name Output BMP Files GIF Files JPG Files PNG Files

What is BITS
Copyright
Disclaimer
Distribution
Registration
BITS Home site




What is BITS
  BITS is a multi-function application. It serves both the HTML developer, and the programmer of applications such as C++, Pascal, COBOL, etc.

The developer of HTML will find it easy to convert RGB values into HEX values, and then paste the HEX value into the HTML document. Reversing the process is just as simple. Also, the HTML developer can choose a color by clicking on the color swatch area, and allowing BITS to convert the chosen color into HEX.

The programmer will enjoy the ability to convert HEX to DECIMAL, and to perform operations on the numeric value. The programmer may click on the check box representing the bits, enter the number directly, or perform operations such as shifting.


Copyright
  BITS is copyrighted by

John L Collicott
1468 Nebraska Street
Blair, NE 68008

My name may not be removed from the application, nor may any of the files associated with BITS be modified in any way without my written approval, except to delete them from you machine or storage medium.

BITS may not be sold or distributed as part of any commercial application or package without my written permission. Please refer to the distribution information in this same document.


Disclaimer
  The BITS user must agree not to hold me, John L Collicott, responsible for any damage or loss that might result from using BITS, or from any values produced by BITS.

If you agree to relieve me from any liability involved in any way with the use of BITS, then you are granted free usage of the application.


Distribution
  I encourage distribution of BITS. The application is intended to be a freeware program, and as such it may not be sold individually or as part of a package without my written permission.

This file, BITS.HTML, must accompany BITS.EXE.

I do authorize distribution of BITS from any bulletin board, web or ftp site. This includes shareware distributors, intranet and Internet downloads or packaging with other products, as long as there is no charge for BITS or the package it is being distributed with.

Exceptions:

  • A charge covering the cost of a diskette or cd, and the shipping expenses of distributing BITS as long as the total cost does not exceed $5.00. Any value greater than $5.00 requires written permission from me for distribution.
  • Under the terms of a written agreement between myself, John L Collicott, and the named distributor.
  • No one profit from the sale of BITS, without written permission from me.

  • Registration
      There is no registration fee or cost associated with using BITS. I get a kick out of thinking that my stuff might be used by thousands of people.

    I would appreciate your signing my guest book at http://www.collicott.net/john/programming/bits.htm. I promise not to harass you, but I might send you a note if I upgrade BITS, and think you might want to know.

    At the very least, send me e-mail at john@collicott.net.



      Hex Controls Tab Section


    Hex Controls
      The Hex Controls tab contains the controls from the original Bits! application.
    These controls represent the various ways that a 32-bit value may be modified.
    Each bit is represented by a check box that is turned on or off by the user or the changing values.

    Full Hex Value
      The default setting shows only 6 digits in the Hex Entry field. For those who want to see all 8 digits, check this box.

    Netscape Colors
      The older Netscape browsers represented a more limited set of 216 colors.
    Using this button will modify the current value to bring it to the nearest value in that 216 color range.

    Clipboard
      Copies the current value in the Hex Entry field into the clipboard.

    Bit Boxes 1-32
      Each of these check boxes represents a bit in a 32-bit value. Each byte is represented by 8 bits, making 32 bits equivalent to 4 bytes.

    Each bit may be turned on or off by checking the box. As you do so, the HEX, DECIMAL and RGB values will change. Likewise, if you change the HEX, DECIMAL or RGB value, or perform any operations on the current value the bit check boxes will reflect that change in value.

    As a side note, don't forget that your machine has a big endian and little endian. If you don't know what that is, it will make a good homework project.

    Note: If the boxes 25-32 have not been checked, then the HEX value will be 6 digits instead of the possible 8. This was done specifically for those who will use this application for HTML work; making it easier to copy the HEX value into the clipboard.


    Color Swatch
      The small color swatch in the lower left corner represents the RGB color of the current value. Only 24 bits are relevant for this purpose, so don't be surprised if nothing changes if you check the bits 25-32.

    Clicking on the swatch will open a color pick dialog. Choose any color and select OK, to use the color in BITS. The RGB value and the HEX value will be immediately reflected.

    As a new feature, BITS now retains the last RGB value between uses. This makes it nice if you forgot or lost the value that you spent time getting just right.


    Red
      Enter the red value of the RGB color here. After entering all three values, click on the rgb button to update the color swatch and HEX display.

    Changes made anywhere else within BITS may be reflected in a new value in this field.


    Green
      Enter the green value of the RGB color here. After entering all three values, click on the rgb button to update the color swatch and HEX display.

    Changes made anywhere else within BITS may be reflected in a new value in this field.


    Blue
      Enter the blue value of the RGB color here. After entering all three values, click on the rgb button to update the color swatch and HEX display.

    Changes made anywhere else within BITS may be reflected in a new value in this field.


    RGB
      After entering all three values (red,green,blue), click on the rgb button to update the color swatch and HEX display.

    Hex Entry Box
      Enter a hexadecimal value to convert into this field. Press the Hex button to convert.

    Note: I do not perform much error checking, so if you put in a value that is not a hexadecimal (base 16) value, don't blame me for undefined conversion values being displayed.


    Hex
      Press this button to convert the value in the Hex Entry Box into RGB and decimal, and to see the bit representation in the check boxes.

    Decimal Entry Box
      Enter a decimal value to convert into this field. Press the Dec button to convert.

    Note: I do not perform much error checking, so if you put in a value that is not a decimal (base 10) value, don't blame me for undefined conversion values being displayed.


    Dec
      Press this button to convert the value in the Decimal Entry Box into RGB and hexadecimal, and to see the bit representation in the check boxes.

    All
      Pressing this button will turn on all of the bit check boxes and reflect that value in all other fields.

    Clr
      Pressing this button will turn off all of the bit check boxes and reflect that value in all other fields.

    <<
      Pressing this button will shift values one bit to the left, and reflect that value in all other fields.

    >>
      Pressing this button will shift values one bit to the right, and reflect that value in all other fields.

    ~
      The NOT button reverses the current value of each bit, and reflects that value in all other fields.

    &
      The AND button uses the value in the Number Entry field to modify the value of the currently checked bit boxes, and reflects that value in all other fields.
    In situations where the current value and the value in Number Entry both have bits turned on, the check boxes are on. All other boxes are turned off.

    |
      The OR button uses the value in the Number Entry field to modify the value of the currently checked bit boxes, and reflects that value in all other fields.
    In situations where either the current value or the value in Number Entry have bits turned on, the check boxes are on. All other boxes are turned off.

    ^
      The XOR button uses the value in the Number Entry field to modify the value of the currently checked bit boxes, and reflects that value in all other fields.
    Only the bits shared by both the current value and the value in Number Entry are affected. If only one value has bits turned on, then the result is on. If both have bits turned on, then the result is off. All other boxes are not affected.

    Number Entry
      Put a decimal or hexadecimal (prefix hex with 0x) into this field for use with the AND, OR and XOR buttons.

    Note: I do not perform much error checking, so if you put in a value that is not a hexadecimal (base 16) or decimal (base 10) value, don't blame me for undefined conversion values being displayed.



      Image HTML Tab Section


    Image HTML Tab
      The Image HTML Tab contains the controls that allow you to pick an image from a list, and have the HTML <img&rt; tag created for you.

    Image List
      The list of images in the current directory. Pick from this list to create an <img> tag for the selected image.

    Subfolder Entry
      Utilize this field to add a subfolder to the image name when the <img> tag is created. The Use default URL checkbox must be set.

    Use default URL
      Set this checkbox on to include the subfolder in the <img> tag.

    Browse Button
      Click to browse folders on your computer

    Image Directory
      The directory containing the images displayed in the Image List box.

    HTML Img Tag
      This field contains an image tag that can be pasted into an HTML document.
    Use the subfolder field and Use default URL checkbox to add a subfolder value to the tag location.


      Image Batch Tab Section



    Image Batch Tab
      The Image Batch Tab contains controls that allow you to generate a number of different formats and paste them into the clipboard.
    Options for formatting include html, tab delimited, comma separated, and name only.

    Image List With Properties
      The list of images in the current directory. Images in this list display width and height values. When the clipboard button is pressed, the images in this list are pasted into the clipboard. Select the types of images to include using the checkboxes representing each type.

    Formatting for the output is determined by the other options available on this tab.

    Pixels Wide
      When the HTML option is selected, <img> tags are generated and placed on the clipboard with a width of 70 pixels if this checkbox is selected.

    Image Count
      Displays a total count of the images in the Image List box.

    Browse Button
      Click to browse folders on your computer

    HTML Output
      When the clipboard button is pressed, HTML tags for all selected images will be placed on the clipboard.
    Each item will have a normal img tag unless the 70 Pixels Wide checkbox has been set.
    Six images per row will be generated in the HTML output.

    Tabbed Output
      When the clipboard button is pressed, tab delimited rows of the images with their widths and heights will be placed on the clipboard.

    Comma separated Ouput
      When the clipboard button is pressed, comma separated delimited rows of the images with their widths and heights will be placed on the clipboard.

    Name only Output
      When the clipboard button is pressed, rows will be created containing only the image names. These rows will be placed on the clipboard.

    BMP
      Check this box to include BMP files in the listing and output.

    GIF
      Check this box to include GIF files in the listing and output.

    JPG
      Check this box to include JPG files in the listing and output.

    PNG
      Check this box to include PNG files in the listing and output.