J2EE Hosting Sun Java Developing Blog

Sun - Java Look and Feel Design Guidelines,

October 29th, 2006

Sun - Java Look and Feel Design Guidelines, 2nd Edition made by dotneter@teamfly Choosing Graphic File Formats You can use two graphic file formats for images on the Java platform: GIF (Graphics Interchange Format) and JPEG (named after its developers, the Joint Photographic Experts Group). GIF is the common format for application graphics in the Java look and feel. GIF files tend to be smaller on disk and in memory than JPEG files. A GIF file includes a color table (or palette) of up to 256 colors. The number of colors in the table and the complexity of the image are two factors that affect the size of the graphic file. On 8-bit systems, some of the colors specified in a GIF file will be unavailable if they are not part of the system’s current color palette. These unavailable colors will be dithered by the system. On 16-bit and 24-bit systems, more colors are available and different sets of colors can be used in different GIF files. Each GIF image, however, is still restricted to a set of 256 colors. JPEG graphics are generally better suited for photographs than for the more symbolic style of icons, button graphics, and corporate type and logos. JPEG graphics use a compression algorithm that yields varying image quality depending on the compression setting, whereas GIF graphics use lossless compression that preserves the appearance of the original 8-bit image. Choosing Colors At monitor depths greater than 8 bits, most concerns about how any particular color reproduces become less significant. Any system capable of displaying thousands (16 bits) or millions (24 bits) of colors can find a color very close to, or exactly the same as, each value defined in a given image. Newer systems typically display a minimum of thousands of colors. Since each system renders colors slightly differently, different monitors and different platforms might display the same color differently, however. For instance, a given color in one GIF file might look different to the eye from one system to another. Many older monitors or systems still display only 256 colors. For users with these systems, it might be advantageous to use colors known to exist in the system palette of the target platforms. Most platforms include a small set of “reserved” colors that are always available. Unfortunately, these reserved colors are often not useful for visual design purposes or for interface elements because they are highly saturated (the overpowering hues one might expect to find in a basic box of crayons). Furthermore, there is little overlap between the
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services

Comments are closed.