Namespace KPixmapEffect |
|
|
Provides various pixmap-based graphical effects. |
|
Blends the provided pixmap into a background of the indicated color.
pixmap - The pixmap to process. initial_intensity - this parameter takes values from -1 to 1: 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). ncols - The number of colors to dither the pixmap to. Only used for 8 bpp pixmaps. Returns Returns the pixmap(), provided for convenience. |
|
Modifies the intensity of a pixmap's RGB channel component.
pixmap - The pixmap to process. ratio - value. Use negative value to dim. channel - Which channel(s) should be modified Returns Returns the pixmap(), provided for convenience. |
|
Modifies the contrast of a pixmap.
pixmap - The pixmap to process. c - A contrast value between -255 and 255. Returns Returns the pixmap(), provided for convenience. |
|
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.
pixmap - This is the source pixmap size - The size the new pixmap should have. Returns The generated, tiled pixmap. |
|
Desaturates a pixmap.
pixmap - The pixmap to process. desat - A value between 0 and 1 setting the degree of desaturation Returns Returns The pixmap(), provided for convenience. |
|
Dithers a pixmap using Floyd-Steinberg dithering for low-color situations.
pixmap - The pixmap to process. palette - The color palette to use. size - The size of the palette. Returns Returns the pixmap(), provided for convenience. |
|
Fades a pixmap to a certain color.
pixmap - The pixmap to process. val - The strength of the effect. 0 <= val <= 1. color - The color to blend to. Returns Returns the pixmap(), provided for convenience. |
|
Creates a gradient from color a to color b of the specified type.
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. |
|
Builds a hash on any given pixmap.
pixmap - The pixmap to process. lite - The hash faces the indicated lighting (cardinal poles) spacing - How many unmodified pixels inbetween hashes. ncols - The number of colors to dither the pixmap to. Only used for 8 bpp pixmaps. Returns Returns The pixmap(), provided for convenience. |
|
Either brightens or dims a pixmap by a specified ratio.
pixmap - The pixmap to process. ratio - The ratio to use. Use negative value to dim. Returns Returns The pixmap(), provided for convenience. |
|
Creates a pattern from a pixmap. The given pixmap is "flattened" between color a to color b. Doesn't change the original pixmap.
pixmap - The pixmap to process. size - The size of the returned pixmap. If size is larger than the original, the resulting pixmap will be tiled. 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 The resulting pixmap. |
|
Calculate a 'selected' pixmap, for instance a selected icon on the desktop. pixmap - the pixmap to select col - the selected color, usually from QPalette.highlight(). |
|
Converts a pixmap to grayscale.
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. |
|
Creates 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.
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. #gradient. Returns The generated pixmap, for convencience. |