\section{KImage\-Effect Class Reference}
\label{classKImageEffect}\index{KImageEffect@{KImageEffect}}
This class includes various {\bf QImage} based graphical effects.  


{\tt \#include $<$kimageeffect.h$>$}

\subsection*{Public Types}
\begin{CompactItemize}
\item 
enum {\bf Gradient\-Type} \{ \par
{\bf Vertical\-Gradient}, 
{\bf Horizontal\-Gradient}, 
{\bf Diagonal\-Gradient}, 
{\bf Cross\-Diagonal\-Gradient}, 
\par
{\bf Pyramid\-Gradient}, 
{\bf Rectangle\-Gradient}, 
{\bf Pipe\-Cross\-Gradient}, 
{\bf Elliptic\-Gradient}
 \}
\item 
enum {\bf RGBComponent} \{ \par
{\bf Red}, 
{\bf Green}, 
{\bf Blue}, 
{\bf Gray}, 
\par
{\bf All}
 \}
\item 
enum {\bf Lighting} \{ \par
{\bf North\-Lite}, 
{\bf NWLite}, 
{\bf West\-Lite}, 
{\bf SWLite}, 
\par
{\bf South\-Lite}, 
{\bf SELite}, 
{\bf East\-Lite}, 
{\bf NELite}
 \}
\item 
enum {\bf Modulation\-Type} \{ {\bf Intensity}, 
{\bf Saturation}, 
{\bf Hue\-Shift}, 
{\bf Contrast}
 \}
\item 
enum {\bf Noise\-Type} \{ \par
{\bf Uniform\-Noise} = 0, 
{\bf Gaussian\-Noise}, 
{\bf Multiplicative\-Gaussian\-Noise}, 
{\bf Impulse\-Noise}, 
\par
{\bf Laplacian\-Noise}, 
{\bf Poisson\-Noise}
 \}
\item 
enum {\bf Rotate\-Direction} \{ {\bf Rotate90}, 
{\bf Rotate180}, 
{\bf Rotate270}
 \}
\item 
enum {\bf Bumpmap\-Type} \{ {\bf Linear}, 
{\bf Spherical}, 
{\bf Sinuosidal}
 \}
\item 
enum {\bf Disposition} \{ \par
{\bf No\-Image} =  0, 
{\bf Centered}, 
{\bf Tiled}, 
{\bf Center\-Tiled}, 
\par
{\bf Centered\-Maxpect}, 
{\bf Tiled\-Maxpect}, 
{\bf Scaled}, 
{\bf Centered\-Auto\-Fit}
 \}
\end{CompactItemize}
\subsection*{Static Public Member Functions}
\begin{CompactItemize}
\item 
static {\bf QImage} {\bf gradient} (const {\bf QSize} \&size, const {\bf QColor} \&ca, const {\bf QColor} \&cb, {\bf Gradient\-Type} type, int ncols=3)
\item 
static {\bf QImage} {\bf unbalanced\-Gradient} (const {\bf QSize} \&size, const {\bf QColor} \&ca, const {\bf QColor} \&cb, {\bf Gradient\-Type} type, int xfactor=100, int yfactor=100, int ncols=3)
\item 
static {\bf QImage} \& {\bf blend} (const {\bf QColor} \&clr, {\bf QImage} \&dst, float opacity)
\item 
static {\bf QImage} \& {\bf blend} ({\bf QImage} \&src, {\bf QImage} \&dst, float opacity)
\item 
static {\bf QImage} \& {\bf blend} ({\bf QImage} \&image, float initial\_\-intensity, const {\bf QColor} \&bgnd, {\bf Gradient\-Type} eff, bool anti\_\-dir=false)
\item 
static {\bf QImage} \& {\bf blend} ({\bf QImage} \&image1, {\bf QImage} \&image2, {\bf Gradient\-Type} gt, int xf=100, int yf=100)
\item 
static {\bf QImage} \& {\bf blend} ({\bf QImage} \&image1, {\bf QImage} \&image2, {\bf QImage} \&blend\-Image, {\bf RGBComponent} channel)
\item 
static bool {\bf blend} (const {\bf QImage} \&upper, const {\bf QImage} \&lower, {\bf QImage} \&output)
\item 
static bool {\bf blend} (int \&x, int \&y, const {\bf QImage} \&upper, const {\bf QImage} \&lower, {\bf QImage} \&output)
\item 
static bool {\bf blend\-On\-Lower} (int x, int y, const {\bf QImage} \&upper, const {\bf QImage} \&lower)
\item 
static void {\bf blend\-On\-Lower} (const {\bf QImage} \&upper, const {\bf QPoint} \&upper\-Offset, {\bf QImage} \&lower, const {\bf QRect} \&lower\-Rect)
\item 
static void {\bf blend\-On\-Lower} (const {\bf QImage} \&upper, const {\bf QPoint} \&upper\-Offset, {\bf QImage} \&lower, const {\bf QRect} \&lower\-Rect, float opacity)
\item 
static {\bf QRect} {\bf compute\-Destination\-Rect} (const {\bf QSize} \&lower\-Size, {\bf Disposition} disposition, {\bf QImage} \&upper)
\item 
static void {\bf blend\-On\-Lower} ({\bf QImage} \&upper, {\bf QImage} \&lower, {\bf Disposition} disposition, float opacity)
\item 
static {\bf QImage} \& {\bf channel\-Intensity} ({\bf QImage} \&image, float percent, {\bf RGBComponent} channel)
\item 
static {\bf QImage} \& {\bf fade} ({\bf QImage} \&image, float val, const {\bf QColor} \&color)
\item 
static {\bf QImage} \& {\bf flatten} ({\bf QImage} \&image, const {\bf QColor} \&ca, const {\bf QColor} \&cb, int ncols=0)
\item 
static {\bf QImage} \& {\bf hash} ({\bf QImage} \&image, {\bf Lighting} lite=North\-Lite, unsigned int spacing=0)
\item 
static {\bf QImage} \& {\bf intensity} ({\bf QImage} \&image, float percent)
\item 
static {\bf QImage} \& {\bf modulate} ({\bf QImage} \&image, {\bf QImage} \&mod\-Image, bool reverse, {\bf Modulation\-Type} type, int factor, {\bf RGBComponent} channel)
\item 
static {\bf QImage} \& {\bf to\-Gray} ({\bf QImage} \&image, bool fast=false)
\item 
static {\bf QImage} \& {\bf desaturate} ({\bf QImage} \&image, float desat=0.3)
\item 
static {\bf QImage} \& {\bf contrast} ({\bf QImage} \&image, int c)
\item 
static {\bf QImage} \& {\bf dither} ({\bf QImage} \&image, const {\bf QColor} $\ast$palette, int size)
\item 
static {\bf QImage} \& {\bf selected\-Image} ({\bf QImage} \&img, const {\bf QColor} \&col)
\item 
static void {\bf contrast\-HSV} ({\bf QImage} \&img, bool sharpen=true)
\item 
static void {\bf normalize} ({\bf QImage} \&img)
\item 
static void {\bf equalize} ({\bf QImage} \&img)
\item 
static void {\bf threshold} ({\bf QImage} \&img, unsigned int value=128)
\item 
static void {\bf solarize} ({\bf QImage} \&img, double factor=50.0)
\item 
static {\bf QImage} {\bf emboss} ({\bf QImage} \&src, double radius, double sigma)
\item 
static {\bf QImage} {\bf emboss} ({\bf QImage} \&src)
\item 
static {\bf QImage} {\bf despeckle} ({\bf QImage} \&src)
\item 
static {\bf QImage} {\bf charcoal} ({\bf QImage} \&src, double radius, double sigma)
\item 
static {\bf QImage} {\bf charcoal} ({\bf QImage} \&src, double factor=50.0)
\item 
static {\bf QImage} {\bf rotate} ({\bf QImage} \&src, {\bf Rotate\-Direction} r)
\item 
static {\bf QImage} {\bf sample} ({\bf QImage} \&src, int w, int h)
\item 
static {\bf QImage} {\bf add\-Noise} ({\bf QImage} \&src, {\bf Noise\-Type} type=Gaussian\-Noise)
\item 
static {\bf QImage} {\bf blur} ({\bf QImage} \&src, double radius, double sigma)
\item 
static {\bf QImage} {\bf blur} ({\bf QImage} \&src, double factor=50.0)
\item 
static {\bf QImage} {\bf edge} ({\bf QImage} \&src, double radius)
\item 
static {\bf QImage} {\bf implode} ({\bf QImage} \&src, double factor=30.0, unsigned int background=0x\-FFFFFFFF)
\item 
static {\bf QImage} {\bf oil\-Paint\-Convolve} ({\bf QImage} \&src, double radius)
\item 
static {\bf QImage} {\bf oil\-Paint} ({\bf QImage} \&src, int radius=3)
\item 
static {\bf QImage} {\bf sharpen} ({\bf QImage} \&src, double radius, double sigma)
\item 
static {\bf QImage} {\bf sharpen} ({\bf QImage} \&src, double factor=30.0)
\item 
static {\bf QImage} {\bf spread} ({\bf QImage} \&src, unsigned int amount=3)
\item 
static {\bf QImage} {\bf shade} ({\bf QImage} \&src, bool color\_\-shading=true, double azimuth=30.0, double elevation=30.0)
\item 
static {\bf QImage} {\bf swirl} ({\bf QImage} \&src, double degrees=50.0, unsigned int background=0x\-FFFFFFFF)
\item 
static {\bf QImage} {\bf wave} ({\bf QImage} \&src, double amplitude=25.0, double frequency=150.0, unsigned int background=0x\-FFFFFFFF)
\item 
static {\bf QImage} {\bf bumpmap} ({\bf QImage} \&img, {\bf QImage} \&map, double azimuth, double elevation, int depth, int xofs, int yofs, int waterlevel, int ambient, bool compensate, bool invert, {\bf Bumpmap\-Type} type, bool tiled)
\end{CompactItemize}


\subsection{Detailed Description}
This class includes various {\bf QImage} based graphical effects. 

Everything is static, so there is no need to create an instance of this class. You can just call the static methods. They are encapsulated here merely to provide a common namespace. 



Definition at line 50 of file kimageeffect.h.

\subsection{Member Enumeration Documentation}
\index{KImageEffect@{KImage\-Effect}!GradientType@{GradientType}}
\index{GradientType@{GradientType}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KImage\-Effect::Gradient\-Type}}\label{classKImageEffect_w45}


This enum provides a gradient type specification. 

\begin{Desc}
\item[See also:]{\bf KImage\-Effect::blend()}{\rm (p.\,\pageref{classKImageEffect_e2})}, {\bf KImage\-Effect::gradient()}{\rm (p.\,\pageref{classKImageEffect_e0})}, {\bf KImage\-Effect::unbalanced\-Gradient()}{\rm (p.\,\pageref{classKImageEffect_e1})} \end{Desc}


Definition at line 58 of file kimageeffect.h.\index{KImageEffect@{KImage\-Effect}!RGBComponent@{RGBComponent}}
\index{RGBComponent@{RGBComponent}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KImage\-Effect::RGBComponent}}\label{classKImageEffect_w46}


This enum provides a RGB channel specification. 

\begin{Desc}
\item[See also:]{\bf KImage\-Effect::blend()}{\rm (p.\,\pageref{classKImageEffect_e2})}, {\bf KImage\-Effect::channel\-Intensity()}{\rm (p.\,\pageref{classKImageEffect_e14})}, {\bf KImage\-Effect::modulate()}{\rm (p.\,\pageref{classKImageEffect_e19})} \end{Desc}
\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{Red@{Red}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Red@{Red}}\item[{\em 
Red\label{classKImageEffect_w46w8}
}]Red channel. \index{Green@{Green}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Green@{Green}}\item[{\em 
Green\label{classKImageEffect_w46w9}
}]Green channel. \index{Blue@{Blue}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Blue@{Blue}}\item[{\em 
Blue\label{classKImageEffect_w46w10}
}]Blue channel. \index{Gray@{Gray}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Gray@{Gray}}\item[{\em 
Gray\label{classKImageEffect_w46w11}
}]Grey channel. \index{All@{All}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!All@{All}}\item[{\em 
All\label{classKImageEffect_w46w12}
}]All channels. \end{description}
\end{Desc}



Definition at line 73 of file kimageeffect.h.\index{KImageEffect@{KImage\-Effect}!Lighting@{Lighting}}
\index{Lighting@{Lighting}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KImage\-Effect::Lighting}}\label{classKImageEffect_w47}


This enum provides a lighting direction specification. 

\begin{Desc}
\item[See also:]{\bf KImage\-Effect::hash()}{\rm (p.\,\pageref{classKImageEffect_e17})} \end{Desc}
\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{NorthLite@{NorthLite}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!NorthLite@{NorthLite}}\item[{\em 
North\-Lite\label{classKImageEffect_w47w13}
}]Lighting from the top of the image. \index{NWLite@{NWLite}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!NWLite@{NWLite}}\item[{\em 
NWLite\label{classKImageEffect_w47w14}
}]Lighting from the top left of the image. \index{WestLite@{WestLite}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!WestLite@{WestLite}}\item[{\em 
West\-Lite\label{classKImageEffect_w47w15}
}]Lighting from the left of the image. \index{SWLite@{SWLite}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!SWLite@{SWLite}}\item[{\em 
SWLite\label{classKImageEffect_w47w16}
}]Lighting from the bottom left of the image. \index{SouthLite@{SouthLite}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!SouthLite@{SouthLite}}\item[{\em 
South\-Lite\label{classKImageEffect_w47w17}
}]Lighting from the bottom of the image. \index{SELite@{SELite}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!SELite@{SELite}}\item[{\em 
SELite\label{classKImageEffect_w47w18}
}]Lighting from the bottom right of the image. \index{EastLite@{EastLite}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!EastLite@{EastLite}}\item[{\em 
East\-Lite\label{classKImageEffect_w47w19}
}]Lighting from the right of the image. \index{NELite@{NELite}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!NELite@{NELite}}\item[{\em 
NELite\label{classKImageEffect_w47w20}
}]Lighting from the top right of the image. \end{description}
\end{Desc}



Definition at line 84 of file kimageeffect.h.\index{KImageEffect@{KImage\-Effect}!ModulationType@{ModulationType}}
\index{ModulationType@{ModulationType}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KImage\-Effect::Modulation\-Type}}\label{classKImageEffect_w48}


This enum provides a modulation type specification. 

\begin{Desc}
\item[See also:]{\bf KImage\-Effect::modulate()}{\rm (p.\,\pageref{classKImageEffect_e19})} \end{Desc}
\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{Intensity@{Intensity}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Intensity@{Intensity}}\item[{\em 
Intensity\label{classKImageEffect_w48w21}
}]Modulate image intensity. \index{Saturation@{Saturation}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Saturation@{Saturation}}\item[{\em 
Saturation\label{classKImageEffect_w48w22}
}]Modulate image saturation. \index{HueShift@{HueShift}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!HueShift@{HueShift}}\item[{\em 
Hue\-Shift\label{classKImageEffect_w48w23}
}]Modulate image hue. \index{Contrast@{Contrast}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Contrast@{Contrast}}\item[{\em 
Contrast\label{classKImageEffect_w48w24}
}]Modulate image contrast. \end{description}
\end{Desc}



Definition at line 98 of file kimageeffect.h.\index{KImageEffect@{KImage\-Effect}!NoiseType@{NoiseType}}
\index{NoiseType@{NoiseType}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KImage\-Effect::Noise\-Type}}\label{classKImageEffect_w49}


This enum provides a noise type specification. 

\begin{Desc}
\item[See also:]{\bf KImage\-Effect::add\-Noise()}{\rm (p.\,\pageref{classKImageEffect_e37})} \end{Desc}
\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{UniformNoise@{UniformNoise}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!UniformNoise@{UniformNoise}}\item[{\em 
Uniform\-Noise\label{classKImageEffect_w49w25}
}]Uniform distribution. \index{GaussianNoise@{GaussianNoise}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!GaussianNoise@{GaussianNoise}}\item[{\em 
Gaussian\-Noise\label{classKImageEffect_w49w26}
}]Gaussian distribution. \index{MultiplicativeGaussianNoise@{MultiplicativeGaussianNoise}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!MultiplicativeGaussianNoise@{MultiplicativeGaussianNoise}}\item[{\em 
Multiplicative\-Gaussian\-Noise\label{classKImageEffect_w49w27}
}]Multiplicative Gaussian distribution. \index{ImpulseNoise@{ImpulseNoise}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!ImpulseNoise@{ImpulseNoise}}\item[{\em 
Impulse\-Noise\label{classKImageEffect_w49w28}
}]Impulse distribution. \index{LaplacianNoise@{LaplacianNoise}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!LaplacianNoise@{LaplacianNoise}}\item[{\em 
Laplacian\-Noise\label{classKImageEffect_w49w29}
}]Laplacian distribution. \index{PoissonNoise@{PoissonNoise}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!PoissonNoise@{PoissonNoise}}\item[{\em 
Poisson\-Noise\label{classKImageEffect_w49w30}
}]Poisson distribution. \end{description}
\end{Desc}



Definition at line 108 of file kimageeffect.h.\index{KImageEffect@{KImage\-Effect}!RotateDirection@{RotateDirection}}
\index{RotateDirection@{RotateDirection}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KImage\-Effect::Rotate\-Direction}}\label{classKImageEffect_w50}


This enum provides a rotation specification. 

\begin{Desc}
\item[See also:]{\bf KImage\-Effect::rotate()}{\rm (p.\,\pageref{classKImageEffect_e35})} \end{Desc}
\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{Rotate90@{Rotate90}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Rotate90@{Rotate90}}\item[{\em 
Rotate90\label{classKImageEffect_w50w31}
}]Rotate 90 degrees to the right. \index{Rotate180@{Rotate180}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Rotate180@{Rotate180}}\item[{\em 
Rotate180\label{classKImageEffect_w50w32}
}]Rotate 180 degrees. \index{Rotate270@{Rotate270}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Rotate270@{Rotate270}}\item[{\em 
Rotate270\label{classKImageEffect_w50w33}
}]Rotate 90 degrees to the left. \end{description}
\end{Desc}



Definition at line 120 of file kimageeffect.h.\index{KImageEffect@{KImage\-Effect}!BumpmapType@{BumpmapType}}
\index{BumpmapType@{BumpmapType}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KImage\-Effect::Bumpmap\-Type}}\label{classKImageEffect_w51}


This enum lists possible bumpmapping implementations. 

\begin{Desc}
\item[See also:]{\bf KImage\-Effect::bumpmap()}{\rm (p.\,\pageref{classKImageEffect_e50})} \end{Desc}


Definition at line 129 of file kimageeffect.h.\index{KImageEffect@{KImage\-Effect}!Disposition@{Disposition}}
\index{Disposition@{Disposition}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}enum {\bf KImage\-Effect::Disposition}}\label{classKImageEffect_w52}


Disposition of a source image on top of a destination image. 

\begin{Desc}
\item[See also:]{\bf KImage\-Effect::compute\-Destination\-Rect}{\rm (p.\,\pageref{classKImageEffect_e12})}, {\bf KImage\-Effect::blend\-On\-Lower}{\rm (p.\,\pageref{classKImageEffect_e9})} \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}
\begin{Desc}
\item[Enumeration values: ]\par
\begin{description}
\index{NoImage@{NoImage}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!NoImage@{NoImage}}\item[{\em 
No\-Image\label{classKImageEffect_w52w37}
}]Don't overlay. \index{Centered@{Centered}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Centered@{Centered}}\item[{\em 
Centered\label{classKImageEffect_w52w38}
}]Center top image on botton image. \index{Tiled@{Tiled}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Tiled@{Tiled}}\item[{\em 
Tiled\label{classKImageEffect_w52w39}
}]Tile top image on bottom image. \index{CenterTiled@{CenterTiled}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!CenterTiled@{CenterTiled}}\item[{\em 
Center\-Tiled\label{classKImageEffect_w52w40}
}]Center and tile top image on bottom image. \index{CenteredMaxpect@{CenteredMaxpect}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!CenteredMaxpect@{CenteredMaxpect}}\item[{\em 
Centered\-Maxpect\label{classKImageEffect_w52w41}
}]Center and scale aspect. \index{TiledMaxpect@{TiledMaxpect}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!TiledMaxpect@{TiledMaxpect}}\item[{\em 
Tiled\-Maxpect\label{classKImageEffect_w52w42}
}]Tile and scale aspect. \index{Scaled@{Scaled}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!Scaled@{Scaled}}\item[{\em 
Scaled\label{classKImageEffect_w52w43}
}]Scale. \index{CenteredAutoFit@{CenteredAutoFit}!KImageEffect@{KImageEffect}}\index{KImageEffect@{KImageEffect}!CenteredAutoFit@{CenteredAutoFit}}\item[{\em 
Centered\-Auto\-Fit\label{classKImageEffect_w52w44}
}]Center and scale or scale aspect. \end{description}
\end{Desc}



Definition at line 326 of file kimageeffect.h.

\subsection{Member Function Documentation}
\index{KImageEffect@{KImage\-Effect}!gradient@{gradient}}
\index{gradient@{gradient}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::gradient (const {\bf QSize} \& {\em size}, const {\bf QColor} \& {\em ca}, const {\bf QColor} \& {\em cb}, {\bf Gradient\-Type} {\em type}, int {\em ncols} = {\tt 3})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e0}


Create a gradient from color a to color b of the specified type. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em size}]The desired size of the gradient. \item[{\em ca}]Color a \item[{\em cb}]Color b \item[{\em type}]The type of gradient. \item[{\em ncols}]The number of colors to use when not running on a truecolor display. The gradient will be dithered to this number of colors. Pass 0 to prevent dithering. \end{description}
\end{Desc}


Definition at line 123 of file kimageeffect.cpp.

References dither(), QImage::height(), QImage::scan\-Line(), QColor::set\-Rgb(), and QImage::width().

Referenced by KPixmap\-Effect::gradient().\index{KImageEffect@{KImage\-Effect}!unbalancedGradient@{unbalancedGradient}}
\index{unbalancedGradient@{unbalancedGradient}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::unbalanced\-Gradient (const {\bf QSize} \& {\em size}, const {\bf QColor} \& {\em ca}, const {\bf QColor} \& {\em cb}, {\bf Gradient\-Type} {\em type}, int {\em xfactor} = {\tt 100}, int {\em yfactor} = {\tt 100}, int {\em ncols} = {\tt 3})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e1}


Create an unbalanced gradient. 

An unbalanced gradient is a gradient where the transition from color a to color b is not linear, but in this case, exponential.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em size}]The desired size of the gradient. \item[{\em ca}]Color a \item[{\em cb}]Color b \item[{\em type}]The type of gradient. \item[{\em xfactor}]The x decay length. Use a value between -200 and 200. \item[{\em yfactor}]The y decay length. \item[{\em ncols}]The number of colors. See KImage\-Effect:gradient. \end{description}
\end{Desc}


Definition at line 387 of file kimageeffect.cpp.

References dither(), QImage::height(), QColor::rgb(), QImage::scan\-Line(), QColor::set\-Rgb(), and QImage::width().

Referenced by blend(), and KPixmap\-Effect::unbalanced\-Gradient().\index{KImageEffect@{KImage\-Effect}!blend@{blend}}
\index{blend@{blend}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::blend (const {\bf QColor} \& {\em clr}, {\bf QImage} \& {\em dst}, float {\em opacity})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e2}


Blends a color into the destination image, using an opacity value for blending one into another. 

Very fast direct pixel manipulation is used.

This function uses MMX and SSE2 instructions to blend the image on processors that support it.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em clr}]source color to be blended into the destination image. \item[{\em dst}]destination image in which the source will be blended into. \item[{\em opacity}]opacity (between 0.0 and 1.0) which determines how much the source color will be blended into the destination image. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The destination image (dst) containing the result. \end{Desc}
\begin{Desc}
\item[Author:]Karol Szwed ({\tt gallium@kde.org}) 

Fredrik H\"{o}glund ({\tt fredrik@kde.org}) \end{Desc}


Definition at line 1066 of file kimageeffect.cpp.

References QImage::bits(), QImage::convert\-Depth(), QImage::height(), and QImage::width().

Referenced by KPixmap\-Effect::blend(), blend(), and selected\-Image().\index{KImageEffect@{KImage\-Effect}!blend@{blend}}
\index{blend@{blend}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::blend ({\bf QImage} \& {\em src}, {\bf QImage} \& {\em dst}, float {\em opacity})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e3}


Blend the src image into the destination image, using an opacity value for blending one into another. 

Very fast direct pixel manipulation is used.

This function uses MMX and SSE2 instructions to blend the images on processors that support it.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]source image to be blended into the destination image. \item[{\em dst}]destination image in which the source will be blended into. \item[{\em opacity}]opacity (between 0.0 and 1.0) which determines how much the source image will be blended into the destination image. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The destination image (dst) containing the result. \end{Desc}
\begin{Desc}
\item[Author:]Karol Szwed ({\tt gallium@kde.org}) 

Fredrik H\"{o}glund ({\tt fredrik@kde.org}) \end{Desc}


Definition at line 1307 of file kimageeffect.cpp.

References QImage::bits(), QImage::convert\-Depth(), QImage::height(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!blend@{blend}}
\index{blend@{blend}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::blend ({\bf QImage} \& {\em image}, float {\em initial\_\-intensity}, const {\bf QColor} \& {\em bgnd}, {\bf Gradient\-Type} {\em eff}, bool {\em anti\_\-dir} = {\tt false})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e4}


Blend the provided image into a background of the indicated color. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em initial\_\-intensity}]this parameter takes values from -1 to 1: a) if positive: how much to fade the image in its less affected spot b) if negative: roughly indicates how much of the image remains unaffected \item[{\em bgnd}]indicates the color of the background to blend in \item[{\em eff}]lets you choose what kind of blending you like \item[{\em anti\_\-dir}]blend in the opposite direction (makes no much sense with concentric blending effects) \item[{\em image}]must be 32bpp \end{description}
\end{Desc}


Definition at line 1536 of file kimageeffect.cpp.

References QImage::bits(), QImage::height(), intensity(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!blend@{blend}}
\index{blend@{blend}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::blend ({\bf QImage} \& {\em image1}, {\bf QImage} \& {\em image2}, {\bf Gradient\-Type} {\em gt}, int {\em xf} = {\tt 100}, int {\em yf} = {\tt 100})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e5}


Blend an image into another one, using a gradient type for blending from one to another. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image1}]source1 and result of blending \item[{\em image2}]source2 of blending \item[{\em gt}]gradient type for blending between source1 and source2 \item[{\em xf}]x decay length for unbalanced gradient tpye \item[{\em yf}]y decay length for unbalanced gradient tpye \end{description}
\end{Desc}


Definition at line 1744 of file kimageeffect.cpp.

References blend(), Red, and unbalanced\-Gradient().\index{KImageEffect@{KImage\-Effect}!blend@{blend}}
\index{blend@{blend}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::blend ({\bf QImage} \& {\em image1}, {\bf QImage} \& {\em image2}, {\bf QImage} \& {\em blend\-Image}, {\bf RGBComponent} {\em channel})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e6}


Blend an image into another one, using a color channel of a third image for the decision of blending from one to another. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image1}]Source 1 and result of blending \item[{\em image2}]Source 2 of blending \item[{\em blend\-Image}]If the gray value of of pixel is 0, the result for this pixel is that of image1; for a gray value of 1, the pixel of image2 is used; for a value in between, a corresponding blending is used. \item[{\em channel}]The RBG channel to use for the blending decision. \end{description}
\end{Desc}


Definition at line 1762 of file kimageeffect.cpp.

References QImage::bits(), Blue, QImage::color\-Table(), QImage::convert\-Depth(), Green, QImage::height(), Red, and QImage::width().\index{KImageEffect@{KImage\-Effect}!blend@{blend}}
\index{blend@{blend}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KImage\-Effect::blend (const {\bf QImage} \& {\em upper}, const {\bf QImage} \& {\em lower}, {\bf QImage} \& {\em output})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e7}


Blend an image into another one, using alpha in the expected way. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em upper}]the \char`\"{}upper\char`\"{} image \item[{\em lower}]the \char`\"{}lower\char`\"{} image \item[{\em output}]the target image \end{description}
\end{Desc}
\begin{Desc}
\item[Author:]Rik Hemsley (rikkus) $<${\tt rik@kde.org}$>$ \end{Desc}


Definition at line 2377 of file kimageeffect.cpp.

References QImage::copy(), QImage::scan\-Line(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!blend@{blend}}
\index{blend@{blend}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KImage\-Effect::blend (int \& {\em x}, int \& {\em y}, const {\bf QImage} \& {\em upper}, const {\bf QImage} \& {\em lower}, {\bf QImage} \& {\em output})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e8}


Blend an image into another one, using alpha in the expected way and over coordinates {\tt x} and {\tt y} with respect to the lower image. 

The output is a {\bf QImage} which is the {\tt upper} image already blended with the {\tt lower} one, so its size will be (in general) the same than {\tt upper} instead of the same size than {\tt lower} like the method above. In fact, the size of {\tt output} is like upper's one only when it can be painted on lower, if there has to be some clipping, output's size will be the clipped area and x and y will be set to the correct up-left corner where the clipped rectangle begins. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em x}]x-coordinate of lower image \item[{\em y}]y-coordinate of lower image \item[{\em upper}]the \char`\"{}upper\char`\"{} image \item[{\em lower}]the \char`\"{}lower\char`\"{} image \item[{\em output}]the target image \end{description}
\end{Desc}


Definition at line 2449 of file kimageeffect.cpp.

References QImage::create(), QImage::height(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!blendOnLower@{blendOnLower}}
\index{blendOnLower@{blendOnLower}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}bool KImage\-Effect::blend\-On\-Lower (int {\em x}, int {\em y}, const {\bf QImage} \& {\em upper}, const {\bf QImage} \& {\em lower})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e9}


Blend an image into another one, using alpha in the expected way and over coordinates {\tt x} and {\tt y} with respect to the lower image. 

The output is painted in the own {\tt lower} image. This is an optimization of the blend method above provided by convenience. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em x}]x-coordinate of lower image \item[{\em y}]y-coordinate of lower image \item[{\em upper}]the \char`\"{}upper\char`\"{} image \item[{\em lower}]the \char`\"{}lower\char`\"{} image, which becomes the output image \end{description}
\end{Desc}


Definition at line 2513 of file kimageeffect.cpp.

References QImage::height(), QImage::scan\-Line(), and QImage::width().

Referenced by blend\-On\-Lower().\index{KImageEffect@{KImage\-Effect}!blendOnLower@{blendOnLower}}
\index{blendOnLower@{blendOnLower}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-Effect::blend\-On\-Lower (const {\bf QImage} \& {\em upper}, const {\bf QPoint} \& {\em upper\-Offset}, {\bf QImage} \& {\em lower}, const {\bf QRect} \& {\em lower\-Rect})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e10}


Blend part of an image into part of another, using the alpha channel in the expected way. 

Note that the destination rectangle will be correctly clipped.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em upper}]the \char`\"{}upper\char`\"{} image \item[{\em upper\-Offset}]Offset for the part of the upper image to be used. \item[{\em lower}]the \char`\"{}lower\char`\"{} image \item[{\em lower\-Rect}]Rectangle for the part of the lower image where the blending will occur. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 2583 of file kimageeffect.cpp.

References QRect::height(), QRect::is\-Valid(), QImage::rect(), QRect::set\-Height(), QRect::set\-Width(), QRect::width(), QRect::x(), and QRect::y().\index{KImageEffect@{KImage\-Effect}!blendOnLower@{blendOnLower}}
\index{blendOnLower@{blendOnLower}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-Effect::blend\-On\-Lower (const {\bf QImage} \& {\em upper}, const {\bf QPoint} \& {\em upper\-Offset}, {\bf QImage} \& {\em lower}, const {\bf QRect} \& {\em lower\-Rect}, float {\em opacity})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e11}


Blend part of an image into part of another, using the opacity value and the alpha channel in the expected way. 

Note that the destination rectangle will be correctly clipped.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em upper}]the \char`\"{}upper\char`\"{} image \item[{\em upper\-Offset}]Offset for the part of the upper image to be used. \item[{\em lower}]the \char`\"{}lower\char`\"{} image \item[{\em lower\-Rect}]Rectangle for the part of the lower image where the blending will occur. \item[{\em opacity}]Opacity (between 0.0 and 1.0) which determines how much the source image will be blended into the destination image. \end{description}
\end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 2605 of file kimageeffect.cpp.

References QRect::height(), QRect::is\-Valid(), QRect::rect(), QRect::set\-Height(), QRect::set\-Width(), QRect::width(), QRect::x(), and QRect::y().\index{KImageEffect@{KImage\-Effect}!computeDestinationRect@{computeDestinationRect}}
\index{computeDestinationRect@{computeDestinationRect}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QRect} KImage\-Effect::compute\-Destination\-Rect (const {\bf QSize} \& {\em lower\-Size}, {\bf Disposition} {\em disposition}, {\bf QImage} \& {\em upper})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e12}


Compute the destination rectangle where to draw the upper image on top of another image using the given disposition. 

For tiled disposition, the rectangle should be duplicated on the whole area to obtained the wanted effect.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em lower\-Size}]The size of the destination image. \item[{\em disposition}]The wanted disposition. \item[{\em upper}]The upper image. Note that this image may be scaled to adjust to the requested disposition.\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]the computed rectangle. Its size may exceed {\em lower\-Size\/}. \end{Desc}
\begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 2627 of file kimageeffect.cpp.

References Centered, Centered\-Auto\-Fit, Centered\-Maxpect, Center\-Tiled, QRect::height(), No\-Image, Scaled, QRect::set\-Coords(), QRect::set\-Rect(), Tiled, Tiled\-Maxpect, and QRect::width().

Referenced by blend\-On\-Lower().\index{KImageEffect@{KImage\-Effect}!blendOnLower@{blendOnLower}}
\index{blendOnLower@{blendOnLower}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-Effect::blend\-On\-Lower ({\bf QImage} \& {\em upper}, {\bf QImage} \& {\em lower}, {\bf Disposition} {\em disposition}, float {\em opacity})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e13}


Blend an image on top of another using a given disposition and a given opacity. 

The alpha channel of the upper image is used in the expected way. Beware the upper image may be modified. \begin{Desc}
\item[Since:]3.2 \end{Desc}


Definition at line 2692 of file kimageeffect.cpp.

References blend\-On\-Lower(), QRect::bottom(), compute\-Destination\-Rect(), QRect::height(), QRect::left(), QRect::right(), QRect::top(), and QRect::width().\index{KImageEffect@{KImage\-Effect}!channelIntensity@{channelIntensity}}
\index{channelIntensity@{channelIntensity}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::channel\-Intensity ({\bf QImage} \& {\em image}, float {\em percent}, {\bf RGBComponent} {\em channel})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e14}


Modifies the intensity of a pixmap's RGB channel component. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to process. \item[{\em percent}]Percent value. Use a negative value to dim. \item[{\em channel}]Which channel(s) should be modified \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The {\tt image}, provided for convenience. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 845 of file kimageeffect.cpp.

References QImage::bits(), QImage::color\-Table(), QImage::depth(), Green, QImage::height(), QImage::num\-Colors(), Red, and QImage::width().

Referenced by KPixmap\-Effect::channel\-Intensity().\index{KImageEffect@{KImage\-Effect}!fade@{fade}}
\index{fade@{fade}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::fade ({\bf QImage} \& {\em image}, float {\em val}, const {\bf QColor} \& {\em color})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e15}


Fade an image to a certain background color. 

The number of colors will not be changed.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to process. \item[{\em val}]The strength of the effect. 0 $<$= val $<$= 1. \item[{\em color}]The background color. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Returns the image(), provided for convenience. \end{Desc}


Definition at line 2043 of file kimageeffect.cpp.

References QImage::color(), QImage::scan\-Line(), and QImage::set\-Color().

Referenced by KPixmap\-Effect::fade().\index{KImageEffect@{KImage\-Effect}!flatten@{flatten}}
\index{flatten@{flatten}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::flatten ({\bf QImage} \& {\em image}, const {\bf QColor} \& {\em ca}, const {\bf QColor} \& {\em cb}, int {\em ncols} = {\tt 0})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e16}


This recolors a pixmap. 

The most dark color will become color a, the most bright one color b, and in between.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]A {\bf QImage} to process. \item[{\em ca}]Color a \item[{\em cb}]Color b \item[{\em ncols}]The number of colors to dither the image to. Pass 0 to prevent dithering. \end{description}
\end{Desc}


Definition at line 1946 of file kimageeffect.cpp.

References QImage::color(), dither(), QImage::pixel(), QImage::set\-Color(), and QImage::set\-Pixel().

Referenced by KPixmap\-Effect::pattern().\index{KImageEffect@{KImage\-Effect}!hash@{hash}}
\index{hash@{hash}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::hash ({\bf QImage} \& {\em image}, {\bf Lighting} {\em lite} = {\tt NorthLite}, unsigned int {\em spacing} = {\tt 0})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e17}


Build a hash on any given {\bf QImage}. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to process \item[{\em lite}]The hash faces the indicated lighting (cardinal poles). \item[{\em spacing}]How many unmodified pixels in between hashes. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Returns the image(), provided for convenience. \end{Desc}


Definition at line 1865 of file kimageeffect.cpp.

References QImage::bits(), East\-Lite, NELite, North\-Lite, NWLite, SELite, South\-Lite, SWLite, West\-Lite, and QImage::width().

Referenced by KPixmap\-Effect::hash().\index{KImageEffect@{KImage\-Effect}!intensity@{intensity}}
\index{intensity@{intensity}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::intensity ({\bf QImage} \& {\em image}, float {\em percent})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e18}


Either brighten or dim the image by a specified percent. 

For example, .50 will modify the colors by 50\%.

This function uses MMX instructions to process the image on processors that support it.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to process. \item[{\em percent}]The percent value. Use a negative value to dim. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Returns The image(), provided for convenience. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) 

Benjamin Roe ({\tt ben@benroe.com}) \end{Desc}


Definition at line 653 of file kimageeffect.cpp.

References QImage::bits(), QImage::color\-Table(), QImage::depth(), KCPUInfo::have\-Extension(), QImage::height(), QImage::num\-Colors(), and QImage::width().

Referenced by blend(), and KPixmap\-Effect::intensity().\index{KImageEffect@{KImage\-Effect}!modulate@{modulate}}
\index{modulate@{modulate}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::modulate ({\bf QImage} \& {\em image}, {\bf QImage} \& {\em mod\-Image}, bool {\em reverse}, {\bf Modulation\-Type} {\em type}, int {\em factor}, {\bf RGBComponent} {\em channel})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e19}


Modulate the image with a color channel of another image. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to modulate and result. \item[{\em mod\-Image}]The {\bf QImage} to use for modulation. \item[{\em reverse}]Invert the meaning of image/mod\-Image; result is image! \item[{\em type}]The modulation Type to use. \item[{\em factor}]The modulation amplitude; with 0 no effect [-200;200]. \item[{\em channel}]The RBG channel of image2 to use for modulation. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Returns the image(), provided for convenience. \end{Desc}


Definition at line 936 of file kimageeffect.cpp.

References All, Blue, QImage::color\-Table(), Contrast, QImage::convert\-Depth(), Gray, Green, QImage::height(), Hue\-Shift, Intensity, Red, QColor::rgb(), Saturation, QImage::scan\-Line(), QColor::set\-Hsv(), QColor::set\-Rgb(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!toGray@{toGray}}
\index{toGray@{toGray}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::to\-Gray ({\bf QImage} \& {\em image}, bool {\em fast} = {\tt false})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e20}


Convert an image to grayscale. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to process. \item[{\em fast}]Set to {\tt true} in order to use a faster but non-photographic quality algorithm. Appropriate for things such as toolbar icons. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Returns the image(), provided for convenience. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 2125 of file kimageeffect.cpp.

Referenced by charcoal(), and KPixmap\-Effect::to\-Gray().\index{KImageEffect@{KImage\-Effect}!desaturate@{desaturate}}
\index{desaturate@{desaturate}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::desaturate ({\bf QImage} \& {\em image}, float {\em desat} = {\tt 0.3})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e21}


Desaturate an image evenly. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to process. \item[{\em desat}]A value between 0 and 1 setting the degree of desaturation \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Returns the image(), provided for convenience. \end{Desc}


Definition at line 2175 of file kimageeffect.cpp.

References QImage::bits(), QImage::color\-Table(), QImage::depth(), QImage::height(), QImage::num\-Colors(), QColor::rgb(), QColor::set\-Hsv(), QColor::set\-Rgb(), and QImage::width().

Referenced by KPixmap\-Effect::desaturate().\index{KImageEffect@{KImage\-Effect}!contrast@{contrast}}
\index{contrast@{contrast}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::contrast ({\bf QImage} \& {\em image}, int {\em c})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e22}


Fast, but low quality contrast of an image. 

Also see contrast\-HSV.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to process. \item[{\em c}]A contrast value between -255 to 255. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The image(), provided for convenience. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \#\#\# {\bf KDE} 4: remove \end{Desc}


Definition at line 2198 of file kimageeffect.cpp.

References QImage::bits(), QImage::color\-Table(), QImage::depth(), QImage::height(), QImage::num\-Colors(), and QImage::width().

Referenced by KPixmap\-Effect::contrast().\index{KImageEffect@{KImage\-Effect}!dither@{dither}}
\index{dither@{dither}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::dither ({\bf QImage} \& {\em image}, const {\bf QColor} $\ast$ {\em palette}, int {\em size})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e23}


Dither an image using Floyd-Steinberg dithering for low-color situations. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em image}]The {\bf QImage} to process. \item[{\em palette}]The color palette to use \item[{\em size}]The size of the palette \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]Returns the image(), provided for convenience. \end{Desc}


Definition at line 2260 of file kimageeffect.cpp.

References QImage::scan\-Line(), QImage::set\-Color(), QImage::set\-Num\-Colors(), and QImage::width().

Referenced by KPixmap\-Effect::blend(), KPixmap\-Effect::dither(), flatten(), gradient(), KPixmap\-Effect::hash(), and unbalanced\-Gradient().\index{KImageEffect@{KImage\-Effect}!selectedImage@{selectedImage}}
\index{selectedImage@{selectedImage}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} \& KImage\-Effect::selected\-Image ({\bf QImage} \& {\em img}, const {\bf QColor} \& {\em col})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e24}


Calculate the image for a selected image, for instance a selected icon on the desktop. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em img}]the {\bf QImage} to select \item[{\em col}]the selected color, usually from {\bf QColor\-Group::highlight()}. \end{description}
\end{Desc}


Definition at line 2704 of file kimageeffect.cpp.

References blend().

Referenced by KPixmap\-Effect::selected\-Pixmap().\index{KImageEffect@{KImage\-Effect}!contrastHSV@{contrastHSV}}
\index{contrastHSV@{contrastHSV}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-Effect::contrast\-HSV ({\bf QImage} \& {\em img}, bool {\em sharpen} = {\tt true})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e25}


High quality, expensive HSV contrast. 

You can do a faster one by just taking a intensity threshold (ie: 128) and incrementing RGB color channels above it and decrementing those below it, but this gives much better results.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em img}]The {\bf QImage} to process. \item[{\em sharpen}]If true sharpness is increase, (spiffed). Otherwise it is decreased, (dulled). \end{description}
\end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 4642 of file kimageeffect.cpp.

References QColor::blue(), QColor::green(), QColor::red(), QColor::set\-Hsv(), and QColor::set\-Rgb().\index{KImageEffect@{KImage\-Effect}!normalize@{normalize}}
\index{normalize@{normalize}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-Effect::normalize ({\bf QImage} \& {\em img})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e26}


Normalises the pixel values to span the full range of color values. 

This is a contrast enhancement technique. \begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em img}]the image that is normalised \end{description}
\end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3721 of file kimageeffect.cpp.

Referenced by charcoal().\index{KImageEffect@{KImage\-Effect}!equalize@{equalize}}
\index{equalize@{equalize}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-Effect::equalize ({\bf QImage} \& {\em img})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e27}


Performs histogram equalisation on the reference image. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em img}]the image that is equalised \end{description}
\end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3931 of file kimageeffect.cpp.

Referenced by emboss().\index{KImageEffect@{KImage\-Effect}!threshold@{threshold}}
\index{threshold@{threshold}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-Effect::threshold ({\bf QImage} \& {\em img}, unsigned int {\em value} = {\tt 128})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e28}


Thresholds the reference image. 

You can also threshold images by using Threshold\-Dither in the various QPixmap/QImage convert methods, but this lets you specify a threshold value.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em img}]The {\bf QImage} to process. \item[{\em value}]The threshold value. \end{description}
\end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 2839 of file kimageeffect.cpp.

References QImage::bits(), QImage::color\-Table(), QImage::height(), QImage::num\-Colors(), and QImage::width().

Referenced by solarize().\index{KImageEffect@{KImage\-Effect}!solarize@{solarize}}
\index{solarize@{solarize}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}void KImage\-Effect::solarize ({\bf QImage} \& {\em img}, double {\em factor} = {\tt 50.0})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e29}


Produces a 'solarization' effect seen when exposing a photographic film to light during the development process. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em img}]The {\bf QImage} to process. \item[{\em factor}]The extent of the solarization (0-99.9) \end{description}
\end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3450 of file kimageeffect.cpp.

References QImage::bits(), QImage::color\-Table(), QImage::height(), QImage::num\-Colors(), threshold(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!emboss@{emboss}}
\index{emboss@{emboss}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::emboss ({\bf QImage} \& {\em src}, double {\em radius}, double {\em sigma})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e30}


Embosses the source image. 

This involves highlighting the edges and applying various other enhancements in order to get a metal effect.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em radius}]The radius of the gaussian not counting the center pixel. Use 0 and a suitable radius will be automatically used. \item[{\em sigma}]The standard deviation of the gaussian. Use 1 if you're not sure. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The embossed image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 4069 of file kimageeffect.cpp.

References QImage::convert\-Depth(), and equalize().

Referenced by emboss().\index{KImageEffect@{KImage\-Effect}!emboss@{emboss}}
\index{emboss@{emboss}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::emboss ({\bf QImage} \& {\em src})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e31}


Convenience method. 



Definition at line 4063 of file kimageeffect.cpp.

References emboss().\index{KImageEffect@{KImage\-Effect}!despeckle@{despeckle}}
\index{despeckle@{despeckle}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::despeckle ({\bf QImage} \& {\em src})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e32}


Minimizes speckle noise in the source image using the 8 hull algorithm. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The despeckled image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 2935 of file kimageeffect.cpp.

References QImage::color\-Table(), QImage::scan\-Line(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!charcoal@{charcoal}}
\index{charcoal@{charcoal}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::charcoal ({\bf QImage} \& {\em src}, double {\em radius}, double {\em sigma})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e33}


Produces a neat little \char`\"{}charcoal\char`\"{} effect. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em radius}]The radius of the gaussian not counting the center pixel. Use 0 and a suitable radius will be automatically used. \item[{\em sigma}]The standard deviation of the gaussian. Use 1 if you're not sure. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The charcoal image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3711 of file kimageeffect.cpp.

References blur(), edge(), QImage::invert\-Pixels(), normalize(), and to\-Gray().

Referenced by charcoal().\index{KImageEffect@{KImage\-Effect}!charcoal@{charcoal}}
\index{charcoal@{charcoal}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::charcoal ({\bf QImage} \& {\em src}, double {\em factor} = {\tt 50.0})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e34}


This is provided for binary compatability only! Use the above method with a radius and sigma instead! 



Definition at line 3705 of file kimageeffect.cpp.

References charcoal().\index{KImageEffect@{KImage\-Effect}!rotate@{rotate}}
\index{rotate@{rotate}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::rotate ({\bf QImage} \& {\em src}, {\bf Rotate\-Direction} {\em r})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e35}


Rotates the image by the specified amount. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em r}]The rotate direction. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The rotated image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3352 of file kimageeffect.cpp.

References QImage::color\-Table(), QImage::create(), Rotate180, Rotate270, Rotate90, QImage::scan\-Line(), and QImage::set\-Num\-Colors().\index{KImageEffect@{KImage\-Effect}!sample@{sample}}
\index{sample@{sample}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::sample ({\bf QImage} \& {\em src}, int {\em w}, int {\em h})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e36}


Scales an image using simple pixel sampling. 

This does not produce nearly as nice a result as {\bf QImage::smooth\-Scale()}, but has the advantage of being much faster - only a few milliseconds.

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em w}]The new width. \item[{\em h}]The new height. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The scaled image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 2746 of file kimageeffect.cpp.

References QImage::height(), QImage::scan\-Line(), QImage::set\-Num\-Colors(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!addNoise@{addNoise}}
\index{addNoise@{addNoise}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::add\-Noise ({\bf QImage} \& {\em src}, {\bf Noise\-Type} {\em type} = {\tt GaussianNoise})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e37}


Adds noise to an image. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em type}]The algorithm used to generate the noise. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The image with noise added. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3141 of file kimageeffect.cpp.

References QImage::color\-Table(), and QImage::scan\-Line().\index{KImageEffect@{KImage\-Effect}!blur@{blur}}
\index{blur@{blur}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::blur ({\bf QImage} \& {\em src}, double {\em radius}, double {\em sigma})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e38}


Blurs an image by convolving pixel neighborhoods. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em radius}]The radius of the gaussian not counting the center pixel. Use 0 and a suitable radius will be automatically used. \item[{\em sigma}]The standard deviation of the gaussian. Use 1 if you're not sure. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The blurred image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 4288 of file kimageeffect.cpp.

References QImage::convert\-Depth(), QImage::create(), QImage::jump\-Table(), and QImage::scan\-Line().

Referenced by blur(), and charcoal().\index{KImageEffect@{KImage\-Effect}!blur@{blur}}
\index{blur@{blur}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::blur ({\bf QImage} \& {\em src}, double {\em factor} = {\tt 50.0})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e39}


This is provided for binary compatability only! Use the above method with a radius and sigma instead! 



Definition at line 4282 of file kimageeffect.cpp.

References blur().\index{KImageEffect@{KImage\-Effect}!edge@{edge}}
\index{edge@{edge}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::edge ({\bf QImage} \& {\em src}, double {\em radius})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e40}


Detects edges in an image using pixel neighborhoods and an edge detection mask. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em radius}]The radius of the gaussian not counting the center pixel. Use 0 and a suitable radius will be automatically used. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The image with edges detected. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 4031 of file kimageeffect.cpp.

Referenced by charcoal().\index{KImageEffect@{KImage\-Effect}!implode@{implode}}
\index{implode@{implode}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::implode ({\bf QImage} \& {\em src}, double {\em factor} = {\tt 30.0}, unsigned int {\em background} = {\tt 0xFFFFFFFF})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e41}


Implodes an image by a specified percent. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em factor}]The extent of the implosion. \item[{\em background}]An RGBA value to use for the background. After the effect some pixels may be \char`\"{}empty\char`\"{}. This value is used for those pixels. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The imploded image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3271 of file kimageeffect.cpp.

References QImage::color\-Table(), QImage::height(), QImage::scan\-Line(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!oilPaintConvolve@{oilPaintConvolve}}
\index{oilPaintConvolve@{oilPaintConvolve}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::oil\-Paint\-Convolve ({\bf QImage} \& {\em src}, double {\em radius})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e42}


Produces an oil painting effect. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em radius}]The radius of the gaussian not counting the center pixel. Use 0 and a suitable radius will be automatically used. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3641 of file kimageeffect.cpp.

References QImage::convert\-Depth(), QImage::detach(), QImage::height(), QImage::jump\-Table(), QImage::scan\-Line(), and QImage::width().

Referenced by oil\-Paint().\index{KImageEffect@{KImage\-Effect}!oilPaint@{oilPaint}}
\index{oilPaint@{oilPaint}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::oil\-Paint ({\bf QImage} \& {\em src}, int {\em radius} = {\tt 3})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e43}


This is provided for binary compatability only! Use the above method instead! 



Definition at line 3635 of file kimageeffect.cpp.

References oil\-Paint\-Convolve().\index{KImageEffect@{KImage\-Effect}!sharpen@{sharpen}}
\index{sharpen@{sharpen}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::sharpen ({\bf QImage} \& {\em src}, double {\em radius}, double {\em sigma})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e44}


Sharpens the pixels in the image using pixel neighborhoods. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em radius}]The radius of the gaussian not counting the center pixel. Use 0 and a suitable radius will be automatically used. \item[{\em sigma}]The standard deviation of the gaussian. Use 1 if you're not sure. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The sharpened image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 4464 of file kimageeffect.cpp.

Referenced by sharpen().\index{KImageEffect@{KImage\-Effect}!sharpen@{sharpen}}
\index{sharpen@{sharpen}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::sharpen ({\bf QImage} \& {\em src}, double {\em factor} = {\tt 30.0})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e45}


This is provided for binary compatability only! Use the above method instead! 



Definition at line 4458 of file kimageeffect.cpp.

References sharpen().\index{KImageEffect@{KImage\-Effect}!spread@{spread}}
\index{spread@{spread}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::spread ({\bf QImage} \& {\em src}, unsigned int {\em amount} = {\tt 3})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e46}


Randomly displaces pixels. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em amount}]The vicinity for choosing a random pixel to swap. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The image with pixels displaced. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3473 of file kimageeffect.cpp.

References QImage::detach(), and QImage::scan\-Line().\index{KImageEffect@{KImage\-Effect}!shade@{shade}}
\index{shade@{shade}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::shade ({\bf QImage} \& {\em src}, bool {\em color\_\-shading} = {\tt true}, double {\em azimuth} = {\tt 30.0}, double {\em elevation} = {\tt 30.0})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e47}


Shades the image using a distance light source. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em color\_\-shading}]If true do color shading, otherwise do grayscale. \item[{\em azimuth}]Determines the light source and direction. \item[{\em elevation}]Determines the light source and direction. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The shaded image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 4504 of file kimageeffect.cpp.

References shade().

Referenced by shade().\index{KImageEffect@{KImage\-Effect}!swirl@{swirl}}
\index{swirl@{swirl}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::swirl ({\bf QImage} \& {\em src}, double {\em degrees} = {\tt 50.0}, unsigned int {\em background} = {\tt 0xFFFFFFFF})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e48}


Swirls the image by a specified amount. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em degrees}]The tightness of the swirl. \item[{\em background}]An RGBA value to use for the background. After the effect some pixels may be \char`\"{}empty\char`\"{}. This value is used for those pixels. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The swirled image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3524 of file kimageeffect.cpp.

References QImage::color\-Table(), QImage::height(), QImage::scan\-Line(), and QImage::width().\index{KImageEffect@{KImage\-Effect}!wave@{wave}}
\index{wave@{wave}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::wave ({\bf QImage} \& {\em src}, double {\em amplitude} = {\tt 25.0}, double {\em frequency} = {\tt 150.0}, unsigned int {\em background} = {\tt 0xFFFFFFFF})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e49}


Modifies the pixels along a sine wave. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em src}]The {\bf QImage} to process. \item[{\em amplitude}]The amplitude of the sine wave. \item[{\em frequency}]The frequency of the sine wave. \item[{\em background}]An RGBA value to use for the background. After the effect some pixels may be \char`\"{}empty\char`\"{}. This value is used for those pixels. \end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The new image. The original is not changed. \end{Desc}
\begin{Desc}
\item[Author:]Daniel M. Duley (mosfet) \end{Desc}


Definition at line 3602 of file kimageeffect.cpp.

References QImage::scan\-Line().\index{KImageEffect@{KImage\-Effect}!bumpmap@{bumpmap}}
\index{bumpmap@{bumpmap}!KImageEffect@{KImage\-Effect}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}{\bf QImage} KImage\-Effect::bumpmap ({\bf QImage} \& {\em img}, {\bf QImage} \& {\em map}, double {\em azimuth}, double {\em elevation}, int {\em depth}, int {\em xofs}, int {\em yofs}, int {\em waterlevel}, int {\em ambient}, bool {\em compensate}, bool {\em invert}, {\bf Bumpmap\-Type} {\em type}, bool {\em tiled})\hspace{0.3cm}{\tt  [static]}}\label{classKImageEffect_e50}


A bumpmapping algorithm. 

\begin{Desc}
\item[Parameters:]
\begin{description}
\item[{\em img}]the image you want bumpmap \item[{\em map}]the map used \item[{\em azimuth}]azimuth \item[{\em elevation}]elevation \item[{\em depth}]depth (not the depth of the image, but of the map) \item[{\em xofs}]X offset \item[{\em yofs}]Y offset \item[{\em waterlevel}]level that full transparency should represent \item[{\em ambient}]ambient lighting factor \item[{\em compensate}]compensate for darkening \item[{\em invert}]invert bumpmap \item[{\em type}]type of the bumpmap \item[{\em tiled}]tile the bumpmap over the image through the Y offset\end{description}
\end{Desc}
\begin{Desc}
\item[Returns:]The destination image (dst) containing the result. \end{Desc}
\begin{Desc}
\item[Author:]Zack Rusin $<${\tt zack@kde.org}$>$ \end{Desc}


Definition at line 4885 of file kimageeffect.cpp.

References QImage::create(), QImage::depth(), FXCLAMP, QImage::has\-Alpha\-Buffer(), QImage::height(), QImage::scan\-Line(), and QImage::width().

The documentation for this class was generated from the following files:\begin{CompactItemize}
\item 
kimageeffect.h\item 
kimageeffect.cpp\end{CompactItemize}
