PDA

View Full Version : working with images



Kapil
9th March 2006, 10:57
Hi,

I want to handle images in my project...

The images can be of .bmp or .jpeg format...
The project is that when i execute my application it would open images and let me do formatting in it... I can write on them, i can colour them, i can highlight specific parts of it..
It would perform all basic image processing activities on the image...

Can i write the application using QT and if yes then how can i do it...

Thanking you,
Kapil

jpn
9th March 2006, 11:22
Qt provides four classes for handling image data: QImage (http://doc.trolltech.com/4.1/qimage.html), QPixmap (http://doc.trolltech.com/4.1/qpixmap.html), QBitmap (http://doc.trolltech.com/4.1/qbitmap.html) and QPicture (http://doc.trolltech.com/4.1/qpicture.html).

By default, Qt supports (more or less) the following formats:
BMP, GIF, JPG, JPEG, PNG, PBM, PGM, PPM, XBM, XPM.

Also, you can add support for other formats by providing an image format plugin (http://doc.trolltech.com/4.1/qimageioplugin.html#details).


Can i write the application using QT and if yes then how can i do it...
Everything you mentioned should be possible. I advice you to take a look at the Qt Examples and Demos, you can find a lot of neat things there, and it's all documented, explained and more importantly available for you to examine in the source code level.

Kapil
9th March 2006, 11:59
Hi,

Thanks for the reply..

What i want is to develop a sort of Picture Editor that would take in images and let you work on them and the execution of it very fast...
If i involve too much of programming then it would make my application to run slow with all steps getting executed sequentially.
Can't it be programmed in a very dynamically executed manner so that View Layer of the execution handles coming minimum to the Application Layer..

thanks,
Kapil