Skip navigation links

Package io.scif.media.imageio.plugins.pnm

Package containing the public classes used by the Sun PNM plug-in for the Image I/O Framework.

See: Description

Package io.scif.media.imageio.plugins.pnm Description

Package containing the public classes used by the Sun PNM plug-in for the Image I/O Framework.

Image Metadata

The XML schema for the native image metadata format is as follows:
<?xml version="1.0" encoding="UTF-8"?>

<!-- Schema for PNM native image metadata format. -->

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            xmlns="http://io.scif.media.imageio.plugins"
            targetNamespace="http://io.scif.media.imageio.plugins">

  <xsd:element name="com_sun_media_imageio_plugins_pnm_image_1.0">
    <xsd:complexType>
      <xsd:sequence>

        <!-- The specific format name -->
        <xsd:element name="FormatName">
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="PBM"/>
              <xsd:enumeration value="PGM"/>
              <xsd:enumeration value="PPM"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element> <!-- FormatName -->

        <!-- The variant -->
        <xsd:element name="Variant">
          <xsd:simpleType>
            <xsd:restriction base="xsd:string">
              <xsd:enumeration value="ASCII"/>
              <xsd:enumeration value="RAWBITS"/>
            </xsd:restriction>
          </xsd:simpleType>
        </xsd:element> <!-- Variant -->

        <!-- Image width -->
        <xsd:element name="Width" type="xsd:unsignedInt"/>

        <!-- Image height -->
        <xsd:element name="Height" type="xsd:unsignedInt"/>

        <!-- The maximum sample value (PGM and PPM only) -->
        <xsd:element name="MaximumSample" type="xsd:unsignedByte"
                     minOccurs="0"/>

        <!-- Comment block(s) if present -->
        <xsd:element name="Comment" type="xsd:string"
                     minOccurs="0" maxOccurs="unbounded"/>

      </xsd:sequence>
    </xsd:complexType>
  </xsd:element> <!-- pnm_image_1.0 -->

</xsd:schema>

Since:
1.0
Skip navigation links

Copyright © 2015–2022 SCIFIO. All rights reserved.