• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Using a Palette Index

You will frequently be concerned with keeping file size to a minimum to help reduce download time for Shockwave files. In earlier versions of Director, this was often accomplished by reducing the bit depth of an image. Just as importing a 32-bit image as an 8-bit image reduces file size, so too would transforming an 8-bit black-and-white image to 1-bit. Now, with better compression techniques, what is more important is the number of colors used. An 8-bit black-and-white image will now compress to almost the same size as a 1-bit image, but a 1-bit image will require additional processing time as the image is converted back up to 8-bit for display. So the current standard is to reduce the number of colors in an 8-bit image whenever possible instead of reducing the bit depth.

In this next task, you will be placing cast member 5 on the stage as an orange line. The end result will be a sprite with a single color, so there is no need to have more than one color included in the cast member. Most paint programs provide a means of reducing the number of colors used in an image, but you will use the Paint window supplied with Director. In the process, you will learn about the palette index numbers used for palettes.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint