1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
   2 <html>
   3 <head>



   4 <!--
   5 Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.
   6 DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   7 
   8 This code is free software; you can redistribute it and/or modify it
   9 under the terms of the GNU General Public License version 2 only, as
  10 published by the Free Software Foundation.  Oracle designates this
  11 particular file as subject to the "Classpath" exception as provided
  12 by Oracle in the LICENSE file that accompanied this code.
  13 
  14 This code is distributed in the hope that it will be useful, but WITHOUT
  15 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  16 FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  17 version 2 for more details (a copy is included in the LICENSE file that
  18 accompanied this code).
  19 
  20 You should have received a copy of the GNU General Public License version
  21 2 along with this work; if not, write to the Free Software Foundation,
  22 Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  23 
  24 Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  25 or visit www.oracle.com if you need additional information or have any
  26 questions.
  27 -->
  28 
  29 <title>BMP Metadata Format Specification</title>
  30 </head>
  31 
  32 <body>
  33 <center><h1>
  34 BMP Metadata Format Specification
  35 </h1></center>
  36 
  37 The XML schema for the native image metadata format is as follows:
  38 
  39 <pre>
  40 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  41 
  42 &lt;!-- Schema for BMP native image metadata format. --&gt;
  43 
  44 &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  45             xmlns="http://javax.imageio.plugins"
  46             targetNamespace="http://javax.imageio.plugins"&gt;
  47 
  48   &lt;!-- Coordinates of a point in the CIE XYZ color space. --&gt;
  49   &lt;xsd:complexType name="XYZPoint"&gt;
  50     &lt;xsd:sequence&gt;
  51       &lt;xsd:element name="X" type="xsd:double"/&gt;
  52       &lt;xsd:element name="Y" type="xsd:double"/&gt;
  53       &lt;xsd:element name="Z" type="xsd:double"/&gt;
  54     &lt;/xsd:sequence&gt;
  55   &lt;/xsd:complexType&gt;
  56 
  57   &lt;!-- BMP Schema 1.0 root element. --&gt;
  58   &lt;xsd:element name="javax_imageio_bmp_1.0"&gt;
  59     &lt;xsd:complexType&gt;
  60       &lt;xsd:sequence&gt;
  61 
  62         &lt;!-- BMP version string --&gt;
  63         &lt;xsd:element name="BMPVersion" type="xsd:string"/&gt;
  64 
  65         &lt;!-- Bitmap width --&gt;
  66         &lt;xsd:element name="Width" type="xsd:unsignedInt"/&gt;
  67 
  68         &lt;!-- Bitmap height --&gt;
  69         &lt;xsd:element name="Height" type="xsd:unsignedInt"/&gt;
  70 
  71         &lt;!-- Number of bits per pixel --&gt;
  72         &lt;xsd:element name="BitsPerPixel" type="xsd:unsignedShort"/&gt;
  73 
  74         &lt;!-- Compression type --&gt;
  75         &lt;xsd:element name="Compression" type="xsd:unsignedInt" minOccurs="0"/&gt;
  76 
  77         &lt;!-- Image size in bytes --&gt;
  78         &lt;xsd:element name="ImageSize" type="xsd:unsignedInt" minOccurs="0"/&gt;
  79 
  80         &lt;!-- Resolution in pixels per unit distance --&gt;
  81         &lt;xsd:element name="PixelsPerMeter" minOccurs="0"&gt;
  82           &lt;xsd:complexType&gt;
  83             &lt;xsd:sequence&gt;
  84               &lt;xsd:element name="X" type="xsd:unsignedInt"/&gt;
  85               &lt;xsd:element name="Y" type="xsd:unsignedInt"/&gt;
  86             &lt;/xsd:sequence&gt;
  87           &lt;/xsd:complexType&gt;
  88         &lt;/xsd:element&gt; &lt;!-- PixelsPerMeter --&gt;
  89 
  90 
  91         &lt;!-- Number of color indexes in the color table actually used --&gt;
  92         &lt;xsd:element name="ColorsUsed" type="xsd:unsignedInt" minOccurs="0"/&gt;
  93 
  94         &lt;!-- Number of color indexes considered important for display --&gt;
  95         &lt;xsd:element name="ColorsImportant" type="xsd:unsignedInt"
  96                      minOccurs="0"/&gt;
  97 
  98         &lt;!-- Color masks; present for BI_BITFIELDS compression only --&gt;
  99         &lt;xsd:element name="Mask" minOccurs="0"&gt;
 100           &lt;xsd:complexType&gt;
 101             &lt;xsd:sequence&gt;
 102               &lt;xsd:element name="Red" type="xsd:unsignedInt"/&gt;
 103               &lt;xsd:element name="Green" type="xsd:unsignedInt"/&gt;
 104               &lt;xsd:element name="Blue" type="xsd:unsignedInt"/&gt;
 105               &lt;xsd:element name="Alpha" type="xsd:unsignedInt" minOccurs="0"/&gt;
 106             &lt;/xsd:sequence&gt;
 107           &lt;/xsd:complexType&gt;
 108         &lt;/xsd:element&gt;
 109 
 110         &lt;!-- Color space  --&gt;
 111         &lt;xsd:element name="ColorSpaceType" type="xsd:unsignedInt" 
 112                      minOccurs="0"/&gt;
 113 
 114         &lt;!-- CIE XYZ for the LCS_CALIBRATED_RGB color space --&gt;
 115         &lt;xsd:element name="CIEXYZEndpoints" minOccurs="0"&gt;
 116           &lt;xsd:complexType&gt;
 117             &lt;xsd:sequence&gt;
 118               &lt;xsd:element name="Red" type="XYZPoint"/&gt;
 119               &lt;xsd:element name="Green" type="XYZPoint"/&gt;
 120               &lt;xsd:element name="Blue" type="XYZPoint"/&gt;
 121             &lt;/xsd:sequence&gt;
 122           &lt;/xsd:complexType&gt;
 123         &lt;/xsd:element&gt;
 124 
 125         &lt;!-- Gamma values for the LCS_CALIBRATED_RGB color space --&gt;
 126         &lt;xsd:element name="Gamma" minOccurs="0"&gt;
 127           &lt;xsd:complexType&gt;
 128             &lt;xsd:sequence&gt;
 129               &lt;xsd:element name="Red" type="xsd:unsignedInt"/&gt;
 130               &lt;xsd:element name="Green" type="xsd:unsignedInt"/&gt;
 131               &lt;xsd:element name="Blue" type="xsd:unsignedInt"/&gt;
 132             &lt;/xsd:sequence&gt;
 133           &lt;/xsd:complexType&gt;
 134         &lt;/xsd:element&gt;
 135 
 136         &lt;!-- Rendering intent --&gt;
 137         &lt;xsd:element name="Intent" type="xsd:unsignedInt" minOccurs="0"/&gt;
 138 
 139         &lt;!-- The image colormap --&gt;
 140         &lt;xsd:element name="Palette" minOccurs="0"&gt;
 141           &lt;xsd:complexType&gt;
 142             &lt;xsd:sequence&gt;
 143               &lt;xsd:element name="PaletteEntry"&gt;
 144                 &lt;xsd:complexType&gt;
 145                   &lt;xsd:sequence&gt;
 146                     &lt;xsd:element name="Red" type="xsd:unsignedByte"/&gt;
 147                     &lt;xsd:element name="Green" type="xsd:unsignedByte"/&gt;
 148                     &lt;xsd:element name="Blue" type="xsd:unsignedByte"/&gt;
 149                     &lt;xsd:element name="Alpha" type="xsd:unsignedByte" minOccurs="0"/&gt;
 150                   &lt;/xsd:sequence&gt;
 151                 &lt;/xsd:complexType&gt;
 152               &lt;/xsd:element&gt;
 153             &lt;/xsd:sequence&gt;
 154           &lt;/xsd:complexType&gt;
 155         &lt;/xsd:element&gt;
 156 
 157       &lt;/xsd:sequence&gt;
 158     &lt;/xsd:complexType&gt;
 159   &lt;/xsd:element&gt; &lt;!-- bmp_image_1.0 --&gt;
 160 
 161 &lt;/xsd:schema&gt;
 162 </pre>
 163 
 164 @since 1.5
 165 
 166 </body>
--- EOF ---