/***************************************************************************
                            kde_KImageEffect.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_KImageEffect.h"
}

#include <qimage.h>
#include <kimageeffect.h>

qt_QImage * kde_KImageEffect_gradient( qt_QSize * size, qt_QColor * ca, qt_QColor * cb, int type, int ncols){
	return (qt_QImage *)new QImage(KImageEffect::gradient((QSize&)* (QSize*)size, (QColor&)* (QColor*)ca, (QColor&)* (QColor*)cb, (KImageEffect::GradientType)type, (int)ncols));
}
qt_QImage * kde_KImageEffect_unbalancedGradient( qt_QSize * size, qt_QColor * ca, qt_QColor * cb, int type, int xfactor, int yfactor, int ncols){
	return (qt_QImage *)new QImage(KImageEffect::unbalancedGradient((QSize&)* (QSize*)size, (QColor&)* (QColor*)ca, (QColor&)* (QColor*)cb, (KImageEffect::GradientType)type, (int)xfactor, (int)yfactor, (int)ncols));
}
qt_QImage * kde_KImageEffect_blend( qt_QColor * clr, qt_QImage * dst, float opacity){
	return (qt_QImage *) ( QImage *)&KImageEffect::blend((QColor&)* (QColor*)clr, (QImage&)* (QImage*)dst, (float)opacity);
}
qt_QImage * kde_KImageEffect_blend1( qt_QImage * src, qt_QImage * dst, float opacity){
	return (qt_QImage *) ( QImage *)&KImageEffect::blend((QImage&)* (QImage*)src, (QImage&)* (QImage*)dst, (float)opacity);
}
qt_QImage * kde_KImageEffect_blend2( qt_QImage * image, float initial_intensity, qt_QColor * bgnd, int eff, int anti_dir){
	return (qt_QImage *) ( QImage *)&KImageEffect::blend((QImage&)* (QImage*)image, (float)initial_intensity, (QColor&)* (QColor*)bgnd, (KImageEffect::GradientType)eff, (bool)anti_dir);
}
qt_QImage * kde_KImageEffect_blend3( qt_QImage * image1, qt_QImage * image2, int gt, int xf, int yf){
	return (qt_QImage *) ( QImage *)&KImageEffect::blend((QImage&)* (QImage*)image1, (QImage&)* (QImage*)image2, (KImageEffect::GradientType)gt, (int)xf, (int)yf);
}
qt_QImage * kde_KImageEffect_blend4( qt_QImage * image1, qt_QImage * image2, qt_QImage * blendImage, int channel){
	return (qt_QImage *) ( QImage *)&KImageEffect::blend((QImage&)* (QImage*)image1, (QImage&)* (QImage*)image2, (QImage&)* (QImage*)blendImage, (KImageEffect::RGBComponent)channel);
}
int kde_KImageEffect_blend5( qt_QImage * upper, qt_QImage * lower, qt_QImage * output){
	return (int) KImageEffect::blend((QImage&)* (QImage*)upper, (QImage&)* (QImage*)lower, (QImage&)* (QImage*)output);
}
int kde_KImageEffect_blend6( int x, int y, qt_QImage * upper, qt_QImage * lower, qt_QImage * output){
	return (int) KImageEffect::blend((int&)x, (int&)y, (QImage&)* (QImage*)upper, (QImage&)* (QImage*)lower, (QImage&)* (QImage*)output);
}
int kde_KImageEffect_blendOnLower( int x, int y, qt_QImage * upper, qt_QImage * lower){
	return (int) KImageEffect::blendOnLower((int)x, (int)y, (QImage&)* (QImage*)upper, (QImage&)* (QImage*)lower);
}
qt_QImage * kde_KImageEffect_channelIntensity( qt_QImage * image, float percent, int channel){
	return (qt_QImage *) ( QImage *)&KImageEffect::channelIntensity((QImage&)* (QImage*)image, (float)percent, (KImageEffect::RGBComponent)channel);
}
qt_QImage * kde_KImageEffect_fade( qt_QImage * img, float val, qt_QColor * color){
	return (qt_QImage *) ( QImage *)&KImageEffect::fade((QImage&)* (QImage*)img, (float)val, (QColor&)* (QColor*)color);
}
qt_QImage * kde_KImageEffect_flatten( qt_QImage * image, qt_QColor * ca, qt_QColor * cb, int ncols){
	return (qt_QImage *) ( QImage *)&KImageEffect::flatten((QImage&)* (QImage*)image, (QColor&)* (QColor*)ca, (QColor&)* (QColor*)cb, (int)ncols);
}
qt_QImage * kde_KImageEffect_hash( qt_QImage * image, int lite, unsigned int spacing){
	return (qt_QImage *) ( QImage *)&KImageEffect::hash((QImage&)* (QImage*)image, (KImageEffect::Lighting)lite, (unsigned int)spacing);
}
qt_QImage * kde_KImageEffect_intensity( qt_QImage * image, float percent){
	return (qt_QImage *) ( QImage *)&KImageEffect::intensity((QImage&)* (QImage*)image, (float)percent);
}
qt_QImage * kde_KImageEffect_modulate( qt_QImage * image, qt_QImage * modImage, int reverse, int type, int factor, int channel){
	return (qt_QImage *) ( QImage *)&KImageEffect::modulate((QImage&)* (QImage*)image, (QImage&)* (QImage*)modImage, (bool)reverse, (KImageEffect::ModulationType)type, (int)factor, (KImageEffect::RGBComponent)channel);
}
qt_QImage * kde_KImageEffect_toGray( qt_QImage * image, int fast){
	return (qt_QImage *) ( QImage *)&KImageEffect::toGray((QImage&)* (QImage*)image, (bool)fast);
}
qt_QImage * kde_KImageEffect_desaturate( qt_QImage * image, float desat){
	return (qt_QImage *) ( QImage *)&KImageEffect::desaturate((QImage&)* (QImage*)image, (float)desat);
}
qt_QImage * kde_KImageEffect_contrast( qt_QImage * image, int c){
	return (qt_QImage *) ( QImage *)&KImageEffect::contrast((QImage&)* (QImage*)image, (int)c);
}
qt_QImage * kde_KImageEffect_dither( qt_QImage * img, qt_QColor* palette, int size){
	return (qt_QImage *) ( QImage *)&KImageEffect::dither((QImage&)* (QImage*)img, (QColor*)palette, (int)size);
}
qt_QImage * kde_KImageEffect_selectedImage( qt_QImage * img, qt_QColor * col){
	return (qt_QImage *) ( QImage *)&KImageEffect::selectedImage((QImage&)* (QImage*)img, (QColor&)* (QColor*)col);
}
void kde_KImageEffect_contrastHSV( qt_QImage * img, int sharpen){
	KImageEffect::contrastHSV((QImage&)* (QImage*)img, (bool)sharpen);
	return;
}
void kde_KImageEffect_normalize( qt_QImage * img){
	KImageEffect::normalize((QImage&)* (QImage*)img);
	return;
}
void kde_KImageEffect_equalize( qt_QImage * img){
	KImageEffect::equalize((QImage&)* (QImage*)img);
	return;
}
void kde_KImageEffect_threshold( qt_QImage * img, unsigned int value){
	KImageEffect::threshold((QImage&)* (QImage*)img, (unsigned int)value);
	return;
}
void kde_KImageEffect_solarize( qt_QImage * img, double factor){
	KImageEffect::solarize((QImage&)* (QImage*)img, (double)factor);
	return;
}
qt_QImage * kde_KImageEffect_emboss( qt_QImage * src){
	return (qt_QImage *)new QImage(KImageEffect::emboss((QImage&)* (QImage*)src));
}
qt_QImage * kde_KImageEffect_despeckle( qt_QImage * src){
	return (qt_QImage *)new QImage(KImageEffect::despeckle((QImage&)* (QImage*)src));
}
qt_QImage * kde_KImageEffect_charcoal( qt_QImage * src, double factor){
	return (qt_QImage *)new QImage(KImageEffect::charcoal((QImage&)* (QImage*)src, (double)factor));
}
qt_QImage * kde_KImageEffect_rotate( qt_QImage * src, int r){
	return (qt_QImage *)new QImage(KImageEffect::rotate((QImage&)* (QImage*)src, (KImageEffect::RotateDirection)r));
}
qt_QImage * kde_KImageEffect_sample( qt_QImage * src, int w, int h){
	return (qt_QImage *)new QImage(KImageEffect::sample((QImage&)* (QImage*)src, (int)w, (int)h));
}
qt_QImage * kde_KImageEffect_addNoise( qt_QImage * src, int type){
	return (qt_QImage *)new QImage(KImageEffect::addNoise((QImage&)* (QImage*)src, (KImageEffect::NoiseType)type));
}
qt_QImage * kde_KImageEffect_blur( qt_QImage * src, double factor){
	return (qt_QImage *)new QImage(KImageEffect::blur((QImage&)* (QImage*)src, (double)factor));
}
qt_QImage * kde_KImageEffect_edge( qt_QImage * src, double factor){
	return (qt_QImage *)new QImage(KImageEffect::edge((QImage&)* (QImage*)src, (double)factor));
}
qt_QImage * kde_KImageEffect_implode( qt_QImage * src, double factor, unsigned int background){
	return (qt_QImage *)new QImage(KImageEffect::implode((QImage&)* (QImage*)src, (double)factor, (unsigned int)background));
}
qt_QImage * kde_KImageEffect_oilPaint( qt_QImage * src, int radius){
	return (qt_QImage *)new QImage(KImageEffect::oilPaint((QImage&)* (QImage*)src, (int)radius));
}
qt_QImage * kde_KImageEffect_sharpen( qt_QImage * src, double factor){
	return (qt_QImage *)new QImage(KImageEffect::sharpen((QImage&)* (QImage*)src, (double)factor));
}
qt_QImage * kde_KImageEffect_spread( qt_QImage * src, unsigned int amount){
	return (qt_QImage *)new QImage(KImageEffect::spread((QImage&)* (QImage*)src, (unsigned int)amount));
}
qt_QImage * kde_KImageEffect_shade( qt_QImage * src, int color_shading, double azimuth, double elevation){
	return (qt_QImage *)new QImage(KImageEffect::shade((QImage&)* (QImage*)src, (bool)color_shading, (double)azimuth, (double)elevation));
}
qt_QImage * kde_KImageEffect_swirl( qt_QImage * src, double degrees, unsigned int background){
	return (qt_QImage *)new QImage(KImageEffect::swirl((QImage&)* (QImage*)src, (double)degrees, (unsigned int)background));
}
qt_QImage * kde_KImageEffect_wave( qt_QImage * src, double amplitude, double frequency, unsigned int background){
	return (qt_QImage *)new QImage(KImageEffect::wave((QImage&)* (QImage*)src, (double)amplitude, (double)frequency, (unsigned int)background));
}
