src/share/classes/com/sun/imageio/plugins/bmp/BMPMetadata.java

Print this page
rev 9230 : imported patch 8033716


  76     public double blueX;
  77     public double blueY;
  78     public double blueZ;
  79 
  80     // Fields for Gamma values for the LCS_CALIBRATED_RGB color space
  81     public int gammaRed;
  82     public int gammaGreen;
  83     public int gammaBlue;
  84 
  85     public int intent;
  86 
  87     // Fields for the Palette and Entries
  88     public byte[] palette = null;
  89     public int paletteSize;
  90     public int red;
  91     public int green;
  92     public int blue;
  93 
  94     // Fields from CommentExtension
  95     // List of byte[]
  96     public List comments = null; // new ArrayList();
  97 
  98     public BMPMetadata() {
  99         super(true,
 100               nativeMetadataFormatName,
 101               "com.sun.imageio.plugins.bmp.BMPMetadataFormat",
 102               null, null);
 103     }
 104 
 105     public boolean isReadOnly() {
 106         return true;
 107     }
 108 
 109     public Node getAsTree(String formatName) {
 110         if (formatName.equals(nativeMetadataFormatName)) {
 111             return getNativeTree();
 112         } else if (formatName.equals
 113                    (IIOMetadataFormatImpl.standardMetadataFormatName)) {
 114             return getStandardTree();
 115         } else {
 116             throw new IllegalArgumentException(I18N.getString("BMPMetadata0"));




  76     public double blueX;
  77     public double blueY;
  78     public double blueZ;
  79 
  80     // Fields for Gamma values for the LCS_CALIBRATED_RGB color space
  81     public int gammaRed;
  82     public int gammaGreen;
  83     public int gammaBlue;
  84 
  85     public int intent;
  86 
  87     // Fields for the Palette and Entries
  88     public byte[] palette = null;
  89     public int paletteSize;
  90     public int red;
  91     public int green;
  92     public int blue;
  93 
  94     // Fields from CommentExtension
  95     // List of byte[]
  96     public List<byte[]> comments = null; // new ArrayList();
  97 
  98     public BMPMetadata() {
  99         super(true,
 100               nativeMetadataFormatName,
 101               "com.sun.imageio.plugins.bmp.BMPMetadataFormat",
 102               null, null);
 103     }
 104 
 105     public boolean isReadOnly() {
 106         return true;
 107     }
 108 
 109     public Node getAsTree(String formatName) {
 110         if (formatName.equals(nativeMetadataFormatName)) {
 111             return getNativeTree();
 112         } else if (formatName.equals
 113                    (IIOMetadataFormatImpl.standardMetadataFormatName)) {
 114             return getStandardTree();
 115         } else {
 116             throw new IllegalArgumentException(I18N.getString("BMPMetadata0"));