Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > a6711891ce757817bba854bf3f25205a > files > 2077

qtjambi-doc-4.3.3-3mdv2008.1.i586.rpm

<class name="QImageIOHandler" doc="/**
&lt;p&gt;The &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; class defines the common image I/O interface for all image formats in Qt.&lt;/p&gt;
&lt;p&gt;Qt uses &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; for reading and writing images through &lt;a href=&quot;QImageReader.html&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImageWriter.html&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt;. You can also derive from this class to write your own image format handler using Qt's plugin mechanism.&lt;/p&gt;
&lt;p&gt;Call &lt;a href=&quot;QImageIOHandler.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; to assign a device to the handler, and &lt;a href=&quot;QImageIOHandler.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt; to assign a format to it. One &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; may support more than one image format. &lt;a href=&quot;QImageIOHandler.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt; returns true if an image can be read from the device, and &lt;a href=&quot;QImageIOHandler.html#read(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImageIOHandler.html#write(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt; return true if reading or writing an image was completed successfully.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; also has support for animations formats, through the functions &lt;a href=&quot;QImageIOHandler.html#loopCount()&quot;&gt;&lt;tt&gt;loopCount&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QImageIOHandler.html#imageCount()&quot;&gt;&lt;tt&gt;imageCount&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QImageIOHandler.html#nextImageDelay()&quot;&gt;&lt;tt&gt;nextImageDelay&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImageIOHandler.html#currentImageNumber()&quot;&gt;&lt;tt&gt;currentImageNumber&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;In order to determine what options an image handler supports, Qt will call &lt;a href=&quot;QImageIOHandler.html#supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption)&quot;&gt;&lt;tt&gt;supportsOption&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImageIOHandler.html#setOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption, java.lang.Object)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt;. Make sure to reimplement these functions if you can provide support for any of the options in the &lt;a href=&quot;QImageIOHandler.html#ImageOption-enum&quot;&gt;&lt;tt&gt;ImageOption&lt;/tt&gt;&lt;/a&gt; enum.&lt;/p&gt;
&lt;p&gt;To write your own image handler, you must at least reimplement &lt;a href=&quot;QImageIOHandler.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImageIOHandler.html#read(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;. Then create a QImageIOPlugin that can create the handler. Finally, install your plugin, and &lt;a href=&quot;QImageReader.html&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QImageWriter.html&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; will then automatically load the plugin, and start using it.&lt;/p&gt;

@see &lt;tt&gt;QImageIOPlugin&lt;/tt&gt;
@see &lt;a href=&quot;QImageReader.html&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageWriter.html&quot;&gt;&lt;tt&gt;QImageWriter&lt;/tt&gt;&lt;/a&gt; */">
    <method name="public QImageIOHandler()" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; object.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.QIODevice device()" doc="/**
&lt;p&gt;Returns the device currently assigned to the &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt;. If not device has been assigned, 0 is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#setDevice(com.trolltech.qt.core.QIODevice)&quot;&gt;&lt;tt&gt;setDevice&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray format()" doc="/**
&lt;p&gt;Returns the format that is currently assigned to &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt;. If no format has been assigned, an empty string is returned.&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#setFormat(com.trolltech.qt.core.QByteArray)&quot;&gt;&lt;tt&gt;setFormat&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDevice(com.trolltech.qt.core.QIODevice device)" doc="/**
&lt;p&gt;Sets the device of the &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;device&lt;/tt&gt;. The image handler will use this device when reading and writing images.&lt;/p&gt;
&lt;p&gt;The device can only be set once and must be set before calling &lt;a href=&quot;QImageIOHandler.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QImageIOHandler.html#read(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QImageIOHandler.html#write(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;write&lt;/tt&gt;&lt;/a&gt;, etc. If you need to read multiple files, construct multiple instances of the appropriate &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; subclass.&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setFormat(com.trolltech.qt.core.QByteArray format)" doc="/**
&lt;p&gt;Sets the format of the &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;format&lt;/tt&gt;. The format is most useful for handlers that support multiple image formats.&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#format()&quot;&gt;&lt;tt&gt;format&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public abstract boolean canRead()" doc="/**
&lt;p&gt;Returns true if an image can be read from the device (i.e&amp;#x2e;, the image format is supported, the device can be read from and the initial header information suggests that the image can be read); otherwise returns false.&lt;/p&gt;
&lt;p&gt;When reimplementing &lt;a href=&quot;QImageIOHandler.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt;, make sure that the I/O device (&lt;a href=&quot;QImageIOHandler.html#device()&quot;&gt;&lt;tt&gt;device&lt;/tt&gt;&lt;/a&gt;) is left in its original state (e.g&amp;#x2e;, by using peek() rather than &lt;a href=&quot;QImageIOHandler.html#read(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;).&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#read(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;QIODevice::peek&lt;/tt&gt; */"/>
    <method name="public int currentImageNumber()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the sequence number of the current image in the animation. If the image format does not support animation, or if it is unable to determine the current sequence number, 0 is returned.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.core.QRect currentImageRect()" doc="/**
&lt;p&gt;Returns the rect of the current image. If no rect is defined for the image, and empty QRect() is returned.&lt;/p&gt;
&lt;p&gt;This function is useful for animations, where only parts of the frame may be updated at a time.&lt;/p&gt;
 */"/>
    <method name="public int imageCount()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the number of images in the animation. If the image format does not support animation, or if it is unable to determine the number of images, 0 is returned.&lt;/p&gt;
&lt;p&gt;The default implementation returns 1 if &lt;a href=&quot;QImageIOHandler.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt; returns true; otherwise 0 is returned.&lt;/p&gt;
 */"/>
    <method name="public boolean jumpToImage(int imageNumber)" doc="/**
&lt;p&gt;For image formats that support animation, this function jumps to the image whose sequence number is &lt;tt&gt;imageNumber&lt;/tt&gt;. The next call to &lt;a href=&quot;QImageIOHandler.html#read(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt; will attempt to read this image.&lt;/p&gt;
&lt;p&gt;The default implementation does nothing, and returns false.&lt;/p&gt;
 */"/>
    <method name="public boolean jumpToNextImage()" doc="/**
&lt;p&gt;For image formats that support animation, this function jumps to the next image.&lt;/p&gt;
&lt;p&gt;The default implementation does nothing, and returns false.&lt;/p&gt;
 */"/>
    <method name="public int loopCount()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the number of times the animation should loop. If the image format does not support animation, 0 is returned.&lt;/p&gt;
 */"/>
    <method name="public int nextImageDelay()" doc="/**
&lt;p&gt;For image formats that support animation, this function returns the number of milliseconds to wait until reading the next image. If the image format does not support animation, 0 is returned.&lt;/p&gt;
 */"/>
    <method name="public java.lang.Object option(com.trolltech.qt.gui.QImageIOHandler.ImageOption option)" doc="/**
&lt;p&gt;Returns the value assigned to &lt;tt&gt;option&lt;/tt&gt; as a &lt;a href=&quot;%2E%2E/porting4.html#qvariant&quot;&gt;&lt;tt&gt;QVariant&lt;/tt&gt;&lt;/a&gt;. The type of the value depends on the option. For example, option(Size) returns a &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt; variant.&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#setOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption, java.lang.Object)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageIOHandler.html#supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption)&quot;&gt;&lt;tt&gt;supportsOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public abstract boolean read(com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Read an image from the device, and stores it in &lt;tt&gt;image&lt;/tt&gt;. Returns true if the image is successfully read; otherwise returns false.&lt;/p&gt;
&lt;p&gt;For image formats that support incremental loading, and for animation formats, the image handler can assume that &lt;tt&gt;image&lt;/tt&gt; points to the previous frame.&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#canRead()&quot;&gt;&lt;tt&gt;canRead&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public void setOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption option, java.lang.Object value)" doc="/**
&lt;p&gt;Sets the option &lt;tt&gt;option&lt;/tt&gt; with the value &lt;tt&gt;value&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#option(com.trolltech.qt.gui.QImageIOHandler.ImageOption)&quot;&gt;&lt;tt&gt;option&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageIOHandler.html#ImageOption-enum&quot;&gt;&lt;tt&gt;ImageOption&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption option)" doc="/**
&lt;p&gt;Returns true if the &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; supports the option &lt;tt&gt;option&lt;/tt&gt;; otherwise returns false. For example, if the &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; supports the &lt;a href=&quot;QImageIOHandler.html#ImageOption-enum&quot;&gt;Size&lt;/tt&gt;&lt;/a&gt; option, &lt;a href=&quot;QImageIOHandler.html#supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption)&quot;&gt;&lt;tt&gt;supportsOption&lt;/tt&gt;&lt;/a&gt;(Size) must return true.&lt;/p&gt;

@see &lt;a href=&quot;QImageIOHandler.html#setOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption, java.lang.Object)&quot;&gt;&lt;tt&gt;setOption&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QImageIOHandler.html#option(com.trolltech.qt.gui.QImageIOHandler.ImageOption)&quot;&gt;&lt;tt&gt;option&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean write(com.trolltech.qt.gui.QImage image)" doc="/**
&lt;p&gt;Writes the image &lt;tt&gt;image&lt;/tt&gt; to the assigned device. Returns true on success; otherwise returns false.&lt;/p&gt;
&lt;p&gt;The default implementation does nothing, and simply returns false.&lt;/p&gt;
 */"/>
    <enum name="ImageOption" doc="/**
&lt;p&gt;This enum describes the different options supported by &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt;. Some options are used to query an image for properties, and others are used to toggle the way in which an image should be written.&lt;/p&gt;
 */">
        <enum-value name="Size" doc="/**
&lt;p&gt;The original size of an image. A handler that supports this option is expected to read the size of the image from the image metadata, and return this size from &lt;a href=&quot;QImageIOHandler.html#option(com.trolltech.qt.gui.QImageIOHandler.ImageOption)&quot;&gt;&lt;tt&gt;option&lt;/tt&gt;&lt;/a&gt; as a &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
        <enum-value name="ClipRect" doc="/**
&lt;p&gt;The clip rect, or ROI (Region Of Interest). A handler that supports this option is expected to only read the provided &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt; area from the original image in &lt;a href=&quot;QImageIOHandler.html#read(com.trolltech.qt.gui.QImage)&quot;&gt;&lt;tt&gt;read&lt;/tt&gt;&lt;/a&gt;, before any other transformation is applied.&lt;/p&gt;
 */"/>
        <enum-value name="Description" doc="/**
&lt;p&gt;The image description. Some image formats, such as GIF and PNG, allow embedding of text or comments into the image data (e.g&amp;#x2e;, for storing copyright information). It's common that the text is stored in key-value pairs, but some formats store all text in one continuous block. &lt;a href=&quot;QImageIOHandler.html#QImageIOHandler()&quot;&gt;&lt;tt&gt;QImageIOHandler&lt;/tt&gt;&lt;/a&gt; returns the text as one &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;, where keys and values are separated by a ':', and keys-value pairs are separated by two newlines (\n\n). For example, &amp;quot;Title: Sunset\n\nAuthor: Jim Smith\nSarah Jones\n\n&amp;quot;. Formats that store text in a single block can use &amp;quot;Description&amp;quot; as the key.&lt;/p&gt;
 */"/>
        <enum-value name="ScaledClipRect" doc="/**
&lt;p&gt;The scaled clip rect (or ROI, Region Of Interest) of the image. A handler that supports this option is expected to apply the provided clip rect (a &lt;a href=&quot;%2E%2E/core/QRect.html&quot;&gt;&lt;tt&gt;QRect&lt;/tt&gt;&lt;/a&gt;), after applying any scaling (ScaleSize) or regular clipping (&lt;a href=&quot;QImageIOHandler.html#ImageOption-enum&quot;&gt;&lt;tt&gt;ClipRect&lt;/tt&gt;&lt;/a&gt;). If the handler does not support this option, &lt;a href=&quot;QImageReader.html&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; will apply the scaled clip rect after the image has been read.&lt;/p&gt;
 */"/>
        <enum-value name="ScaledSize" doc="/**
&lt;p&gt;The scaled size of the image. A handler that supports this option is expected to scale the image to the provided size (a &lt;a href=&quot;%2E%2E/core/QSize.html&quot;&gt;&lt;tt&gt;QSize&lt;/tt&gt;&lt;/a&gt;), after applying any clip rect transformation (&lt;a href=&quot;QImageIOHandler.html#ImageOption-enum&quot;&gt;&lt;tt&gt;ClipRect&lt;/tt&gt;&lt;/a&gt;). If the handler does not support this option, &lt;a href=&quot;QImageReader.html&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; will perform the scaling after the image has been read.&lt;/p&gt;
 */"/>
        <enum-value name="CompressionRatio" doc="/**
&lt;p&gt;The compression ratio of the image data. A handler that supports this option is expected to set its compression rate depending on the value of this option (an int) when writing.&lt;/p&gt;
 */"/>
        <enum-value name="Gamma" doc="/**
&lt;p&gt;The gamma level of the image. A handler that supports this option is expected to set the image gamma level depending on the value of this option (a float) when writing.&lt;/p&gt;
 */"/>
        <enum-value name="Quality" doc="/**
&lt;p&gt;The quality level of the image. A handler that supports this option is expected to set the image quality level depending on the value of this option (an int) when writing.&lt;/p&gt;
 */"/>
        <enum-value name="Name" doc="/**
&lt;p&gt;The name of the image. A handler that supports this option is expected to read the name from the image metadata and return this as a &lt;a href=&quot;%2E%2E/porting4.html#qstring&quot;&gt;&lt;tt&gt;QString&lt;/tt&gt;&lt;/a&gt;, or when writing an image it is expected to store the name in the image metadata.&lt;/p&gt;
 */"/>
        <enum-value name="SubType" doc="/**
&lt;p&gt;The subtype of the image. A handler that supports this option can use the subtype value to help when reading and writing images. For example, a PPM handler may have a subtype value of &amp;quot;ppm&amp;quot; or &amp;quot;ppmraw&amp;quot;.&lt;/p&gt;
 */"/>
        <enum-value name="IncrementalReading" doc="/**
&lt;p&gt;A handler that supports this option is expected to read the image in several passes, as if it was an animation. &lt;a href=&quot;QImageReader.html&quot;&gt;&lt;tt&gt;QImageReader&lt;/tt&gt;&lt;/a&gt; will treat the image as an animation.&lt;/p&gt;
 */"/>
        <enum-value name="Endianness" doc="/**
&lt;p&gt;The endianness of the image. Certain image formats can be stored as BigEndian or LittleEndian. A handler that supports Endianness uses the value of this option to determine how the image should be stored.&lt;/p&gt;
 */"/>
        <enum-value name="Animation" doc="/**
&lt;p&gt;Image formats that support animation return true for this value in &lt;a href=&quot;QImageIOHandler.html#supportsOption(com.trolltech.qt.gui.QImageIOHandler.ImageOption)&quot;&gt;&lt;tt&gt;supportsOption&lt;/tt&gt;&lt;/a&gt;; otherwise, false is returned.&lt;/p&gt;
 */"/>
        <enum-value name="BackgroundColor" doc="/**
&lt;p&gt;Certain image formats allow the background color to be specified. A handler that supports &lt;a href=&quot;QImageIOHandler.html#ImageOption-enum&quot;&gt;&lt;tt&gt;BackgroundColor&lt;/tt&gt;&lt;/a&gt; initializes the background color to this option (a &lt;a href=&quot;QColor.html&quot;&gt;&lt;tt&gt;QColor&lt;/tt&gt;&lt;/a&gt;) when reading an image.&lt;/p&gt;
 */"/>
</enum>
</class>