|
|
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.
KPixmap& |
[static]
Create a gradient from color a to color b of the specified type.
Parameters:
pixmap | The pixmap to process. |
ca | Color a |
cb | Color b |
type | The type of gradient. |
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. |
Returns: Returns the generated pixmap, for convenience.
KPixmap& |
[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:
pixmap | The pixmap that should be written. |
ca | Color a |
cb | Color b |
type | The type of gradient. |
xfactor | The x decay length. Use a value between -200 and 200. |
yfactor | The y decay length. |
ncols | The number of colors. See KPixmapEffect:gradient. |
Returns: Returns the generated pixmap, for convencience.
KPixmap |
[static]
creates 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:
pixmap | This is the source pixmap |
size | size the new pixmap should have |
Returns: Returns the generated, tiled pixmap.
KPixmap& |
[static]
Either brightens or dims a pixmap by a specified percent.
Parameters:
pixmap | The pixmap to process. |
percent | the percent value. Use negative value to dim. |
Returns: Returns the pixmap, provided for convenience.
KPixmap& |
[static]
Modifies the intensity of a pixmap's RGB channel component.
Parameters:
pixmap | The pixmap to process. |
percent | percent value. Use negative value to dim. |
channel | which channel(s) should be modified |
Returns: Returns the pixmap, provided for convenience.
KPixmap& |
[static]
Blends the provided pixmap into a background of the indicated color
Parameters:
pixmap | The pixmap to process. |
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 |
bgnd | indicates the color of the background to blend in |
eff | lets you choose what kind of blending you like |
anti_dir | blend in the opposite direction (makes no much sense with concentric blending effects) |
Returns: Returns the pixmap, provided for convenience.
KPixmap& |
[static]
Builds a hash on any given Pixmap
Parameters:
pixmap | The pixmap to process. |
lite | - the hash faces the indicated lighting (cardinal poles) |
spacing | - how many unmodified pixels inbetween hashes |
Returns: Returns the pixmap, provided for convenience.
KPixmap |
[static]
Create a pattern from a pixmap. The given pixmap is "flattened" between color a to color b.
Parameters:
pixmap | The pixmap to process. |
ca | Color a. |
cb | Color b. |
ncols | The number of colors to use. The image will be dithered to this depth. Pass zero to prevent dithering. |
Returns: Returns the pixmap, provided for convenience.
KPixmap& |
[static]
This recolors a pixmap. The most dark color will become color a, the most bright one color b, and in between.
Parameters:
pixmap | The pixmap to process. |
ca | Color a |
cb | Color b |
ncols | The number of colors to use. Pass zero to prevent dithering. |
Returns: Returns the pixmap, provided for convenience.
KPixmap& |
[static]
Converts a pixmap to grayscale.
Parameters:
pixmap | The pixmap to process. |
fast | Set to true in order to use a faster but non-photographic quality algorithm. Appropriate for things such as toolbar icons. |
Returns: Returns the pixmap, provided for convenience.
KPixmap& |
[static]
Desaturates a pixmap.
Parameters:
pixmap | The pixmap to process. |
desat | A value between 0 and 1 setting the degree of desaturation |
Returns: Returns the pixmap, provided for convenience.
KPixmap& |
[static]
Modifies the contrast of a pixmap.
Parameters:
pixmap | The pixmap to process. |
c | a contrast value between -255 and 255 |
Returns: Returns the pixmap, provided for convenience.
KPixmap& |
[static]
Dithers an pixmap using Floyd-Steinberg dithering for low-color situations.
Parameters:
pixmap | The pixmap to process. |
palette | The color palette to use |
size | The size of the palette |
Returns: Returns the pixmap, provided for convenience.
Generated by: dfaure@faure on Sun Mar 26 14:24:24 2000, using kdoc 2.0a35. |