0N/A<!
DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
2362N/ACopyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 0N/ADO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/AThis code is free software; you can redistribute it and/or modify it 0N/Aunder the terms of the GNU General Public License version 2 only, as 2362N/Apublished by the Free Software Foundation. Oracle designates this 0N/Aparticular file as subject to the "Classpath" exception as provided 2362N/Aby Oracle in the LICENSE file that accompanied this code. 0N/AThis code is distributed in the hope that it will be useful, but WITHOUT 0N/AANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/AFITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/Aversion 2 for more details (a copy is included in the LICENSE file that 0N/Aaccompanied this code). 0N/AYou should have received a copy of the GNU General Public License version 0N/A2 along with this work; if not, write to the Free Software Foundation, 0N/AInc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2365N/APlease contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 0N/A<
title>BMP Metadata Format Specification</
title>
0N/ABMP Metadata Format Specification
0N/AThe XML schema for the native image metadata format is as follows:
0N/A<?xml version="1.0" encoding="UTF-8"?>
0N/A<!-- Schema for BMP native image metadata format. -->
0N/A <!-- Coordinates of a point in the CIE XYZ color space. -->
0N/A <xsd:complexType name="XYZPoint">
0N/A <xsd:sequence>
0N/A <xsd:element name="X" type="xsd:double"/>
0N/A <xsd:element name="Y" type="xsd:double"/>
0N/A <xsd:element name="Z" type="xsd:double"/>
0N/A </xsd:sequence>
0N/A </xsd:complexType>
0N/A <!-- BMP Schema 1.0 root element. -->
0N/A <xsd:element name="javax_imageio_bmp_1.0">
0N/A <xsd:complexType>
0N/A <xsd:sequence>
0N/A <!-- BMP version string -->
0N/A <xsd:element name="BMPVersion" type="xsd:string"/>
0N/A <!-- Bitmap width -->
0N/A <xsd:element name="Width" type="xsd:unsignedInt"/>
0N/A <!-- Bitmap height -->
0N/A <xsd:element name="Height" type="xsd:unsignedInt"/>
0N/A <!-- Number of bits per pixel -->
0N/A <xsd:element name="BitsPerPixel" type="xsd:unsignedShort"/>
0N/A <!-- Compression type -->
0N/A <xsd:element name="Compression" type="xsd:unsignedInt" minOccurs="0"/>
0N/A <!-- Image size in bytes -->
0N/A <xsd:element name="ImageSize" type="xsd:unsignedInt" minOccurs="0"/>
0N/A <!-- Resolution in pixels per unit distance -->
0N/A <xsd:element name="PixelsPerMeter" minOccurs="0">
0N/A <xsd:complexType>
0N/A <xsd:sequence>
0N/A <xsd:element name="X" type="xsd:unsignedInt"/>
0N/A <xsd:element name="Y" type="xsd:unsignedInt"/>
0N/A </xsd:sequence>
0N/A </xsd:complexType>
0N/A </xsd:element> <!-- PixelsPerMeter -->
0N/A <!-- Number of color indexes in the color table actually used -->
0N/A <xsd:element name="ColorsUsed" type="xsd:unsignedInt" minOccurs="0"/>
0N/A <!-- Number of color indexes considered important for display -->
0N/A <xsd:element name="ColorsImportant" type="xsd:unsignedInt"
0N/A <!-- Color masks; present for BI_BITFIELDS compression only -->
0N/A <xsd:element name="Mask" minOccurs="0">
0N/A <xsd:complexType>
0N/A <xsd:sequence>
0N/A <xsd:element name="Red" type="xsd:unsignedInt"/>
0N/A <xsd:element name="Green" type="xsd:unsignedInt"/>
0N/A <xsd:element name="Blue" type="xsd:unsignedInt"/>
0N/A <xsd:element name="Alpha" type="xsd:unsignedInt" minOccurs="0"/>
0N/A </xsd:sequence>
0N/A </xsd:complexType>
0N/A </xsd:element>
0N/A <!-- Color space -->
0N/A <xsd:element name="ColorSpaceType" type="xsd:unsignedInt"
0N/A <!-- CIE XYZ for the LCS_CALIBRATED_RGB color space -->
0N/A <xsd:element name="CIEXYZEndpoints" minOccurs="0">
0N/A <xsd:complexType>
0N/A <xsd:sequence>
0N/A <xsd:element name="Red" type="XYZPoint"/>
0N/A <xsd:element name="Green" type="XYZPoint"/>
0N/A <xsd:element name="Blue" type="XYZPoint"/>
0N/A </xsd:sequence>
0N/A </xsd:complexType>
0N/A </xsd:element>
0N/A <!-- Gamma values for the LCS_CALIBRATED_RGB color space -->
0N/A <xsd:element name="Gamma" minOccurs="0">
0N/A <xsd:complexType>
0N/A <xsd:sequence>
0N/A <xsd:element name="Red" type="xsd:unsignedInt"/>
0N/A <xsd:element name="Green" type="xsd:unsignedInt"/>
0N/A <xsd:element name="Blue" type="xsd:unsignedInt"/>
0N/A </xsd:sequence>
0N/A </xsd:complexType>
0N/A </xsd:element>
0N/A <!-- Rendering intent -->
0N/A <xsd:element name="Intent" type="xsd:unsignedInt" minOccurs="0"/>
0N/A <!-- The image colormap -->
0N/A <xsd:element name="Palette" minOccurs="0">
0N/A <xsd:complexType>
0N/A <xsd:sequence>
0N/A <xsd:element name="PaletteEntry">
0N/A <xsd:complexType>
0N/A <xsd:sequence>
0N/A <xsd:element name="Red" type="xsd:unsignedByte"/>
0N/A <xsd:element name="Green" type="xsd:unsignedByte"/>
0N/A <xsd:element name="Blue" type="xsd:unsignedByte"/>
0N/A <xsd:element name="Alpha" type="xsd:unsignedByte" minOccurs="0"/>
0N/A </xsd:sequence>
0N/A </xsd:complexType>
0N/A </xsd:element>
0N/A </xsd:sequence>
0N/A </xsd:complexType>
0N/A </xsd:element>
0N/A </xsd:sequence>
0N/A </xsd:complexType>
0N/A </xsd:element> <!-- bmp_image_1.0 -->