hello phil

I see that as of last Nov. 2003 it seems that adding a new QImageIO handler
wasn't supported. It appears the this is still the case with sip4. Can this
be added. I need to read/write targa and photoshop images in addition
to the ones supported by TrollTech.


Michael

Traceback (most recent call last):
File "/Users/mef/Development/Testing/targa/build/Targa.app/Contents/ Resources/Main.py", line 6, in ?
from Controller import *
File "/Users/mef/Development/Testing/targa/Controller.py", line 5, in ?
from Image import *
File "/Users/mef/Development/Testing/targa/Image.py", line 15, in ?
QImageIO.defineIOHandler ("TGA", "", 0, readTGA, writeTGA)
AttributeError: defineIOHandler


On Nov 6, 2003, at 6:40 AM, Phil Thompson wrote:

On Thursday 06 November 2003 10:09 am, david wrote:
I would like to write an image into memory but it don't work, QImageIO
class don't exist with Qt 3.1.0 and PyQt 3.5 ?


from qt import *


iio = QImageIO()
im = QImage()
im = pixmap()  //convert to image
iio.setImage(im)

There doesn't seem to be any problem with adding this, so long as you don't
want to define new handlers.


Phil

_______________________________________________
PyKDE mailing list    [EMAIL PROTECTED]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde


_______________________________________________ PyKDE mailing list [EMAIL PROTECTED] http://mats.imk.fraunhofer.de/mailman/listinfo/pykde

Reply via email to