/***************************************************************************
                            KPixmapEffect.cpp -  description
                             -------------------
    begin                : Sun Jan 27 16:22:17 2002
    copyright            : (C) 2000-2001 Lost Highway Ltd.
    email                : Richard_Dale@tipitina.demon.co.uk
    generated by         : duke@tipitina on Sun Jan 27 16:22:17 2002, using kalyptus 0.9.
 ***************************************************************************/

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

#define _BOOL_H_
#include <kpixmapeffect.h>
#include <kpixmap.h>
#include <qstring.h>
#include <qcstring.h>

#include <qtjava/QtSupport.h>
#include <kdejava/KDESupport.h>
#include <kdejava/KPixmapEffect.h>

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_gradient__Lorg_kde_koala_KPixmap_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2II(JNIEnv *env, jclass obj, jobject pixmap, jobject ca, jobject cb, jint type, jint ncols)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::gradient((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QColor&) *(QColor *) QtSupport::getQt(env, ca), (QColor&) *(QColor *) QtSupport::getQt(env, cb), (KPixmapEffect::GradientType) type, (int) ncols), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_gradient__Lorg_kde_koala_KPixmap_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2I(JNIEnv *env, jclass obj, jobject pixmap, jobject ca, jobject cb, jint type)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KPixmap(KPixmapEffect::gradient((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QColor&) *(QColor *) QtSupport::getQt(env, ca), (QColor&) *(QColor *) QtSupport::getQt(env, cb), (KPixmapEffect::GradientType) type, 3)), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_unbalancedGradient__Lorg_kde_koala_KPixmap_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2IIII(JNIEnv *env, jclass obj, jobject pixmap, jobject ca, jobject cb, jint type, jint xfactor, jint yfactor, jint ncols)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::unbalancedGradient((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QColor&) *(QColor *) QtSupport::getQt(env, ca), (QColor&) *(QColor *) QtSupport::getQt(env, cb), (KPixmapEffect::GradientType) type, (int) xfactor, (int) yfactor, (int) ncols), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_unbalancedGradient__Lorg_kde_koala_KPixmap_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2I(JNIEnv *env, jclass obj, jobject pixmap, jobject ca, jobject cb, jint type)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KPixmap(KPixmapEffect::unbalancedGradient((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QColor&) *(QColor *) QtSupport::getQt(env, ca), (QColor&) *(QColor *) QtSupport::getQt(env, cb), (KPixmapEffect::GradientType) type, 100, 100, 3)), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_createTiled(JNIEnv *env, jclass obj, jobject pixmap, jobject size)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  KPixmap (KPixmapEffect::createTiled((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QSize) *(QSize *) QtSupport::getQt(env, size))), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_intensity(JNIEnv *env, jclass obj, jobject pixmap, jfloat ratio)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::intensity((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (float) ratio), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_channelIntensity(JNIEnv *env, jclass obj, jobject pixmap, jfloat ratio, jint channel)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::channelIntensity((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (float) ratio, (KPixmapEffect::RGBComponent) channel), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_blend__Lorg_kde_koala_KPixmap_2FLorg_kde_qt_QColor_2IZI(JNIEnv *env, jclass obj, jobject pixmap, jfloat initial_intensity, jobject bgnd, jint eff, jboolean anti_dir, jint ncols)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::blend((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (float) initial_intensity, (QColor&) *(QColor *) QtSupport::getQt(env, bgnd), (KPixmapEffect::GradientType) eff, (bool) anti_dir, (int) ncols), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_blend__Lorg_kde_koala_KPixmap_2FLorg_kde_qt_QColor_2I(JNIEnv *env, jclass obj, jobject pixmap, jfloat initial_intensity, jobject bgnd, jint eff)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KPixmap(KPixmapEffect::blend((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (float) initial_intensity, (QColor&) *(QColor *) QtSupport::getQt(env, bgnd), (KPixmapEffect::GradientType) eff, false, 3)), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_hash__Lorg_kde_koala_KPixmap_2III(JNIEnv *env, jclass obj, jobject pixmap, jint lite, jint spacing, jint ncols)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::hash((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (KPixmapEffect::Lighting) lite, (unsigned int) spacing, (int) ncols), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_hash__Lorg_kde_koala_KPixmap_2(JNIEnv *env, jclass obj, jobject pixmap)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KPixmap(KPixmapEffect::hash((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), KPixmapEffect::NorthLite, 0, 3)), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_pattern__Lorg_kde_koala_KPixmap_2Lorg_kde_qt_QSize_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2I(JNIEnv *env, jclass obj, jobject pixmap, jobject size, jobject ca, jobject cb, jint ncols)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  KPixmap (KPixmapEffect::pattern((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QSize) *(QSize *) QtSupport::getQt(env, size), (QColor&) *(QColor *) QtSupport::getQt(env, ca), (QColor&) *(QColor *) QtSupport::getQt(env, cb), (int) ncols)), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_pattern__Lorg_kde_koala_KPixmap_2Lorg_kde_qt_QSize_2Lorg_kde_qt_QColor_2Lorg_kde_qt_QColor_2(JNIEnv *env, jclass obj, jobject pixmap, jobject size, jobject ca, jobject cb)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KPixmap(KPixmapEffect::pattern((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QSize) *(QSize *) QtSupport::getQt(env, size), (QColor&) *(QColor *) QtSupport::getQt(env, ca), (QColor&) *(QColor *) QtSupport::getQt(env, cb), 8)), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_fade(JNIEnv *env, jclass obj, jobject pixmap, jdouble val, jobject color)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::fade((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (double) val, (QColor&) *(QColor *) QtSupport::getQt(env, color)), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_toGray__Lorg_kde_koala_KPixmap_2Z(JNIEnv *env, jclass obj, jobject pixmap, jboolean fast)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::toGray((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (bool) fast), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_toGray__Lorg_kde_koala_KPixmap_2(JNIEnv *env, jclass obj, jobject pixmap)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KPixmap(KPixmapEffect::toGray((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), false)), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_desaturate__Lorg_kde_koala_KPixmap_2F(JNIEnv *env, jclass obj, jobject pixmap, jfloat desat)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::desaturate((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (float) desat), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_desaturate__Lorg_kde_koala_KPixmap_2(JNIEnv *env, jclass obj, jobject pixmap)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new KPixmap(KPixmapEffect::desaturate((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), 0.3)), "org.kde.koala.KPixmap", TRUE);
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_contrast(JNIEnv *env, jclass obj, jobject pixmap, jint c)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::contrast((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (int) c), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_dither(JNIEnv *env, jclass obj, jobject pixmap, jobject palette, jint size)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)(KPixmap *) &KPixmapEffect::dither((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QColor*) QtSupport::getQt(env, palette), (int) size), "org.kde.koala.KPixmap");
}

JNIEXPORT jobject JNICALL
Java_org_kde_koala_KPixmapEffect_selectedPixmap(JNIEnv *env, jclass obj, jobject pixmap, jobject col)
{
	return (jobject) QtSupport::objectForQtKey(env, (void *)new  KPixmap (KPixmapEffect::selectedPixmap((KPixmap&) *(KPixmap *) QtSupport::getQt(env, pixmap), (QColor&) *(QColor *) QtSupport::getQt(env, col))), "org.kde.koala.KPixmap", TRUE);
}

