[Kde-graphics-devel] KImageIO

Dirk Schönberger dirk.schoenberger at sz-online.de
Thu Jan 13 00:08:28 CET 2005


> > I am not sure if QImage allows this to happen beyond what the image
filter
> > uses.
> >
>...snip...

> You can set the size in ImageMagick before you load it, but as you said I
am
> not sure how you'd specify this w/ Qt.

You can specify the size before QImageIO::load, e.g. by specifying QImageIO
parameters

QImageIO iio;
iio.setParameters("width:100;height:100");
QPixmap  pixmap;
iio.setFileName( "vegeburger.bmp" );
if ( image.read() )        // ok
   pixmap = iio.image();  // convert to pixmap

and honor these parameters in the QImageIO handler
About ideas how to extract the information in a QImageIO handler you could
look at http://bugs.kde.org/show_bug.cgi?id=84050

Regards
Dirk






More information about the Kde-graphics-devel mailing list