class KPixmapEffect

This class includes various pixmap-based graphical effects. More...

Definition#include <kpixmapeffect.h>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Types

Public Static Methods


Detailed Description

This class includes various pixmap-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.

enum GradientType {VerticalGradient, HorizontalGradient, DiagonalGradient, CrossDiagonalGradient, PyramidGradient, RectangleGradient, PipeCrossGradient, EllipticGradient }

enum RGBComponent {Red, Green, Blue }

enum Lighting {NorthLite, NWLite, WestLite, SWLite, SouthLite, SELite, EastLite, NELite}

KPixmap&  gradient (KPixmap& pixmap, const QColor &ca, const QColor &cb, GradientType type, int ncols=3)

[static]

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

Parameters:

Returns: Returns the generated pixmap, for convenience.

KPixmap&  unbalancedGradient (KPixmap& pixmap, const QColor &ca, const QColor &cb, GradientType type, int xfactor = 100, int yfactor = 100, int ncols=3)

[static]

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.

Parameters:

Returns: The generated pixmap, for convencience.

KPixmap  createTiled (const KPixmap& pixmap, QSize size)

[static]

Create a Pixmap of a given size with the given pixmap.

if the given size is bigger than the size of the pixmap, the pixmap is tiled.

Parameters:

Returns: The generated, tiled pixmap.

KPixmap&  intensity (KPixmap& pixmap, float percent)

[static]

Either brighten or dim a pixmap by a specified percent.

Parameters:

Returns: Returns The pixmap(), provided for convenience.

KPixmap&  channelIntensity (KPixmap& pixmap, float percent, RGBComponent channel)

[static]

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

Parameters:

Returns: Returns the pixmap(), provided for convenience.

KPixmap&  blend (KPixmap& pixmap, float initial_intensity, const QColor &bgnd, GradientType eff, bool anti_dir=false, int ncols=3)

[static]

Blend the provided pixmap into a background of the indicated color

Parameters:

Returns: Returns the pixmap(), provided for convenience.

KPixmap&  hash (KPixmap& pixmap, Lighting lite=NorthLite, unsigned int spacing=0, int ncols=3)

[static]

Build a hash on any given Pixmap.

Parameters:

Returns: Returns The pixmap(), provided for convenience.

KPixmap  pattern (const KPixmap& pixmap, QSize size, const QColor &ca, const QColor &cb, int ncols=8)

[static]

Create a pattern from a pixmap.

The given pixmap is "flattened" between color a to color b.

Parameters:

Returns: The pixmap(), provided for convenience.

KPixmap&  fade (KPixmap& pixmap, double val, const QColor &color)

[static]

Recolor a pixmap.

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

Parameters:

Returns: Returns the pixmap(), provided for convenience.

KPixmap&  toGray (KPixmap& pixmap, bool fast=false)

[static]

Convert a pixmap to grayscale.

Parameters:

Returns: Returns the pixmap(), provided for convenience.

KPixmap&  desaturate (KPixmap& pixmap, float desat = 0.3)

[static]

Desaturate a pixmap.

Parameters:

Returns: Returns The pixmap(), provided for convenience.

KPixmap&  contrast (KPixmap& pixmap, int c)

[static]

Modifie the contrast of a pixmap.

Parameters:

Returns: Returns the pixmap(), provided for convenience.

KPixmap&  dither (KPixmap &pixmap, const QColor *palette, int size)

[static]

Dither a pixmap using Floyd-Steinberg dithering for low-color situations.

Parameters:

Returns: Returns the pixmap(), provided for convenience.


Generated by: prospector@porky.devel.redhat.com on Fri Nov 3 09:58:47 2000, using kdoc 2.0a42.