org.kde.koala
public class KPixmapEffect extends Object implements QtSupport
UNKNOWN: This class includes various pixmap-based graphical effects.
Field Summary | |
---|---|
static int | Blue |
static int | CrossDiagonalGradient |
static int | DiagonalGradient |
static int | EastLite |
static int | EllipticGradient |
static int | Green |
static int | HorizontalGradient |
static int | NELite |
static int | NorthLite |
static int | NWLite |
static int | PipeCrossGradient |
static int | PyramidGradient |
static int | RectangleGradient |
static int | Red |
static int | SELite |
static int | SouthLite |
static int | SWLite |
static int | VerticalGradient |
static int | WestLite |
Constructor Summary | |
---|---|
protected | KPixmapEffect(Class dummy) |
KPixmapEffect() |
Method Summary | |
---|---|
static KPixmap | blend(KPixmap pixmap, float initial_intensity, QColor bgnd, int eff, boolean anti_dir, int ncols)
Blends the provided pixmap into a background of the indicated color. |
static KPixmap | blend(KPixmap pixmap, float initial_intensity, QColor bgnd, int eff, boolean anti_dir) |
static KPixmap | blend(KPixmap pixmap, float initial_intensity, QColor bgnd, int eff) |
static KPixmap | channelIntensity(KPixmap pixmap, float ratio, int channel)
Modifies the intensity of a pixmap's RGB channel component. |
static KPixmap | contrast(KPixmap pixmap, int c)
Modifies the contrast of a pixmap. |
static KPixmap | createTiled(KPixmap pixmap, QSize size)
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. |
static KPixmap | desaturate(KPixmap pixmap, float desat)
Desaturates a pixmap. |
static KPixmap | desaturate(KPixmap pixmap) |
void | dispose() Delete the wrapped C++ instance ahead of finalize() |
static KPixmap | dither(KPixmap pixmap, QColor palette, int size)
Dithers a pixmap using Floyd-Steinberg dithering for low-color
situations. |
static KPixmap | fade(KPixmap pixmap, double val, QColor color)
Fades a pixmap to a certain color. |
protected void | finalize() Deletes the wrapped C++ instance |
static KPixmap | gradient(KPixmap pixmap, QColor ca, QColor cb, int type, int ncols)
Creates a gradient from color a to color b of the specified type. |
static KPixmap | gradient(KPixmap pixmap, QColor ca, QColor cb, int type) |
static KPixmap | hash(KPixmap pixmap, int lite, int spacing, int ncols)
Builds a hash on any given pixmap. |
static KPixmap | hash(KPixmap pixmap, int lite, int spacing) |
static KPixmap | hash(KPixmap pixmap, int lite) |
static KPixmap | hash(KPixmap pixmap) |
static KPixmap | intensity(KPixmap pixmap, float ratio)
Either brightens or dims a pixmap by a specified ratio. |
boolean | isDisposed() Has the wrapped C++ instance been deleted? |
static KPixmap | pattern(KPixmap pixmap, QSize size, QColor ca, QColor cb, int ncols)
Creates a pattern from a pixmap.
|
static KPixmap | pattern(KPixmap pixmap, QSize size, QColor ca, QColor cb) |
static KPixmap | selectedPixmap(KPixmap pixmap, QColor col)
Calculate a 'selected' pixmap, for instance a selected icon
on the desktop. |
static KPixmap | toGray(KPixmap pixmap, boolean fast)
Converts a pixmap to grayscale. |
static KPixmap | toGray(KPixmap pixmap) |
static KPixmap | unbalancedGradient(KPixmap pixmap, QColor ca, QColor cb, int type, int xfactor, int yfactor, int ncols)
Creates an unbalanced gradient.
|
static KPixmap | unbalancedGradient(KPixmap pixmap, QColor ca, QColor cb, int type, int xfactor, int yfactor) |
static KPixmap | unbalancedGradient(KPixmap pixmap, QColor ca, QColor cb, int type, int xfactor) |
static KPixmap | unbalancedGradient(KPixmap pixmap, QColor ca, QColor cb, int type) |
Parameters: pixmap The pixmap to process. initial_intensity this parameter takes values from -1 to 1:
Returns: Returns the pixmap(), provided for convenience.
UNKNOWN: Blends the provided pixmap into a background of the indicated color.
Parameters: 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.
UNKNOWN: Modifies the intensity of a pixmap's RGB channel component.
Parameters: pixmap The pixmap to process. c A contrast value between -255 and 255.
Returns: Returns the pixmap(), provided for convenience.
UNKNOWN: Modifies the contrast of a pixmap.
Parameters: pixmap This is the source pixmap size The size the new pixmap should have.
Returns: The generated, tiled pixmap.
UNKNOWN: Creates a pixmap of a given size with the given 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.
UNKNOWN: Desaturates a pixmap.
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.
UNKNOWN: Dithers a pixmap using Floyd-Steinberg dithering for low-color situations.
Parameters: 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.
UNKNOWN: Fades a pixmap to a certain color.
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.
UNKNOWN: Creates a gradient from color a to color b of the specified type.
Parameters: 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.
UNKNOWN: Builds a hash on any given pixmap.
Parameters: pixmap The pixmap to process. ratio The ratio to use. Use negative value to dim.
Returns: Returns The pixmap(), provided for convenience.
UNKNOWN: Either brightens or dims a pixmap by a specified ratio.
Parameters: 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.
UNKNOWN: Creates a pattern from a pixmap.
Parameters: pixmap the pixmap to select col the selected color, usually from QColorGroup.highlight().
UNKNOWN: Calculate a 'selected' pixmap, for instance a selected icon on the desktop.
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.
UNKNOWN: Converts a pixmap to grayscale.
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 #gradient.
Returns: The generated pixmap, for convencience.
UNKNOWN: Creates an unbalanced gradient.