1 //****************************************************************************** 2 // Copyright (c) 2005-2013 by Jan Van hijfte 3 // 4 // See the included file COPYING.TXT for details about the copyright. 5 // 6 // This program is distributed in the hope that it will be useful, 7 // but WITHOUT ANY WARRANTY; without even the implied warranty of 8 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 9 //****************************************************************************** 10 11 12 #ifndef QIMAGEWRITER_C_H 13 #define QIMAGEWRITER_C_H 14 15 #include <QtGui> 16 #include "pascalbind.h" 17 18 C_EXPORT QImageWriterH QImageWriter_Create(); 19 C_EXPORT void QImageWriter_Destroy(QImageWriterH handle); 20 C_EXPORT QImageWriterH QImageWriter_Create2(QIODeviceH device, const QByteArrayH format); 21 C_EXPORT QImageWriterH QImageWriter_Create3(PWideString fileName, const QByteArrayH format); 22 C_EXPORT void QImageWriter_setFormat(QImageWriterH handle, const QByteArrayH format); 23 C_EXPORT void QImageWriter_format(QImageWriterH handle, QByteArrayH retval); 24 C_EXPORT void QImageWriter_setDevice(QImageWriterH handle, QIODeviceH device); 25 C_EXPORT QIODeviceH QImageWriter_device(QImageWriterH handle); 26 C_EXPORT void QImageWriter_setFileName(QImageWriterH handle, PWideString fileName); 27 C_EXPORT void QImageWriter_fileName(QImageWriterH handle, PWideString retval); 28 C_EXPORT void QImageWriter_setQuality(QImageWriterH handle, int quality); 29 C_EXPORT int QImageWriter_quality(QImageWriterH handle); 30 C_EXPORT void QImageWriter_setCompression(QImageWriterH handle, int compression); 31 C_EXPORT int QImageWriter_compression(QImageWriterH handle); 32 C_EXPORT void QImageWriter_setGamma(QImageWriterH handle, float gamma); 33 C_EXPORT float QImageWriter_gamma(QImageWriterH handle); 34 C_EXPORT void QImageWriter_setDescription(QImageWriterH handle, PWideString description); 35 C_EXPORT void QImageWriter_description(QImageWriterH handle, PWideString retval); 36 C_EXPORT void QImageWriter_setText(QImageWriterH handle, PWideString key, PWideString text); 37 C_EXPORT bool QImageWriter_canWrite(QImageWriterH handle); 38 C_EXPORT bool QImageWriter_write(QImageWriterH handle, const QImageH image); 39 C_EXPORT QImageWriter::ImageWriterError QImageWriter_error(QImageWriterH handle); 40 C_EXPORT void QImageWriter_errorString(QImageWriterH handle, PWideString retval); 41 C_EXPORT bool QImageWriter_supportsOption(QImageWriterH handle, QImageIOHandler::ImageOption option); 42 43 #endif 44