| Home | ![]() |
The QtJP2ImageFormat class provides support for reading and writing JPEG 2000 image files. More...
#include <qtjp2imageformat.h>
It also provides a static function to install the JPEG 2000 format as a QImageIO format handler, making it possible to load and save JPEG 2000 files using standard QImage functions.
JPEG files comes in two flavors: the JPEG 2000 file format (.jp2) and the JPEG 2000 code stream format (.j2k, .jpc, or .j2c). QtJP2ImageFormat can read and write both types.
The JPEG 2000 image format can be installed as a QImageIO handler in the following way:
QtJP2ImageFormat::installIOHandler();
This enables you to use normal QImage and QPixmap functions to read and write images. For example:
myLabel->setPixmap(QPixmap("myimage.jp2"));
QPixmap myPixmap;
myPixmap.save("myimage.jp2", "JP2");
See also
This enum specifies the different flavor of the JPEG 2000 format.
See also write().
To register this plugin, simply call this function in your application's initialization code.
See also write().
Reads a image from the file specified by fileName.
Returns true if the operation was successful; otherwise returns false.
See also read().
Writes image to the file specified by fileName, using the given format.
Returns true if the operation was successful; otherwise returns false.
This file is part of the Qt Solutions.
Copyright © 2003-2004
Trolltech. All Rights Reserved.
| Copyright © 2003-2004 Trolltech | Trademarks | Qt Solutions
|