0N/A<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
0N/A<html>
0N/A<head>
0N/A<!--
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/A
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/A
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/A
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.
0N/A
2365N/APlease contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2365N/Aor visit www.oracle.com if you need additional information or have any
2365N/Aquestions.
0N/A-->
0N/A
0N/A<title>BMP Metadata Format Specification</title>
0N/A</head>
0N/A
0N/A<body>
0N/A<center><h1>
0N/ABMP Metadata Format Specification
0N/A</h1></center>
0N/A
0N/AThe XML schema for the native image metadata format is as follows:
0N/A
0N/A<pre>
0N/A&lt;?xml version="1.0" encoding="UTF-8"?&gt;
0N/A
0N/A&lt;!-- Schema for BMP native image metadata format. --&gt;
0N/A
0N/A&lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
0N/A xmlns="http://javax.imageio.plugins"
0N/A targetNamespace="http://javax.imageio.plugins"&gt;
0N/A
0N/A &lt;!-- Coordinates of a point in the CIE XYZ color space. --&gt;
0N/A &lt;xsd:complexType name="XYZPoint"&gt;
0N/A &lt;xsd:sequence&gt;
0N/A &lt;xsd:element name="X" type="xsd:double"/&gt;
0N/A &lt;xsd:element name="Y" type="xsd:double"/&gt;
0N/A &lt;xsd:element name="Z" type="xsd:double"/&gt;
0N/A &lt;/xsd:sequence&gt;
0N/A &lt;/xsd:complexType&gt;
0N/A
0N/A &lt;!-- BMP Schema 1.0 root element. --&gt;
0N/A &lt;xsd:element name="javax_imageio_bmp_1.0"&gt;
0N/A &lt;xsd:complexType&gt;
0N/A &lt;xsd:sequence&gt;
0N/A
0N/A &lt;!-- BMP version string --&gt;
0N/A &lt;xsd:element name="BMPVersion" type="xsd:string"/&gt;
0N/A
0N/A &lt;!-- Bitmap width --&gt;
0N/A &lt;xsd:element name="Width" type="xsd:unsignedInt"/&gt;
0N/A
0N/A &lt;!-- Bitmap height --&gt;
0N/A &lt;xsd:element name="Height" type="xsd:unsignedInt"/&gt;
0N/A
0N/A &lt;!-- Number of bits per pixel --&gt;
0N/A &lt;xsd:element name="BitsPerPixel" type="xsd:unsignedShort"/&gt;
0N/A
0N/A &lt;!-- Compression type --&gt;
0N/A &lt;xsd:element name="Compression" type="xsd:unsignedInt" minOccurs="0"/&gt;
0N/A
0N/A &lt;!-- Image size in bytes --&gt;
0N/A &lt;xsd:element name="ImageSize" type="xsd:unsignedInt" minOccurs="0"/&gt;
0N/A
0N/A &lt;!-- Resolution in pixels per unit distance --&gt;
0N/A &lt;xsd:element name="PixelsPerMeter" minOccurs="0"&gt;
0N/A &lt;xsd:complexType&gt;
0N/A &lt;xsd:sequence&gt;
0N/A &lt;xsd:element name="X" type="xsd:unsignedInt"/&gt;
0N/A &lt;xsd:element name="Y" type="xsd:unsignedInt"/&gt;
0N/A &lt;/xsd:sequence&gt;
0N/A &lt;/xsd:complexType&gt;
0N/A &lt;/xsd:element&gt; &lt;!-- PixelsPerMeter --&gt;
0N/A
0N/A
0N/A &lt;!-- Number of color indexes in the color table actually used --&gt;
0N/A &lt;xsd:element name="ColorsUsed" type="xsd:unsignedInt" minOccurs="0"/&gt;
0N/A
0N/A &lt;!-- Number of color indexes considered important for display --&gt;
0N/A &lt;xsd:element name="ColorsImportant" type="xsd:unsignedInt"
0N/A minOccurs="0"/&gt;
0N/A
0N/A &lt;!-- Color masks; present for BI_BITFIELDS compression only --&gt;
0N/A &lt;xsd:element name="Mask" minOccurs="0"&gt;
0N/A &lt;xsd:complexType&gt;
0N/A &lt;xsd:sequence&gt;
0N/A &lt;xsd:element name="Red" type="xsd:unsignedInt"/&gt;
0N/A &lt;xsd:element name="Green" type="xsd:unsignedInt"/&gt;
0N/A &lt;xsd:element name="Blue" type="xsd:unsignedInt"/&gt;
0N/A &lt;xsd:element name="Alpha" type="xsd:unsignedInt" minOccurs="0"/&gt;
0N/A &lt;/xsd:sequence&gt;
0N/A &lt;/xsd:complexType&gt;
0N/A &lt;/xsd:element&gt;
0N/A
0N/A &lt;!-- Color space --&gt;
0N/A &lt;xsd:element name="ColorSpaceType" type="xsd:unsignedInt"
0N/A minOccurs="0"/&gt;
0N/A
0N/A &lt;!-- CIE XYZ for the LCS_CALIBRATED_RGB color space --&gt;
0N/A &lt;xsd:element name="CIEXYZEndpoints" minOccurs="0"&gt;
0N/A &lt;xsd:complexType&gt;
0N/A &lt;xsd:sequence&gt;
0N/A &lt;xsd:element name="Red" type="XYZPoint"/&gt;
0N/A &lt;xsd:element name="Green" type="XYZPoint"/&gt;
0N/A &lt;xsd:element name="Blue" type="XYZPoint"/&gt;
0N/A &lt;/xsd:sequence&gt;
0N/A &lt;/xsd:complexType&gt;
0N/A &lt;/xsd:element&gt;
0N/A
0N/A &lt;!-- Gamma values for the LCS_CALIBRATED_RGB color space --&gt;
0N/A &lt;xsd:element name="Gamma" minOccurs="0"&gt;
0N/A &lt;xsd:complexType&gt;
0N/A &lt;xsd:sequence&gt;
0N/A &lt;xsd:element name="Red" type="xsd:unsignedInt"/&gt;
0N/A &lt;xsd:element name="Green" type="xsd:unsignedInt"/&gt;
0N/A &lt;xsd:element name="Blue" type="xsd:unsignedInt"/&gt;
0N/A &lt;/xsd:sequence&gt;
0N/A &lt;/xsd:complexType&gt;
0N/A &lt;/xsd:element&gt;
0N/A
0N/A &lt;!-- Rendering intent --&gt;
0N/A &lt;xsd:element name="Intent" type="xsd:unsignedInt" minOccurs="0"/&gt;
0N/A
0N/A &lt;!-- The image colormap --&gt;
0N/A &lt;xsd:element name="Palette" minOccurs="0"&gt;
0N/A &lt;xsd:complexType&gt;
0N/A &lt;xsd:sequence&gt;
0N/A &lt;xsd:element name="PaletteEntry"&gt;
0N/A &lt;xsd:complexType&gt;
0N/A &lt;xsd:sequence&gt;
0N/A &lt;xsd:element name="Red" type="xsd:unsignedByte"/&gt;
0N/A &lt;xsd:element name="Green" type="xsd:unsignedByte"/&gt;
0N/A &lt;xsd:element name="Blue" type="xsd:unsignedByte"/&gt;
0N/A &lt;xsd:element name="Alpha" type="xsd:unsignedByte" minOccurs="0"/&gt;
0N/A &lt;/xsd:sequence&gt;
0N/A &lt;/xsd:complexType&gt;
0N/A &lt;/xsd:element&gt;
0N/A &lt;/xsd:sequence&gt;
0N/A &lt;/xsd:complexType&gt;
0N/A &lt;/xsd:element&gt;
0N/A
0N/A &lt;/xsd:sequence&gt;
0N/A &lt;/xsd:complexType&gt;
0N/A &lt;/xsd:element&gt; &lt;!-- bmp_image_1.0 --&gt;
0N/A
0N/A&lt;/xsd:schema&gt;
0N/A</pre>
0N/A
0N/A@since 1.5
0N/A
0N/A</body>