summaryrefslogtreecommitdiffstats
path: root/kview/modules/effects/kvieweffects.h
blob: 461b9c0f72a8f7bc6453151c0a86707cb76245b1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* This file is in the public domain */

// $Id$

#ifndef KVIEWEFFECTS_H
#define KVIEWEFFECTS_H

#include <tdeparts/plugin.h>
#include <tqcolor.h>

namespace KImageViewer { class Viewer; }

class KViewEffects : public KParts::Plugin
{
	Q_OBJECT
  
public:
	KViewEffects( TQObject* parent, const char* name, const TQStringList & );
	virtual ~KViewEffects();

private slots:
	void intensity();
	void setIntensity( int );
	void applyIntensity();

	void blend();
	void setOpacity( int );
	void setColor( const TQColor & );
	void applyBlend();

	void gamma();
	void setGammaValue( double );
	void applyGammaCorrection();

private:
	TQImage * workImage();

	KImageViewer::Viewer * m_pViewer;
	double m_gamma, m_lastgamma;
	int m_opacity, m_lastopacity;
	int m_intensity, m_lastintensity;
	TQColor m_color;
	TQImage * m_image;
};

// vim:sw=4:ts=4:cindent
#endif // KVIEWEFFECTS_H