166 lines · 6.2 KB · HTML
RawDownload
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"><html><head><!--Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved.DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. This code is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License version 2 only, aspublished by the Free Software Foundation.  Oracle designates thisparticular file as subject to the "Classpath" exception as providedby Oracle in the LICENSE file that accompanied this code. This code is distributed in the hope that it will be useful, but WITHOUTANY WARRANTY; without even the implied warranty of MERCHANTABILITY orFITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public Licenseversion 2 for more details (a copy is included in the LICENSE file thataccompanied this code). You should have received a copy of the GNU General Public License version2 along with this work; if not, write to the Free Software Foundation,Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USAor visit www.oracle.com if you need additional information or have anyquestions.--> <title>BMP Metadata Format Specification</title></head> <body><center><h1>BMP Metadata Format Specification</h1></center> The XML schema for the native image metadata format is as follows: <pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt; &lt;!-- Schema for BMP native image metadata format. --&gt; &lt;xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"            xmlns="http://javax.imageio.plugins"            targetNamespace="http://javax.imageio.plugins"&gt;   &lt;!-- Coordinates of a point in the CIE XYZ color space. --&gt;  &lt;xsd:complexType name="XYZPoint"&gt;    &lt;xsd:sequence&gt;      &lt;xsd:element name="X" type="xsd:double"/&gt;      &lt;xsd:element name="Y" type="xsd:double"/&gt;      &lt;xsd:element name="Z" type="xsd:double"/&gt;    &lt;/xsd:sequence&gt;  &lt;/xsd:complexType&gt;   &lt;!-- BMP Schema 1.0 root element. --&gt;  &lt;xsd:element name="javax_imageio_bmp_1.0"&gt;    &lt;xsd:complexType&gt;      &lt;xsd:sequence&gt;         &lt;!-- BMP version string --&gt;        &lt;xsd:element name="BMPVersion" type="xsd:string"/&gt;         &lt;!-- Bitmap width --&gt;        &lt;xsd:element name="Width" type="xsd:unsignedInt"/&gt;         &lt;!-- Bitmap height --&gt;        &lt;xsd:element name="Height" type="xsd:unsignedInt"/&gt;         &lt;!-- Number of bits per pixel --&gt;        &lt;xsd:element name="BitsPerPixel" type="xsd:unsignedShort"/&gt;         &lt;!-- Compression type --&gt;        &lt;xsd:element name="Compression" type="xsd:unsignedInt" minOccurs="0"/&gt;         &lt;!-- Image size in bytes --&gt;        &lt;xsd:element name="ImageSize" type="xsd:unsignedInt" minOccurs="0"/&gt; 	&lt;!-- Resolution in pixels per unit distance --&gt;        &lt;xsd:element name="PixelsPerMeter" minOccurs="0"&gt;	  &lt;xsd:complexType&gt;            &lt;xsd:sequence&gt;              &lt;xsd:element name="X" type="xsd:unsignedInt"/&gt;              &lt;xsd:element name="Y" type="xsd:unsignedInt"/&gt;            &lt;/xsd:sequence&gt;	  &lt;/xsd:complexType&gt;        &lt;/xsd:element&gt; &lt;!-- PixelsPerMeter --&gt;  	&lt;!-- Number of color indexes in the color table actually used --&gt;        &lt;xsd:element name="ColorsUsed" type="xsd:unsignedInt" minOccurs="0"/&gt; 	&lt;!-- Number of color indexes considered important for display --&gt;        &lt;xsd:element name="ColorsImportant" type="xsd:unsignedInt"		     minOccurs="0"/&gt; 	&lt;!-- Color masks; present for BI_BITFIELDS compression only --&gt;        &lt;xsd:element name="Mask" minOccurs="0"&gt;	  &lt;xsd:complexType&gt;            &lt;xsd:sequence&gt;              &lt;xsd:element name="Red" type="xsd:unsignedInt"/&gt;              &lt;xsd:element name="Green" type="xsd:unsignedInt"/&gt;              &lt;xsd:element name="Blue" type="xsd:unsignedInt"/&gt;              &lt;xsd:element name="Alpha" type="xsd:unsignedInt" minOccurs="0"/&gt;            &lt;/xsd:sequence&gt;	  &lt;/xsd:complexType&gt;	&lt;/xsd:element&gt;         &lt;!-- Color space  --&gt;        &lt;xsd:element name="ColorSpaceType" type="xsd:unsignedInt" 		     minOccurs="0"/&gt; 	&lt;!-- CIE XYZ for the LCS_CALIBRATED_RGB color space --&gt;        &lt;xsd:element name="CIEXYZEndpoints" minOccurs="0"&gt;	  &lt;xsd:complexType&gt;            &lt;xsd:sequence&gt;              &lt;xsd:element name="Red" type="XYZPoint"/&gt;              &lt;xsd:element name="Green" type="XYZPoint"/&gt;              &lt;xsd:element name="Blue" type="XYZPoint"/&gt;            &lt;/xsd:sequence&gt;	  &lt;/xsd:complexType&gt;        &lt;/xsd:element&gt; 	&lt;!-- Gamma values for the LCS_CALIBRATED_RGB color space --&gt;        &lt;xsd:element name="Gamma" minOccurs="0"&gt;	  &lt;xsd:complexType&gt;            &lt;xsd:sequence&gt;              &lt;xsd:element name="Red" type="xsd:unsignedInt"/&gt;              &lt;xsd:element name="Green" type="xsd:unsignedInt"/&gt;              &lt;xsd:element name="Blue" type="xsd:unsignedInt"/&gt;            &lt;/xsd:sequence&gt;	  &lt;/xsd:complexType&gt;	&lt;/xsd:element&gt; 	&lt;!-- Rendering intent --&gt;        &lt;xsd:element name="Intent" type="xsd:unsignedInt" minOccurs="0"/&gt; 	&lt;!-- The image colormap --&gt;        &lt;xsd:element name="Palette" minOccurs="0"&gt;	  &lt;xsd:complexType&gt;            &lt;xsd:sequence&gt;              &lt;xsd:element name="PaletteEntry"&gt;	        &lt;xsd:complexType&gt;                  &lt;xsd:sequence&gt;                    &lt;xsd:element name="Red" type="xsd:unsignedByte"/&gt;                    &lt;xsd:element name="Green" type="xsd:unsignedByte"/&gt;                    &lt;xsd:element name="Blue" type="xsd:unsignedByte"/&gt;                    &lt;xsd:element name="Alpha" type="xsd:unsignedByte" minOccurs="0"/&gt;                  &lt;/xsd:sequence&gt;	        &lt;/xsd:complexType&gt;              &lt;/xsd:element&gt;            &lt;/xsd:sequence&gt;	  &lt;/xsd:complexType&gt;	&lt;/xsd:element&gt;       &lt;/xsd:sequence&gt;    &lt;/xsd:complexType&gt;  &lt;/xsd:element&gt; &lt;!-- bmp_image_1.0 --&gt; &lt;/xsd:schema&gt;</pre> @since 1.5 </body>

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t