|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.kde.koala.KImageEffect
public class KImageEffect
This class includes various 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.
Field Summary | |
---|---|
static int |
All
|
static int |
Blue
|
static int |
Centered
|
static int |
CenteredAutoFit
|
static int |
CenteredMaxpect
|
static int |
CenterTiled
|
static int |
Contrast
|
static int |
CrossDiagonalGradient
|
static int |
DiagonalGradient
|
static int |
EastLite
|
static int |
EllipticGradient
|
static int |
GaussianNoise
|
static int |
Gray
|
static int |
Green
|
static int |
HorizontalGradient
|
static int |
HueShift
|
static int |
ImpulseNoise
|
static int |
Intensity
This enum provides a modulation type specification |
static int |
LaplacianNoise
|
static int |
Linear
This enum lists possible bumpmapping implementations. |
static int |
MultiplicativeGaussianNoise
|
static int |
NELite
|
static int |
NoImage
Disposition of a source image on top of a destination image. |
static int |
NorthLite
This enum provides a lighting direction specification |
static int |
NWLite
|
static int |
PipeCrossGradient
|
static int |
PoissonNoise
|
static int |
PyramidGradient
|
static int |
RectangleGradient
|
static int |
Red
This enum provides a RGB channel specification |
static int |
Rotate180
|
static int |
Rotate270
|
static int |
Rotate90
This enum provides a rotation specification. |
static int |
Saturation
|
static int |
Scaled
|
static int |
SELite
|
static int |
Sinuosidal
|
static int |
SouthLite
|
static int |
Spherical
|
static int |
SWLite
|
static int |
Tiled
|
static int |
TiledMaxpect
|
static int |
UniformNoise
This enum provides a noise type specification |
static int |
VerticalGradient
This enum provides a gradient type specification |
static int |
WestLite
|
Constructor Summary | |
---|---|
|
KImageEffect()
|
protected |
KImageEffect(java.lang.Class dummy)
|
Method Summary | |
---|---|
static org.kde.qt.QImage |
addNoise(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
addNoise(org.kde.qt.QImage src,
int type)
Adds noise to an image. |
static boolean |
blend(int[] x,
int[] y,
org.kde.qt.QImage upper,
org.kde.qt.QImage lower,
org.kde.qt.QImage output)
Blend an image into another one, using alpha in the expected way and over coordinates x and y with respect to the lower image. |
static org.kde.qt.QImage |
blend(org.kde.qt.QColor clr,
org.kde.qt.QImage dst,
float opacity)
Blends a color into the destination image, using an opacity value for blending one into another. |
static org.kde.qt.QImage |
blend(org.kde.qt.QImage image,
float initial_intensity,
org.kde.qt.QColor bgnd,
int eff)
|
static org.kde.qt.QImage |
blend(org.kde.qt.QImage image,
float initial_intensity,
org.kde.qt.QColor bgnd,
int eff,
boolean anti_dir)
Blend the provided image into a background of the indicated color. |
static org.kde.qt.QImage |
blend(org.kde.qt.QImage src,
org.kde.qt.QImage dst,
float opacity)
Blend the src image into the destination image, using an opacity value for blending one into another. |
static org.kde.qt.QImage |
blend(org.kde.qt.QImage image1,
org.kde.qt.QImage image2,
int gt)
|
static org.kde.qt.QImage |
blend(org.kde.qt.QImage image1,
org.kde.qt.QImage image2,
int gt,
int xf)
|
static org.kde.qt.QImage |
blend(org.kde.qt.QImage image1,
org.kde.qt.QImage image2,
int gt,
int xf,
int yf)
Blend an image into another one, using a gradient type for blending from one to another. |
static boolean |
blend(org.kde.qt.QImage upper,
org.kde.qt.QImage lower,
org.kde.qt.QImage output)
Blend an image into another one, using alpha in the expected way. |
static org.kde.qt.QImage |
blend(org.kde.qt.QImage image1,
org.kde.qt.QImage image2,
org.kde.qt.QImage blendImage,
int channel)
Blend an image into another one, using a color channel of a third image for the decision of blending from one to another. |
static boolean |
blendOnLower(int x,
int y,
org.kde.qt.QImage upper,
org.kde.qt.QImage lower)
Blend an image into another one, using alpha in the expected way and over coordinates x and y with respect to the lower image. |
static void |
blendOnLower(org.kde.qt.QImage upper,
org.kde.qt.QImage lower,
int disposition,
float opacity)
Blend an image on top of another using a given disposition and a given opacity. |
static void |
blendOnLower(org.kde.qt.QImage upper,
org.kde.qt.QPoint upperOffset,
org.kde.qt.QImage lower,
org.kde.qt.QRect lowerRect)
Blend part of an image into part of another, using the alpha channel in the expected way. |
static void |
blendOnLower(org.kde.qt.QImage upper,
org.kde.qt.QPoint upperOffset,
org.kde.qt.QImage lower,
org.kde.qt.QRect lowerRect,
float opacity)
Blend part of an image into part of another, using the opacity value and the alpha channel in the expected way. |
static org.kde.qt.QImage |
blur(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
blur(org.kde.qt.QImage src,
double factor)
This is provided for binary compatability only! Use the above method with a radius and sigma instead! |
static org.kde.qt.QImage |
blur(org.kde.qt.QImage src,
double radius,
double sigma)
Blurs an image by convolving pixel neighborhoods. |
static org.kde.qt.QImage |
bumpmap(org.kde.qt.QImage img,
org.kde.qt.QImage map,
double azimuth,
double elevation,
int depth,
int xofs,
int yofs,
int waterlevel,
int ambient,
boolean compensate,
boolean invert,
int type,
boolean tiled)
A bumpmapping algorithm. |
static org.kde.qt.QImage |
channelIntensity(org.kde.qt.QImage image,
float percent,
int channel)
Modifies the intensity of a pixmap's RGB channel component. |
static org.kde.qt.QImage |
charcoal(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
charcoal(org.kde.qt.QImage src,
double factor)
This is provided for binary compatability only! Use the above method with a radius and sigma instead! |
static org.kde.qt.QImage |
charcoal(org.kde.qt.QImage src,
double radius,
double sigma)
Produces a neat little "charcoal" effect. |
static org.kde.qt.QRect |
computeDestinationRect(org.kde.qt.QSize lowerSize,
int disposition,
org.kde.qt.QImage upper)
Compute the destination rectangle where to draw the upper image on top of another image using the given disposition. |
static org.kde.qt.QImage |
contrast(org.kde.qt.QImage image,
int c)
Fast, but low quality contrast of an image. |
static void |
contrastHSV(org.kde.qt.QImage img)
|
static void |
contrastHSV(org.kde.qt.QImage img,
boolean sharpen)
High quality, expensive HSV contrast. |
static org.kde.qt.QImage |
desaturate(org.kde.qt.QImage image)
|
static org.kde.qt.QImage |
desaturate(org.kde.qt.QImage image,
float desat)
Desaturate an image evenly. |
static org.kde.qt.QImage |
despeckle(org.kde.qt.QImage src)
Minimizes speckle noise in the source image using the 8 hull algorithm. |
void |
dispose()
Delete the wrapped C++ instance ahead of finalize() |
static org.kde.qt.QImage |
dither(org.kde.qt.QImage image,
org.kde.qt.QColor palette,
int size)
Dither an image using Floyd-Steinberg dithering for low-color situations. |
static org.kde.qt.QImage |
edge(org.kde.qt.QImage src,
double radius)
Detects edges in an image using pixel neighborhoods and an edge detection mask. |
static org.kde.qt.QImage |
emboss(org.kde.qt.QImage src)
Convenience method. |
static org.kde.qt.QImage |
emboss(org.kde.qt.QImage src,
double radius,
double sigma)
Embosses the source image. |
static void |
equalize(org.kde.qt.QImage img)
Performs histogram equalisation on the reference image. |
static org.kde.qt.QImage |
fade(org.kde.qt.QImage image,
float val,
org.kde.qt.QColor color)
Fade an image to a certain background color. |
protected void |
finalize()
Deletes the wrapped C++ instance |
static org.kde.qt.QImage |
flatten(org.kde.qt.QImage image,
org.kde.qt.QColor ca,
org.kde.qt.QColor cb)
|
static org.kde.qt.QImage |
flatten(org.kde.qt.QImage image,
org.kde.qt.QColor ca,
org.kde.qt.QColor cb,
int ncols)
This recolors a pixmap. |
static org.kde.qt.QImage |
gradient(org.kde.qt.QSize size,
org.kde.qt.QColor ca,
org.kde.qt.QColor cb,
int type)
|
static org.kde.qt.QImage |
gradient(org.kde.qt.QSize size,
org.kde.qt.QColor ca,
org.kde.qt.QColor cb,
int type,
int ncols)
Create a gradient from color a to color b of the specified type. |
static org.kde.qt.QImage |
hash(org.kde.qt.QImage image)
|
static org.kde.qt.QImage |
hash(org.kde.qt.QImage image,
int lite)
|
static org.kde.qt.QImage |
hash(org.kde.qt.QImage image,
int lite,
int spacing)
Build a hash on any given QImage |
static org.kde.qt.QImage |
implode(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
implode(org.kde.qt.QImage src,
double factor)
|
static org.kde.qt.QImage |
implode(org.kde.qt.QImage src,
double factor,
int background)
Implodes an image by a specified percent. |
static org.kde.qt.QImage |
intensity(org.kde.qt.QImage image,
float percent)
Either brighten or dim the image by a specified percent. |
boolean |
isDisposed()
Has the wrapped C++ instance been deleted? |
static org.kde.qt.QImage |
modulate(org.kde.qt.QImage image,
org.kde.qt.QImage modImage,
boolean reverse,
int type,
int factor,
int channel)
Modulate the image with a color channel of another image. |
static void |
normalize(org.kde.qt.QImage img)
Normalises the pixel values to span the full range of color values. |
static org.kde.qt.QImage |
oilPaint(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
oilPaint(org.kde.qt.QImage src,
int radius)
This is provided for binary compatability only! Use the above method instead! |
static org.kde.qt.QImage |
oilPaintConvolve(org.kde.qt.QImage src,
double radius)
Produces an oil painting effect. |
static org.kde.qt.QImage |
rotate(org.kde.qt.QImage src,
int r)
Rotates the image by the specified amount |
static org.kde.qt.QImage |
sample(org.kde.qt.QImage src,
int w,
int h)
Scales an image using simple pixel sampling. |
static org.kde.qt.QImage |
selectedImage(org.kde.qt.QImage img,
org.kde.qt.QColor col)
Calculate the image for a selected image, for instance a selected icon on the desktop. |
static org.kde.qt.QImage |
shade(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
shade(org.kde.qt.QImage src,
boolean color_shading)
|
static org.kde.qt.QImage |
shade(org.kde.qt.QImage src,
boolean color_shading,
double azimuth)
|
static org.kde.qt.QImage |
shade(org.kde.qt.QImage src,
boolean color_shading,
double azimuth,
double elevation)
Shades the image using a distance light source. |
static org.kde.qt.QImage |
sharpen(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
sharpen(org.kde.qt.QImage src,
double factor)
This is provided for binary compatability only! Use the above method instead! |
static org.kde.qt.QImage |
sharpen(org.kde.qt.QImage src,
double radius,
double sigma)
Sharpens the pixels in the image using pixel neighborhoods. |
static void |
solarize(org.kde.qt.QImage img)
|
static void |
solarize(org.kde.qt.QImage img,
double factor)
Produces a 'solarization' effect seen when exposing a photographic film to light during the development process. |
static org.kde.qt.QImage |
spread(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
spread(org.kde.qt.QImage src,
int amount)
Randomly displaces pixels. |
static org.kde.qt.QImage |
swirl(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
swirl(org.kde.qt.QImage src,
double degrees)
|
static org.kde.qt.QImage |
swirl(org.kde.qt.QImage src,
double degrees,
int background)
Swirls the image by a specified amount |
static void |
threshold(org.kde.qt.QImage img)
|
static void |
threshold(org.kde.qt.QImage img,
int value)
Thresholds the reference image. |
static org.kde.qt.QImage |
toGray(org.kde.qt.QImage image)
|
static org.kde.qt.QImage |
toGray(org.kde.qt.QImage image,
boolean fast)
Convert an image to grayscale. |
static org.kde.qt.QImage |
unbalancedGradient(org.kde.qt.QSize size,
org.kde.qt.QColor ca,
org.kde.qt.QColor cb,
int type)
|
static org.kde.qt.QImage |
unbalancedGradient(org.kde.qt.QSize size,
org.kde.qt.QColor ca,
org.kde.qt.QColor cb,
int type,
int xfactor)
|
static org.kde.qt.QImage |
unbalancedGradient(org.kde.qt.QSize size,
org.kde.qt.QColor ca,
org.kde.qt.QColor cb,
int type,
int xfactor,
int yfactor)
|
static org.kde.qt.QImage |
unbalancedGradient(org.kde.qt.QSize size,
org.kde.qt.QColor ca,
org.kde.qt.QColor cb,
int type,
int xfactor,
int yfactor,
int ncols)
Create an unbalanced gradient. |
static org.kde.qt.QImage |
wave(org.kde.qt.QImage src)
|
static org.kde.qt.QImage |
wave(org.kde.qt.QImage src,
double amplitude)
|
static org.kde.qt.QImage |
wave(org.kde.qt.QImage src,
double amplitude,
double frequency)
|
static org.kde.qt.QImage |
wave(org.kde.qt.QImage src,
double amplitude,
double frequency,
int background)
Modifies the pixels along a sine wave. |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int VerticalGradient
blend(org.kde.qt.QColor, org.kde.qt.QImage, float)
,
gradient(org.kde.qt.QSize, org.kde.qt.QColor, org.kde.qt.QColor, int, int)
,
unbalancedGradient(org.kde.qt.QSize, org.kde.qt.QColor, org.kde.qt.QColor, int, int, int, int)
,
Constant Field Valuespublic static final int HorizontalGradient
public static final int DiagonalGradient
public static final int CrossDiagonalGradient
public static final int PyramidGradient
public static final int RectangleGradient
public static final int PipeCrossGradient
public static final int EllipticGradient
public static final int Red
blend(org.kde.qt.QColor, org.kde.qt.QImage, float)
,
channelIntensity(org.kde.qt.QImage, float, int)
,
modulate(org.kde.qt.QImage, org.kde.qt.QImage, boolean, int, int, int)
,
Constant Field Valuespublic static final int Green
public static final int Blue
public static final int Gray
public static final int All
public static final int NorthLite
hash(org.kde.qt.QImage, int, int)
,
Constant Field Valuespublic static final int NWLite
public static final int WestLite
public static final int SWLite
public static final int SouthLite
public static final int SELite
public static final int EastLite
public static final int NELite
public static final int Intensity
modulate(org.kde.qt.QImage, org.kde.qt.QImage, boolean, int, int, int)
,
Constant Field Valuespublic static final int Saturation
public static final int HueShift
public static final int Contrast
public static final int UniformNoise
addNoise(org.kde.qt.QImage, int)
,
Constant Field Valuespublic static final int GaussianNoise
public static final int MultiplicativeGaussianNoise
public static final int ImpulseNoise
public static final int LaplacianNoise
public static final int PoissonNoise
public static final int Rotate90
rotate(org.kde.qt.QImage, int)
,
Constant Field Valuespublic static final int Rotate180
public static final int Rotate270
public static final int Linear
bumpmap(org.kde.qt.QImage, org.kde.qt.QImage, double, double, int, int, int, int, int, boolean, boolean, int, boolean)
,
Constant Field Valuespublic static final int Spherical
public static final int Sinuosidal
public static final int NoImage
computeDestinationRect(org.kde.qt.QSize, int, org.kde.qt.QImage)
,
blendOnLower(int, int, org.kde.qt.QImage, org.kde.qt.QImage)
,
Constant Field Valuespublic static final int Centered
public static final int Tiled
public static final int CenterTiled
public static final int CenteredMaxpect
public static final int TiledMaxpect
public static final int Scaled
public static final int CenteredAutoFit
Constructor Detail |
---|
protected KImageEffect(java.lang.Class dummy)
public KImageEffect()
Method Detail |
---|
public static org.kde.qt.QImage gradient(org.kde.qt.QSize size, org.kde.qt.QColor ca, org.kde.qt.QColor cb, int type, int ncols)
size
- The desired size of the gradient.ca
- Color acb
- Color btype
- 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.public static org.kde.qt.QImage gradient(org.kde.qt.QSize size, org.kde.qt.QColor ca, org.kde.qt.QColor cb, int type)
public static org.kde.qt.QImage unbalancedGradient(org.kde.qt.QSize size, org.kde.qt.QColor ca, org.kde.qt.QColor cb, int type, int xfactor, int yfactor, int ncols)
size
- The desired size of the gradient.ca
- Color acb
- Color btype
- 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 KImageEffect:gradient.public static org.kde.qt.QImage unbalancedGradient(org.kde.qt.QSize size, org.kde.qt.QColor ca, org.kde.qt.QColor cb, int type, int xfactor, int yfactor)
public static org.kde.qt.QImage unbalancedGradient(org.kde.qt.QSize size, org.kde.qt.QColor ca, org.kde.qt.QColor cb, int type, int xfactor)
public static org.kde.qt.QImage unbalancedGradient(org.kde.qt.QSize size, org.kde.qt.QColor ca, org.kde.qt.QColor cb, int type)
public static org.kde.qt.QImage blend(org.kde.qt.QColor clr, org.kde.qt.QImage dst, float opacity)
clr
- source color to be blended into the destination image.dst
- destination image in which the source will be blended into.opacity
- opacity (between 0.0 and 1.0) which determines how much
the source color will be blended into the destination image.
public static org.kde.qt.QImage blend(org.kde.qt.QImage src, org.kde.qt.QImage dst, float opacity)
src
- source image to be blended into the destination image.dst
- destination image in which the source will be blended into.opacity
- opacity (between 0.0 and 1.0) which determines how much
the source image will be blended into the destination image.
public static org.kde.qt.QImage blend(org.kde.qt.QImage image, float initial_intensity, org.kde.qt.QColor bgnd, int eff, boolean anti_dir)
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 unaffectedbgnd
- indicates the color of the background to blend ineff
- lets you choose what kind of blending you likeanti_dir
- blend in the opposite direction (makes no much sense
with concentric blending effects)image
- must be 32bpppublic static org.kde.qt.QImage blend(org.kde.qt.QImage image, float initial_intensity, org.kde.qt.QColor bgnd, int eff)
public static org.kde.qt.QImage blend(org.kde.qt.QImage image1, org.kde.qt.QImage image2, int gt, int xf, int yf)
image1
- source1 and result of blendingimage2
- source2 of blendinggt
- gradient type for blending between source1 and source2xf
- x decay length for unbalanced gradient tpyeyf
- y decay length for unbalanced gradient tpyepublic static org.kde.qt.QImage blend(org.kde.qt.QImage image1, org.kde.qt.QImage image2, int gt, int xf)
public static org.kde.qt.QImage blend(org.kde.qt.QImage image1, org.kde.qt.QImage image2, int gt)
public static org.kde.qt.QImage blend(org.kde.qt.QImage image1, org.kde.qt.QImage image2, org.kde.qt.QImage blendImage, int channel)
image1
- Source 1 and result of blendingimage2
- Source 2 of blendingblendImage
- 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.channel
- The RBG channel to use for the blending decision.public static boolean blend(org.kde.qt.QImage upper, org.kde.qt.QImage lower, org.kde.qt.QImage output)
upper
- the "upper" imagelower
- the "lower" imageoutput
- the target imagepublic static boolean blend(int[] x, int[] y, org.kde.qt.QImage upper, org.kde.qt.QImage lower, org.kde.qt.QImage output)
x
and y
with respect to the lower image.
The output is a QImage which is the upper
image already blended
with the lower
one, so its size will be (in general) the same than
upper
instead of the same size than lower
like the method above.
In fact, the size of 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.
x
- x-coordinate of lower imagey
- y-coordinate of lower imageupper
- the "upper" imagelower
- the "lower" imageoutput
- the target imagepublic static boolean blendOnLower(int x, int y, org.kde.qt.QImage upper, org.kde.qt.QImage lower)
x
and y
with respect to the lower image.
The output is painted in the own lower
image. This is an optimization
of the blend method above provided by convenience.
x
- x-coordinate of lower imagey
- y-coordinate of lower imageupper
- the "upper" imagelower
- the "lower" image, which becomes the output imagepublic static void blendOnLower(org.kde.qt.QImage upper, org.kde.qt.QPoint upperOffset, org.kde.qt.QImage lower, org.kde.qt.QRect lowerRect)
upper
- the "upper" imageupperOffset
- Offset for the part of the upper image to be used.lower
- the "lower" imagelowerRect
- Rectangle for the part of the lower image where the
blending will occur.public static void blendOnLower(org.kde.qt.QImage upper, org.kde.qt.QPoint upperOffset, org.kde.qt.QImage lower, org.kde.qt.QRect lowerRect, float opacity)
upper
- the "upper" imageupperOffset
- Offset for the part of the upper image to be used.lower
- the "lower" imagelowerRect
- Rectangle for the part of the lower image where the
blending will occur.opacity
- Opacity (between 0.0 and 1.0) which determines how much
the source image will be blended into the destination image.public static org.kde.qt.QRect computeDestinationRect(org.kde.qt.QSize lowerSize, int disposition, org.kde.qt.QImage upper)
lowerSize
- The size of the destination image.disposition
- The wanted disposition.upper
- The upper image. Note that this image may be scaled to
adjust to the requested disposition.
public static void blendOnLower(org.kde.qt.QImage upper, org.kde.qt.QImage lower, int disposition, float opacity)
public static org.kde.qt.QImage channelIntensity(org.kde.qt.QImage image, float percent, int channel)
image
- The QImage to process.percent
- Percent value. Use a negative value to dim.channel
- Which channel(s) should be modified
image
, provided for convenience.public static org.kde.qt.QImage fade(org.kde.qt.QImage image, float val, org.kde.qt.QColor color)
image
- The QImage to process.val
- The strength of the effect. 0 <= val <= 1.color
- The background color.
public static org.kde.qt.QImage flatten(org.kde.qt.QImage image, org.kde.qt.QColor ca, org.kde.qt.QColor cb, int ncols)
image
- A QImage to process.ca
- Color acb
- Color bncols
- The number of colors to dither the image to.
Pass 0 to prevent dithering.public static org.kde.qt.QImage flatten(org.kde.qt.QImage image, org.kde.qt.QColor ca, org.kde.qt.QColor cb)
public static org.kde.qt.QImage hash(org.kde.qt.QImage image, int lite, int spacing)
image
- The QImage to processlite
- The hash faces the indicated lighting (cardinal poles).spacing
- How many unmodified pixels in between hashes.
public static org.kde.qt.QImage hash(org.kde.qt.QImage image, int lite)
public static org.kde.qt.QImage hash(org.kde.qt.QImage image)
public static org.kde.qt.QImage intensity(org.kde.qt.QImage image, float percent)
image
- The QImage to process.percent
- The percent value. Use a negative value to dim.
public static org.kde.qt.QImage modulate(org.kde.qt.QImage image, org.kde.qt.QImage modImage, boolean reverse, int type, int factor, int channel)
image
- The QImage to modulate and result.modImage
- The QImage to use for modulation.reverse
- Invert the meaning of image/modImage; result is image!type
- The modulation Type to use.factor
- The modulation amplitude; with 0 no effect [-200;200].channel
- The RBG channel of image2 to use for modulation.
public static org.kde.qt.QImage toGray(org.kde.qt.QImage image, boolean fast)
image
- The QImage to process.fast
- Set to true
in order to use a faster but non-photographic
quality algorithm. Appropriate for things such as toolbar icons.
public static org.kde.qt.QImage toGray(org.kde.qt.QImage image)
public static org.kde.qt.QImage desaturate(org.kde.qt.QImage image, float desat)
image
- The QImage to process.desat
- A value between 0 and 1 setting the degree of desaturation
public static org.kde.qt.QImage desaturate(org.kde.qt.QImage image)
public static org.kde.qt.QImage contrast(org.kde.qt.QImage image, int c)
image
- The QImage to process.c
- A contrast value between -255 to 255.
public static org.kde.qt.QImage dither(org.kde.qt.QImage image, org.kde.qt.QColor palette, int size)
image
- The QImage to process.palette
- The color palette to usesize
- The size of the palette
public static org.kde.qt.QImage selectedImage(org.kde.qt.QImage img, org.kde.qt.QColor col)
img
- the QImage to selectcol
- the selected color, usually from QColorGroup.highlight().public static void contrastHSV(org.kde.qt.QImage img, boolean sharpen)
img
- The QImage to process.sharpen
- If true sharpness is increase, (spiffed). Otherwise
it is decreased, (dulled).public static void contrastHSV(org.kde.qt.QImage img)
public static void normalize(org.kde.qt.QImage img)
img
- the image that is normalisedpublic static void equalize(org.kde.qt.QImage img)
img
- the image that is equalisedpublic static void threshold(org.kde.qt.QImage img, int value)
img
- The QImage to process.value
- The threshold value.public static void threshold(org.kde.qt.QImage img)
public static void solarize(org.kde.qt.QImage img, double factor)
img
- The QImage to process.factor
- The extent of the solarization (0-99.9)public static void solarize(org.kde.qt.QImage img)
public static org.kde.qt.QImage emboss(org.kde.qt.QImage src, double radius, double sigma)
src
- The QImage to process.radius
- The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.sigma
- The standard deviation of the gaussian. Use 1 if you're not
sure.
public static org.kde.qt.QImage emboss(org.kde.qt.QImage src)
public static org.kde.qt.QImage despeckle(org.kde.qt.QImage src)
src
- The QImage to process.
public static org.kde.qt.QImage charcoal(org.kde.qt.QImage src, double radius, double sigma)
src
- The QImage to process.radius
- The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.sigma
- The standard deviation of the gaussian. Use 1 if you're not
sure.
public static org.kde.qt.QImage charcoal(org.kde.qt.QImage src, double factor)
public static org.kde.qt.QImage charcoal(org.kde.qt.QImage src)
public static org.kde.qt.QImage rotate(org.kde.qt.QImage src, int r)
src
- The QImage to process.r
- The rotate direction.
public static org.kde.qt.QImage sample(org.kde.qt.QImage src, int w, int h)
src
- The QImage to process.w
- The new width.h
- The new height.
public static org.kde.qt.QImage addNoise(org.kde.qt.QImage src, int type)
src
- The QImage to process.type
- The algorithm used to generate the noise.
public static org.kde.qt.QImage addNoise(org.kde.qt.QImage src)
public static org.kde.qt.QImage blur(org.kde.qt.QImage src, double radius, double sigma)
src
- The QImage to process.radius
- The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.sigma
- The standard deviation of the gaussian. Use 1 if you're not
sure.
public static org.kde.qt.QImage blur(org.kde.qt.QImage src, double factor)
public static org.kde.qt.QImage blur(org.kde.qt.QImage src)
public static org.kde.qt.QImage edge(org.kde.qt.QImage src, double radius)
src
- The QImage to process.radius
- The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.
public static org.kde.qt.QImage implode(org.kde.qt.QImage src, double factor, int background)
src
- The QImage to process.factor
- The extent of the implosion.background
- An RGBA value to use for the background. After the
effect some pixels may be "empty". This value is used for those pixels.
public static org.kde.qt.QImage implode(org.kde.qt.QImage src, double factor)
public static org.kde.qt.QImage implode(org.kde.qt.QImage src)
public static org.kde.qt.QImage oilPaintConvolve(org.kde.qt.QImage src, double radius)
src
- The QImage to process.radius
- The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.
public static org.kde.qt.QImage oilPaint(org.kde.qt.QImage src, int radius)
public static org.kde.qt.QImage oilPaint(org.kde.qt.QImage src)
public static org.kde.qt.QImage sharpen(org.kde.qt.QImage src, double radius, double sigma)
src
- The QImage to process.radius
- The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.sigma
- The standard deviation of the gaussian. Use 1 if you're not
sure.
public static org.kde.qt.QImage sharpen(org.kde.qt.QImage src, double factor)
public static org.kde.qt.QImage sharpen(org.kde.qt.QImage src)
public static org.kde.qt.QImage spread(org.kde.qt.QImage src, int amount)
src
- The QImage to process.amount
- The vicinity for choosing a random pixel to swap.
public static org.kde.qt.QImage spread(org.kde.qt.QImage src)
public static org.kde.qt.QImage shade(org.kde.qt.QImage src, boolean color_shading, double azimuth, double elevation)
src
- The QImage to process.color_shading
- If true do color shading, otherwise do grayscale.azimuth
- Determines the light source and direction.elevation
- Determines the light source and direction.
public static org.kde.qt.QImage shade(org.kde.qt.QImage src, boolean color_shading, double azimuth)
public static org.kde.qt.QImage shade(org.kde.qt.QImage src, boolean color_shading)
public static org.kde.qt.QImage shade(org.kde.qt.QImage src)
public static org.kde.qt.QImage swirl(org.kde.qt.QImage src, double degrees, int background)
src
- The QImage to process.degrees
- The tightness of the swirl.background
- An RGBA value to use for the background. After the
effect some pixels may be "empty". This value is used for those pixels.
public static org.kde.qt.QImage swirl(org.kde.qt.QImage src, double degrees)
public static org.kde.qt.QImage swirl(org.kde.qt.QImage src)
public static org.kde.qt.QImage wave(org.kde.qt.QImage src, double amplitude, double frequency, int background)
src
- The QImage to process.amplitude
- The amplitude of the sine wave.frequency
- The frequency of the sine wave.background
- An RGBA value to use for the background. After the
effect some pixels may be "empty". This value is used for those pixels.
public static org.kde.qt.QImage wave(org.kde.qt.QImage src, double amplitude, double frequency)
public static org.kde.qt.QImage wave(org.kde.qt.QImage src, double amplitude)
public static org.kde.qt.QImage wave(org.kde.qt.QImage src)
public static org.kde.qt.QImage bumpmap(org.kde.qt.QImage img, org.kde.qt.QImage map, double azimuth, double elevation, int depth, int xofs, int yofs, int waterlevel, int ambient, boolean compensate, boolean invert, int type, boolean tiled)
img
- the image you want bumpmapmap
- the map usedazimuth
- azimuthelevation
- elevationdepth
- depth (not the depth of the image, but of the map)xofs
- X offsetyofs
- Y offsetwaterlevel
- level that full transparency should representambient
- ambient lighting factorcompensate
- compensate for darkeninginvert
- invert bumpmaptype
- type of the bumpmaptiled
- tile the bumpmap over the image through the Y offset
protected void finalize() throws java.lang.InternalError
finalize
in class java.lang.Object
java.lang.InternalError
public void dispose()
public boolean isDisposed()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |