/***************************************************************************
                            QImage.m -  description
                             -------------------
    begin                : Wed Nov 21 12:08:37 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Nov 21 12:08:37 2001, using kalyptus 0.9.
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   This library is free software; you can redistribute it and/or modify  *
 *   it under the terms of the GNU Library General Public License as       *
 *   published by the Free Software Foundation; either version 2 of the    *
 *   License, or (at your option) any later version.                       *
 *                                                                         *
 ***************************************************************************/

#include <qtc/qt_QString.h>
#include <qtc/qt_QCString.h>
#include <qtc/qt_QImage.h>
#include <qtobjc/QImage.h>
#include <qtobjc/QWMatrix.h>

#include <qtobjc/QImageTextKeyLang.h>
#include <qtobjc/QWMatrix.h>

#include <qtobjc/QByteArray.h>

@implementation  QImage

- (void *) qt
{
	return _qt;
}

- setQt: (void *) qt
{
	_qt = qt;
	return self;
}

- (BOOL) allocatedInObjcWorld
{
	return _allocatedInObjcWorld;
}

- setAllocatedInObjcWorld: (BOOL) yn
{
	_allocatedInObjcWorld = yn;
	return self;
}


- init
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage()];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithInt: (int)width height: (int)height depth: (int)depth numColors: (int)numColors bitOrder: (int)bitOrder
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage1((int)width, (int)height, (int)depth, (int)numColors, (int)bitOrder)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithInt: (int)width height: (int)height depth: (int)depth 
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage1((int)width, (int)height, (int)depth, 0, [QImage IgnoreEndian])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithSize: (QSize *)arg1 depth: (int)depth numColors: (int)numColors bitOrder: (int)bitOrder
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage2((qt_QSize *) [arg1 qt], (int)depth, (int)numColors, (int)bitOrder)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithSize: (QSize *)arg1 depth: (int)depth 
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage2((qt_QSize *) [arg1 qt], (int)depth, 0, [QImage IgnoreEndian])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithFilename: (NSString *)fileName format: (NSString *)format
{
static qt_QString * _qstring_fileName = 0L;
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage3((qt_QString *) [fileName toQString: &_qstring_fileName], (char*) [format cString])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithFilename: (NSString *)fileName
{
static qt_QString * _qstring_fileName = 0L;
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage3((qt_QString *) [fileName toQString: &_qstring_fileName], 0)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithXpm: (char **)xpm
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage4((char**) xpm)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithByteArray: (QByteArray*)data
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage5((qt_QByteArray*) [data qt])];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

- initWithUnsigned: (unsigned char*)data w: (int)w h: (int)h depth: (int)depth colortable: (int *)colortable numColors: (int)numColors bitOrder: (int)bitOrder
{
	if ([self qt] == 0L) {
		[self setQt: qt_new_QImage6((unsigned char*)data, (int)w, (int)h, (int)depth, (int *)colortable, (int)numColors, (int)bitOrder)];
		[self setAllocatedInObjcWorld: YES];
		[QtSupport setObject: self forQtKey: [self qt]];
	}
	[super init];
	return self;
}

//- initWithUnsigned: (unsigned char*)data w: (int)w h: (int)h depth: (int)depth pbl: (int)pbl colortable: (int *)colortable numColors: (int)numColors bitOrder: (int)bitOrder
//{
//	if ([self qt] == 0L) {
//		[self setQt: qt_new_QImage7((unsigned char*)data, (int)w, (int)h, (int)depth, (int)pbl, (int *)colortable, (int)numColors, (int)bitOrder)];
//		[self setAllocatedInObjcWorld: YES];
//		[QtSupport setObject: self forQtKey: [self qt]];
//	}
//	[super init];
//	return self;
//}

- copyWithZone: (NSZone *) zone
{
	QImage * aCopy;
	aCopy = [[(QImage *)[[self class] allocWithZone: zone] setQt: qt_new_QImage8([self qt])] init];
	[aCopy setAllocatedInObjcWorld: YES];
	[QtSupport setObject: aCopy forQtKey: [aCopy qt]];
	return aCopy;
}

- (void) dealloc
{
	if ([self qt] != 0L) {
		if ([self allocatedInObjcWorld]) {
			qt_del_QImage((qt_QImage *)[self qt]);
		}
		[QtSupport removeQtKey: [self qt]];
		[self setQt: 0L];
	}
	[super dealloc];
}

- detach
{
	qt_QImage_detach((qt_QImage *)[self qt]);
	return self;
}

- (QImage*) copy
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_copy((qt_QImage *)[self qt]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) copy: (int)x y: (int)y w: (int)w h: (int)h conversion_flags: (int)conversion_flags
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_copy1((qt_QImage *)[self qt], (int)x, (int)y, (int)w, (int)h, (int)conversion_flags) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) copy: (int)x y: (int)y w: (int)w h: (int)h 
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_copy1((qt_QImage *)[self qt], (int)x, (int)y, (int)w, (int)h, 0) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) copy: (QRect*)arg1
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_copy2((qt_QImage *)[self qt], (qt_QRect*) [arg1 qt]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (BOOL) isNull
{
	return (BOOL) qt_QImage_isNull((qt_QImage *)[self qt]);
}

- (int) width
{
	return (int) qt_QImage_width((qt_QImage *)[self qt]);
}

- (int) height
{
	return (int) qt_QImage_height((qt_QImage *)[self qt]);
}

- (QSize*) size
{
	return (QSize*) [QtSupport objectForQtKey: qt_QImage_size((qt_QImage *)[self qt]) withClass: [QSize class] allocatedInObjcWorld: YES];
}

- (QRect*) rect
{
	return (QRect*) [QtSupport objectForQtKey: qt_QImage_rect((qt_QImage *)[self qt]) withClass: [QRect class] allocatedInObjcWorld: YES];
}

- (int) depth
{
	return (int) qt_QImage_depth((qt_QImage *)[self qt]);
}

- (int) numColors
{
	return (int) qt_QImage_numColors((qt_QImage *)[self qt]);
}

- (int) bitOrder
{
	return (int) qt_QImage_bitOrder((qt_QImage *)[self qt]);
}

- (unsigned int) color: (int)i
{
	return (unsigned int) qt_QImage_color((qt_QImage *)[self qt], (int)i);
}

- setColor: (int)i c: (unsigned int)c
{
	qt_QImage_setColor((qt_QImage *)[self qt], (int)i, (unsigned int)c);
	return self;
}

- setNumColors: (int)arg1
{
	qt_QImage_setNumColors((qt_QImage *)[self qt], (int)arg1);
	return self;
}

- (BOOL) hasAlphaBuffer
{
	return (BOOL) qt_QImage_hasAlphaBuffer((qt_QImage *)[self qt]);
}

- setAlphaBuffer: (BOOL)arg1
{
	qt_QImage_setAlphaBuffer((qt_QImage *)[self qt], (int)arg1);
	return self;
}

- (BOOL) allGray
{
	return (BOOL) qt_QImage_allGray((qt_QImage *)[self qt]);
}

- (BOOL) isGrayscale
{
	return (BOOL) qt_QImage_isGrayscale((qt_QImage *)[self qt]);
}

- (unsigned char*) bits
{
	return (unsigned char*) qt_QImage_bits((qt_QImage *)[self qt]);
}

- (unsigned char*) scanLine: (int)arg1
{
	return (unsigned char*) qt_QImage_scanLine((qt_QImage *)[self qt], (int)arg1);
}

- (unsigned char**) jumpTable
{
	return (unsigned char**) qt_QImage_jumpTable((qt_QImage *)[self qt]);
}

- (int*) colorTable
{
	return (int*) qt_QImage_colorTable((qt_QImage *)[self qt]);
}

- (int) numBytes
{
	return (int) qt_QImage_numBytes((qt_QImage *)[self qt]);
}

- (int) bytesPerLine
{
	return (int) qt_QImage_bytesPerLine((qt_QImage *)[self qt]);
}

//- (QGfx*) graphicsContext
//{
//	return (QGfx*) [QtSupport objectForQtKey: qt_QImage_graphicsContext((qt_QImage *)[self qt]) withClass: [QGfx class] allocatedInObjcWorld: YES];
//}

- (BOOL) create: (int)width height: (int)height depth: (int)depth numColors: (int)numColors bitOrder: (int)bitOrder
{
	return (BOOL) qt_QImage_create((qt_QImage *)[self qt], (int)width, (int)height, (int)depth, (int)numColors, (int)bitOrder);
}

- (BOOL) create: (int)width height: (int)height depth: (int)depth 
{
	return (BOOL) qt_QImage_create((qt_QImage *)[self qt], (int)width, (int)height, (int)depth, 0, [QImage IgnoreEndian]);
}

- (BOOL) create: (QSize *)arg1 depth: (int)depth numColors: (int)numColors bitOrder: (int)bitOrder
{
	return (BOOL) qt_QImage_create1((qt_QImage *)[self qt], (qt_QSize *) [arg1 qt], (int)depth, (int)numColors, (int)bitOrder);
}

- (BOOL) create: (QSize *)arg1 depth: (int)depth 
{
	return (BOOL) qt_QImage_create1((qt_QImage *)[self qt], (qt_QSize *) [arg1 qt], (int)depth, 0, [QImage IgnoreEndian]);
}

- reset
{
	qt_QImage_reset((qt_QImage *)[self qt]);
	return self;
}

- fill: (unsigned int)pixel
{
	qt_QImage_fill((qt_QImage *)[self qt], (unsigned int)pixel);
	return self;
}

- invertPixels: (BOOL)invertAlpha
{
	qt_QImage_invertPixels((qt_QImage *)[self qt], (int)invertAlpha);
	return self;
}

- invertPixels
{
	qt_QImage_invertPixels((qt_QImage *)[self qt], 1);
	return self;
}

- (QImage*) convertDepth: (int)arg1
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_convertDepth((qt_QImage *)[self qt], (int)arg1) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) convertDepthWithPalette: (int)arg1 p: (int *)p pc: (int)pc cf: (int)cf
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_convertDepthWithPalette((qt_QImage *)[self qt], (int)arg1, (int *)p, (int)pc, (int)cf) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) convertDepthWithPalette: (int)arg1 p: (int *)p pc: (int)pc 
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_convertDepthWithPalette((qt_QImage *)[self qt], (int)arg1, (int *)p, (int)pc, 0) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) convertDepth: (int)arg1 conversion_flags: (int)conversion_flags
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_convertDepth1((qt_QImage *)[self qt], (int)arg1, (int)conversion_flags) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) convertBitOrder: (int)arg1
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_convertBitOrder((qt_QImage *)[self qt], (int)arg1) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) smoothScale: (int)w h: (int)h mode: (int)mode
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_smoothScale((qt_QImage *)[self qt], (int)w, (int)h, (int)mode) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) smoothScale: (int)w h: (int)h 
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_smoothScale((qt_QImage *)[self qt], (int)w, (int)h, [QImage ScaleFree]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) smoothScale: (QSize *)s mode: (int)mode
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_smoothScale1((qt_QImage *)[self qt], (qt_QSize *) [s qt], (int)mode) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) smoothScale: (QSize *)s 
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_smoothScale1((qt_QImage *)[self qt], (qt_QSize *) [s qt], [QImage ScaleFree]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) scale: (int)w h: (int)h mode: (int)mode
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_scale((qt_QImage *)[self qt], (int)w, (int)h, (int)mode) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) scale: (int)w h: (int)h 
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_scale((qt_QImage *)[self qt], (int)w, (int)h, [QImage ScaleFree]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) scale: (QSize *)s mode: (int)mode
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_scale1((qt_QImage *)[self qt], (qt_QSize *) [s qt], (int)mode) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) scale: (QSize *)s 
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_scale1((qt_QImage *)[self qt], (qt_QSize *) [s qt], [QImage ScaleFree]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) scaleWidth: (int)w
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_scaleWidth((qt_QImage *)[self qt], (int)w) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) scaleHeight: (int)h
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_scaleHeight((qt_QImage *)[self qt], (int)h) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) xForm: (QWMatrix *)matrix
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_xForm((qt_QImage *)[self qt], (qt_QWMatrix *) [matrix qt]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) createAlphaMask: (int)conversion_flags
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_createAlphaMask((qt_QImage *)[self qt], (int)conversion_flags) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) createAlphaMask
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_createAlphaMask((qt_QImage *)[self qt], 0) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) createHeuristicMask: (BOOL)clipTight
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_createHeuristicMask((qt_QImage *)[self qt], (int)clipTight) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) createHeuristicMask
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_createHeuristicMask((qt_QImage *)[self qt], 1) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) mirror
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_mirror((qt_QImage *)[self qt]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) mirror: (BOOL)horizontally vertically: (BOOL)vertically
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_mirror1((qt_QImage *)[self qt], (int)horizontally, (int)vertically) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (QImage*) swapRGB
{
	return (QImage*) [QtSupport objectForQtKey: qt_QImage_swapRGB((qt_QImage *)[self qt]) withClass: [QImage class] allocatedInObjcWorld: YES];
}

- (BOOL) load: (NSString *)fileName format: (NSString *)format
{
static qt_QString * _qstring_fileName = 0L;
	return (BOOL) qt_QImage_load((qt_QImage *)[self qt], (qt_QString *) [fileName toQString: &_qstring_fileName], (char*) [format cString]);
}

- (BOOL) load: (NSString *)fileName 
{
static qt_QString * _qstring_fileName = 0L;
	return (BOOL) qt_QImage_load((qt_QImage *)[self qt], (qt_QString *) [fileName toQString: &_qstring_fileName], 0);
}

- (BOOL) loadFromData: (unsigned char*)buf len: (unsigned int)len format: (NSString *)format
{
	return (BOOL) qt_QImage_loadFromData((qt_QImage *)[self qt], (unsigned char*)buf, (unsigned int)len, (char*) [format cString]);
}

- (BOOL) loadFromData: (unsigned char*)buf len: (unsigned int)len 
{
	return (BOOL) qt_QImage_loadFromData((qt_QImage *)[self qt], (unsigned char*)buf, (unsigned int)len, 0);
}

- (BOOL) loadFromData: (QByteArray*)data format: (NSString *)format
{
	return (BOOL) qt_QImage_loadFromData1((qt_QImage *)[self qt], (qt_QByteArray*) [data qt], (char*) [format cString]);
}

- (BOOL) loadFromData: (QByteArray*)data 
{
	return (BOOL) qt_QImage_loadFromData1((qt_QImage *)[self qt], (qt_QByteArray*) [data qt], 0);
}

- (BOOL) save: (NSString *)fileName format: (NSString *)format quality: (int)quality
{
static qt_QString * _qstring_fileName = 0L;
	return (BOOL) qt_QImage_save((qt_QImage *)[self qt], (qt_QString *) [fileName toQString: &_qstring_fileName], (char*) [format cString], (int)quality);
}

- (BOOL) save: (NSString *)fileName format: (NSString *)format 
{
static qt_QString * _qstring_fileName = 0L;
	return (BOOL) qt_QImage_save((qt_QImage *)[self qt], (qt_QString *) [fileName toQString: &_qstring_fileName], (char*) [format cString], -1);
}

- (BOOL) valid: (int)x y: (int)y
{
	return (BOOL) qt_QImage_valid((qt_QImage *)[self qt], (int)x, (int)y);
}

- (int) pixelIndex: (int)x y: (int)y
{
	return (int) qt_QImage_pixelIndex((qt_QImage *)[self qt], (int)x, (int)y);
}

- (unsigned int) pixel: (int)x y: (int)y
{
	return (unsigned int) qt_QImage_pixel((qt_QImage *)[self qt], (int)x, (int)y);
}

- setPixel: (int)x y: (int)y index_or_rgb: (unsigned int)index_or_rgb
{
	qt_QImage_setPixel((qt_QImage *)[self qt], (int)x, (int)y, (unsigned int)index_or_rgb);
	return self;
}

- (int) dotsPerMeterX
{
	return (int) qt_QImage_dotsPerMeterX((qt_QImage *)[self qt]);
}

- (int) dotsPerMeterY
{
	return (int) qt_QImage_dotsPerMeterY((qt_QImage *)[self qt]);
}

- setDotsPerMeterX: (int)arg1
{
	qt_QImage_setDotsPerMeterX((qt_QImage *)[self qt], (int)arg1);
	return self;
}

- setDotsPerMeterY: (int)arg1
{
	qt_QImage_setDotsPerMeterY((qt_QImage *)[self qt], (int)arg1);
	return self;
}

- (QPoint*) offset
{
	return (QPoint*) [QtSupport objectForQtKey: qt_QImage_offset((qt_QImage *)[self qt]) withClass: [QPoint class] allocatedInObjcWorld: YES];
}

- setOffset: (QPoint*)arg1
{
	qt_QImage_setOffset((qt_QImage *)[self qt], (qt_QPoint*) [arg1 qt]);
	return self;
}

- (NSArray *) textLanguages
{
static qt_QStringList * _qlist = 0L;
	_qlist = qt_QImage_textLanguages((qt_QImage *)[self qt]);
	return (NSArray *) [NSMutableArray arrayWithQStringList: _qlist];
}

- (NSArray *) textKeys
{
static qt_QStringList * _qlist = 0L;
	_qlist = qt_QImage_textKeys((qt_QImage *)[self qt]);
	return (NSArray *) [NSMutableArray arrayWithQStringList: _qlist];
}

- (NSString *) text: (NSString *)key lang: (NSString *)lang
{
static qt_QString * _qstring = 0L;
	_qstring = qt_QImage_text((qt_QImage *)[self qt], (char*) [key cString], (char*) [lang cString]);
	return [NSString fromQString: _qstring];
}

- (NSString *) text: (QImageTextKeyLang*)arg1
{
static qt_QString * _qstring = 0L;
	_qstring = qt_QImage_text1((qt_QImage *)[self qt], (qt_QImageTextKeyLang*) [arg1 qt]);
	return [NSString fromQString: _qstring];
}

- setText: (NSString *)key lang: (NSString *)lang string: (NSString *)arg1
{
static qt_QString * _qstring_arg1 = 0L;
	qt_QImage_setText((qt_QImage *)[self qt], (char*) [key cString], (char*) [lang cString], (qt_QString *) [arg1 toQString: &_qstring_arg1]);
	return self;
}

+ (int) systemBitOrder
{
	return (int) qt_QImage_systemBitOrder();
}

+ (int) systemByteOrder
{
	return (int) qt_QImage_systemByteOrder();
}

+ (NSString *) imageFormat: (NSString *)fileName
{
static qt_QString * _qstring_fileName = 0L;
	return (NSString *) [NSString stringWithCString: qt_QImage_imageFormat((qt_QString *) [fileName toQString: &_qstring_fileName])];
}

+ (NSArray *) inputFormats
{
static qt_QStrList * _qlist = 0L;
	_qlist = qt_QImage_inputFormats();
	return (NSArray *) [NSMutableArray arrayWithQStrList: _qlist];
}

+ (NSArray *) outputFormats
{
static qt_QStrList * _qlist = 0L;
	_qlist = qt_QImage_outputFormats();
	return (NSArray *) [NSMutableArray arrayWithQStrList: _qlist];
}

+ (NSArray *) inputFormatList
{
static qt_QStringList * _qlist = 0L;
	_qlist = qt_QImage_inputFormatList();
	return (NSArray *) [NSMutableArray arrayWithQStringList: _qlist];
}

+ (NSArray *) outputFormatList
{
static qt_QStringList * _qlist = 0L;
	_qlist = qt_QImage_outputFormatList();
	return (NSArray *) [NSMutableArray arrayWithQStringList: _qlist];
}

+ (int) IgnoreEndian
{
	return (int) QIMAGE_IgnoreEndian;
}

+ (int) BigEndian
{
	return (int) QIMAGE_BigEndian;
}

+ (int) LittleEndian
{
	return (int) QIMAGE_LittleEndian;
}

+ (int) ScaleFree
{
	return (int) QIMAGE_ScaleFree;
}

+ (int) ScaleMin
{
	return (int) QIMAGE_ScaleMin;
}

+ (int) ScaleMax
{
	return (int) QIMAGE_ScaleMax;
}

@end
