/***************************************************************************
                            qt_QPNGImagePacker.cpp -  description
                             -------------------
    begin                : Tue Nov 20 20:51:20 2001
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Tue Nov 20 20:51:20 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.                       *
 *                                                                         *
 ***************************************************************************/

extern "C" {
#include "qt_QPNGImagePacker.h"
}

#include <qpngio.h>

class QPNGImagePackerBridge : public QPNGImagePacker
{
public:
	QPNGImagePackerBridge(QIODevice* arg1, int depth, int convflags) : QPNGImagePacker(arg1, depth, convflags) {}
};

qt_QPNGImagePacker * qt_new_QPNGImagePacker(qt_QIODevice * arg1, int depth, int convflags){
	return (qt_QPNGImagePacker *) new QPNGImagePackerBridge((QIODevice*)arg1, (int)depth, (int)convflags);
}
void qt_QPNGImagePacker_setPixelAlignment( qt_QPNGImagePacker* instPointer,int x){
	((QPNGImagePackerBridge*)instPointer)->setPixelAlignment((int)x);
	return;
}
int qt_QPNGImagePacker_packImage( qt_QPNGImagePacker* instPointer,qt_QImage * img){
	return (int) ((QPNGImagePackerBridge*)instPointer)->packImage((QImage&)* (QImage*)img);
}
