/***************************************************************************
                            kde_KPixmapEffect.cpp -  description
                             -------------------
    begin                : Wed Feb  6 15:12:26 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd. All rights reserved.
    email                : Lost_Highway@tipitina.demon.co.uk
    generated by         : duke@tipitina on Wed Feb  6 15:12:26 2002, 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 "kde_KPixmapEffect.h"
}

#include <kpixmapeffect.h>
#include <kpixmap.h>

kde_KPixmap* kde_KPixmapEffect_gradient( kde_KPixmap* pixmap, qt_QColor * ca, qt_QColor * cb, int type, int ncols){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::gradient((KPixmap&)* (KPixmap*)pixmap, (QColor&)* (QColor*)ca, (QColor&)* (QColor*)cb, (KPixmapEffect::GradientType)type, (int)ncols);
}
kde_KPixmap* kde_KPixmapEffect_unbalancedGradient( kde_KPixmap* pixmap, qt_QColor * ca, qt_QColor * cb, int type, int xfactor, int yfactor, int ncols){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::unbalancedGradient((KPixmap&)* (KPixmap*)pixmap, (QColor&)* (QColor*)ca, (QColor&)* (QColor*)cb, (KPixmapEffect::GradientType)type, (int)xfactor, (int)yfactor, (int)ncols);
}
kde_KPixmap* kde_KPixmapEffect_createTiled( kde_KPixmap* pixmap, qt_QSize * size){
	return (kde_KPixmap*)new KPixmap(KPixmapEffect::createTiled((KPixmap&)* (KPixmap*)pixmap, (QSize)* (QSize*)size));
}
kde_KPixmap* kde_KPixmapEffect_intensity( kde_KPixmap* pixmap, float ratio){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::intensity((KPixmap&)* (KPixmap*)pixmap, (float)ratio);
}
kde_KPixmap* kde_KPixmapEffect_channelIntensity( kde_KPixmap* pixmap, float ratio, int channel){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::channelIntensity((KPixmap&)* (KPixmap*)pixmap, (float)ratio, (KPixmapEffect::RGBComponent)channel);
}
kde_KPixmap* kde_KPixmapEffect_blend( kde_KPixmap* pixmap, float initial_intensity, qt_QColor * bgnd, int eff, int anti_dir, int ncols){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::blend((KPixmap&)* (KPixmap*)pixmap, (float)initial_intensity, (QColor&)* (QColor*)bgnd, (KPixmapEffect::GradientType)eff, (bool)anti_dir, (int)ncols);
}
kde_KPixmap* kde_KPixmapEffect_hash( kde_KPixmap* pixmap, int lite, unsigned int spacing, int ncols){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::hash((KPixmap&)* (KPixmap*)pixmap, (KPixmapEffect::Lighting)lite, (unsigned int)spacing, (int)ncols);
}
kde_KPixmap* kde_KPixmapEffect_pattern( kde_KPixmap* pixmap, qt_QSize * size, qt_QColor * ca, qt_QColor * cb, int ncols){
	return (kde_KPixmap*)new KPixmap(KPixmapEffect::pattern((KPixmap&)* (KPixmap*)pixmap, (QSize)* (QSize*)size, (QColor&)* (QColor*)ca, (QColor&)* (QColor*)cb, (int)ncols));
}
kde_KPixmap* kde_KPixmapEffect_fade( kde_KPixmap* pixmap, double val, qt_QColor * color){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::fade((KPixmap&)* (KPixmap*)pixmap, (double)val, (QColor&)* (QColor*)color);
}
kde_KPixmap* kde_KPixmapEffect_toGray( kde_KPixmap* pixmap, int fast){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::toGray((KPixmap&)* (KPixmap*)pixmap, (bool)fast);
}
kde_KPixmap* kde_KPixmapEffect_desaturate( kde_KPixmap* pixmap, float desat){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::desaturate((KPixmap&)* (KPixmap*)pixmap, (float)desat);
}
kde_KPixmap* kde_KPixmapEffect_contrast( kde_KPixmap* pixmap, int c){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::contrast((KPixmap&)* (KPixmap*)pixmap, (int)c);
}
kde_KPixmap* kde_KPixmapEffect_dither( kde_KPixmap* pixmap, qt_QColor* palette, int size){
	return (kde_KPixmap*) ( KPixmap *)&KPixmapEffect::dither((KPixmap&)* (KPixmap*)pixmap, (QColor*)palette, (int)size);
}
kde_KPixmap* kde_KPixmapEffect_selectedPixmap( kde_KPixmap* pixmap, qt_QColor * col){
	return (kde_KPixmap*)new KPixmap(KPixmapEffect::selectedPixmap((KPixmap&)* (KPixmap*)pixmap, (QColor&)* (QColor*)col));
}
