KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > sun > imageio > plugins > bmp > BMPMetadataFormatResources


1 /*
2  * @(#)BMPMetadataFormatResources.java 1.3 05/08/23 13:57:55
3  *
4  * Copyright 2004 Sun Microsystems, Inc. All rights reserved.
5  * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
6  */

7
8 package com.sun.imageio.plugins.bmp;
9
10 import java.util.ListResourceBundle JavaDoc;
11 import javax.imageio.metadata.IIOMetadataFormat JavaDoc;
12 import javax.imageio.metadata.IIOMetadataFormatImpl JavaDoc;
13
14 public class BMPMetadataFormatResources extends ListResourceBundle JavaDoc {
15
16     public BMPMetadataFormatResources() {}
17
18     protected Object JavaDoc[][] getContents() {
19         return new Object JavaDoc[][] {
20
21         // Node name, followed by description
22
{ "BMPVersion", "BMP version string" },
23         { "Width", "The width of the image" },
24         { "Height","The height of the image" },
25         { "BitsPerPixel", "" },
26     { "PixelsPerMeter", "Resolution in pixels per unit distance" },
27     { "X", "Pixels Per Meter along X" },
28     { "Y", "Pixels Per Meter along Y" },
29     { "ColorsUsed",
30       "Number of color indexes in the color table actually used" },
31     { "ColorsImportant",
32       "Number of color indexes considered important for display" },
33     { "Mask",
34       "Color masks; present for BI_BITFIELDS compression only"},
35
36     { "Intent", "Rendering intent" },
37     { "Palette", "The color palette" },
38
39     { "Red", "Red Mask/Color Palette" },
40     { "Green", "Green Mask/Color Palette/Gamma" },
41     { "Blue", "Blue Mask/Color Palette/Gamma" },
42     { "Alpha", "Alpha Mask/Color Palette/Gamma" },
43
44     { "ColorSpaceType", "Color Space Type" },
45
46     { "X", "The X coordinate of a point in XYZ color space" },
47     { "Y", "The Y coordinate of a point in XYZ color space" },
48     { "Z", "The Z coordinate of a point in XYZ color space" },
49         };
50     }
51 }
52
Popular Tags