summaryrefslogtreecommitdiffstats
path: root/kdejava/koala/org/kde/koala/KImageEffect.java
diff options
context:
space:
mode:
Diffstat (limited to 'kdejava/koala/org/kde/koala/KImageEffect.java')
-rw-r--r--kdejava/koala/org/kde/koala/KImageEffect.java250
1 files changed, 125 insertions, 125 deletions
diff --git a/kdejava/koala/org/kde/koala/KImageEffect.java b/kdejava/koala/org/kde/koala/KImageEffect.java
index 8d4fd85a..a75e6f0e 100644
--- a/kdejava/koala/org/kde/koala/KImageEffect.java
+++ b/kdejava/koala/org/kde/koala/KImageEffect.java
@@ -2,21 +2,21 @@
package org.kde.koala;
import org.kde.qt.Qt;
-import org.kde.qt.QColor;
-import org.kde.qt.QRect;
+import org.kde.qt.TQColor;
+import org.kde.qt.TQRect;
import org.kde.qt.QtSupport;
-import org.kde.qt.QImage;
-import org.kde.qt.QPoint;
-import org.kde.qt.QSize;
+import org.kde.qt.TQImage;
+import org.kde.qt.TQPoint;
+import org.kde.qt.TQSize;
/**
- This class includes various QImage based graphical effects.
+ This class includes various TQImage 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.
- @short This class includes various QImage based graphical effects.
+ @short This class includes various TQImage based graphical effects.
*/
public class KImageEffect implements QtSupport {
@@ -137,8 +137,8 @@ public class KImageEffect implements QtSupport {
colors. Pass 0 to prevent dithering.
@short Create a gradient from color a to color b of the specified type.
*/
- public static native QImage gradient(QSize size, QColor ca, QColor cb, int type, int ncols);
- public static native QImage gradient(QSize size, QColor ca, QColor cb, int type);
+ public static native TQImage gradient(TQSize size, TQColor ca, TQColor cb, int type, int ncols);
+ public static native TQImage gradient(TQSize size, TQColor ca, TQColor cb, int type);
/**
Create an unbalanced gradient.
An unbalanced gradient is a gradient where the transition from
@@ -152,10 +152,10 @@ public class KImageEffect implements QtSupport {
@param ncols The number of colors. See KImageEffect:gradient.
@short Create an unbalanced gradient.
*/
- public static native QImage unbalancedGradient(QSize size, QColor ca, QColor cb, int type, int xfactor, int yfactor, int ncols);
- public static native QImage unbalancedGradient(QSize size, QColor ca, QColor cb, int type, int xfactor, int yfactor);
- public static native QImage unbalancedGradient(QSize size, QColor ca, QColor cb, int type, int xfactor);
- public static native QImage unbalancedGradient(QSize size, QColor ca, QColor cb, int type);
+ public static native TQImage unbalancedGradient(TQSize size, TQColor ca, TQColor cb, int type, int xfactor, int yfactor, int ncols);
+ public static native TQImage unbalancedGradient(TQSize size, TQColor ca, TQColor cb, int type, int xfactor, int yfactor);
+ public static native TQImage unbalancedGradient(TQSize size, TQColor ca, TQColor cb, int type, int xfactor);
+ public static native TQImage unbalancedGradient(TQSize size, TQColor ca, TQColor cb, int type);
/**
Blends a color into the destination image, using an opacity
value for blending one into another. Very fast direct pixel
@@ -172,7 +172,7 @@ public class KImageEffect implements QtSupport {
@short Blends a color into the destination image, using an opacity value for blending one into another.
*/
- public static native QImage blend(QColor clr, QImage dst, float opacity);
+ public static native TQImage blend(TQColor clr, TQImage dst, float opacity);
/**
Blend the src image into the destination image, using an opacity
value for blending one into another. Very fast direct pixel
@@ -189,7 +189,7 @@ public class KImageEffect implements QtSupport {
@short Blend the src image into the destination image, using an opacity value for blending one into another.
*/
- public static native QImage blend(QImage src, QImage dst, float opacity);
+ public static native TQImage blend(TQImage src, TQImage dst, float opacity);
/**
Blend the provided image into a background of the indicated color.
@param initial_intensity this parameter takes values from -1 to 1:
@@ -204,8 +204,8 @@ public class KImageEffect implements QtSupport {
@param image must be 32bpp
@short Blend the provided image into a background of the indicated color.
*/
- public static native QImage blend(QImage image, float initial_intensity, QColor bgnd, int eff, boolean anti_dir);
- public static native QImage blend(QImage image, float initial_intensity, QColor bgnd, int eff);
+ public static native TQImage blend(TQImage image, float initial_intensity, TQColor bgnd, int eff, boolean anti_dir);
+ public static native TQImage blend(TQImage image, float initial_intensity, TQColor bgnd, int eff);
/**
Blend an image into another one, using a gradient type
for blending from one to another.
@@ -216,9 +216,9 @@ public class KImageEffect implements QtSupport {
@param yf y decay length for unbalanced gradient tpye
@short Blend an image into another one, using a gradient type for blending from one to another.
*/
- public static native QImage blend(QImage image1, QImage image2, int gt, int xf, int yf);
- public static native QImage blend(QImage image1, QImage image2, int gt, int xf);
- public static native QImage blend(QImage image1, QImage image2, int gt);
+ public static native TQImage blend(TQImage image1, TQImage image2, int gt, int xf, int yf);
+ public static native TQImage blend(TQImage image1, TQImage image2, int gt, int xf);
+ public static native TQImage blend(TQImage image1, TQImage image2, int gt);
/**
Blend an image into another one, using a color channel of a
third image for the decision of blending from one to another.
@@ -231,7 +231,7 @@ public class KImageEffect implements QtSupport {
@param channel The RBG channel to use for the blending decision.
@short Blend an image into another one, using a color channel of a third image for the decision of blending from one to another.
*/
- public static native QImage blend(QImage image1, QImage image2, QImage blendImage, int channel);
+ public static native TQImage blend(TQImage image1, TQImage image2, TQImage blendImage, int channel);
/**
Blend an image into another one, using alpha in the expected way.
@param upper the "upper" image
@@ -241,11 +241,11 @@ public class KImageEffect implements QtSupport {
@short Blend an image into another one, using alpha in the expected way.
*/
- public static native boolean blend(QImage upper, QImage lower, QImage output);
+ public static native boolean blend(TQImage upper, TQImage lower, TQImage output);
/**
Blend an image into another one, using alpha in the expected way and
over coordinates <code>x</code> and <code>y</code> with respect to the lower image.
- The output is a QImage which is the <code>upper</code> image already blended
+ The output is a TQImage which is the <code>upper</code> image already blended
with the <code>lower</code> one, so its size will be (in general) the same than
<code>upper</code> instead of the same size than <code>lower</code> like the method above.
In fact, the size of <code>output</code> is like upper's one only when it can be
@@ -259,7 +259,7 @@ public class KImageEffect implements QtSupport {
@param output the target image
@short Blend an image into another one, using alpha in the expected way and over coordinates <code>x</code> and <code>y</code> with respect to the lower image.
*/
- public static native boolean blend(int[] x, int[] y, QImage upper, QImage lower, QImage output);
+ public static native boolean blend(int[] x, int[] y, TQImage upper, TQImage lower, TQImage output);
/**
Blend an image into another one, using alpha in the expected way and
over coordinates <code>x</code> and <code>y</code> with respect to the lower image.
@@ -271,7 +271,7 @@ public class KImageEffect implements QtSupport {
@param lower the "lower" image, which becomes the output image
@short Blend an image into another one, using alpha in the expected way and over coordinates <code>x</code> and <code>y</code> with respect to the lower image.
*/
- public static native boolean blendOnLower(int x, int y, QImage upper, QImage lower);
+ public static native boolean blendOnLower(int x, int y, TQImage upper, TQImage lower);
/**
Blend part of an image into part of another, using the alpha channel in
the expected way.
@@ -283,7 +283,7 @@ public class KImageEffect implements QtSupport {
blending will occur.
@short Blend part of an image into part of another, using the alpha channel in the expected way.
*/
- public static native void blendOnLower(QImage upper, QPoint upperOffset, QImage lower, QRect lowerRect);
+ public static native void blendOnLower(TQImage upper, TQPoint upperOffset, TQImage lower, TQRect lowerRect);
/**
Blend part of an image into part of another, using the opacity value
and the alpha channel in the expected way.
@@ -297,7 +297,7 @@ public class KImageEffect implements QtSupport {
the source image will be blended into the destination image.
@short Blend part of an image into part of another, using the opacity value and the alpha channel in the expected way.
*/
- public static native void blendOnLower(QImage upper, QPoint upperOffset, QImage lower, QRect lowerRect, float opacity);
+ public static native void blendOnLower(TQImage upper, TQPoint upperOffset, TQImage lower, TQRect lowerRect, float opacity);
/**
Compute the destination rectangle where to draw the upper image on top
of another image using the given disposition. For tiled
@@ -311,17 +311,17 @@ public class KImageEffect implements QtSupport {
@short Compute the destination rectangle where to draw the upper image on top of another image using the given disposition.
*/
- public static native QRect computeDestinationRect(QSize lowerSize, int disposition, QImage upper);
+ public static native TQRect computeDestinationRect(TQSize lowerSize, int disposition, TQImage upper);
/**
Blend an image on top of another using a given disposition and a given
opacity. The alpha channel of the upper image is used in the expected
way. Beware the upper image may be modified.
@short Blend an image on top of another using a given disposition and a given opacity.
*/
- public static native void blendOnLower(QImage upper, QImage lower, int disposition, float opacity);
+ public static native void blendOnLower(TQImage upper, TQImage lower, int disposition, float opacity);
/**
Modifies the intensity of a pixmap's RGB channel component.
- @param image The QImage to process.
+ @param image The TQImage to process.
@param percent Percent value. Use a negative value to dim.
@param channel Which channel(s) should be modified
@return The <code>image</code>, provided for convenience.
@@ -330,48 +330,48 @@ public class KImageEffect implements QtSupport {
@short Modifies the intensity of a pixmap's RGB channel component.
*/
- public static native QImage channelIntensity(QImage image, float percent, int channel);
+ public static native TQImage channelIntensity(TQImage image, float percent, int channel);
/**
Fade an image to a certain background color.
The number of colors will not be changed.
- @param image The QImage to process.
+ @param image The TQImage to process.
@param val The strength of the effect. 0 <= val <= 1.
@param color The background color.
@return Returns the image(), provided for convenience.
@short Fade an image to a certain background color.
*/
- public static native QImage fade(QImage image, float val, QColor color);
+ public static native TQImage fade(TQImage image, float val, TQColor color);
/**
This recolors a pixmap. The most dark color will become color a,
the most bright one color b, and in between.
- @param image A QImage to process.
+ @param image A TQImage to process.
@param ca Color a
@param cb Color b
@param ncols The number of colors to dither the image to.
Pass 0 to prevent dithering.
@short This recolors a pixmap.
*/
- public static native QImage flatten(QImage image, QColor ca, QColor cb, int ncols);
- public static native QImage flatten(QImage image, QColor ca, QColor cb);
+ public static native TQImage flatten(TQImage image, TQColor ca, TQColor cb, int ncols);
+ public static native TQImage flatten(TQImage image, TQColor ca, TQColor cb);
/**
- Build a hash on any given QImage
- @param image The QImage to process
+ Build a hash on any given TQImage
+ @param image The TQImage to process
@param lite The hash faces the indicated lighting (cardinal poles).
@param spacing How many unmodified pixels in between hashes.
@return Returns the image(), provided for convenience.
- @short Build a hash on any given QImage
+ @short Build a hash on any given TQImage
*/
- public static native QImage hash(QImage image, int lite, int spacing);
- public static native QImage hash(QImage image, int lite);
- public static native QImage hash(QImage image);
+ public static native TQImage hash(TQImage image, int lite, int spacing);
+ public static native TQImage hash(TQImage image, int lite);
+ public static native TQImage hash(TQImage image);
/**
Either brighten or dim the image by a specified percent.
For example, .50 will modify the colors by 50%.
This function uses MMX instructions to process the image
on processors that support it.
- @param image The QImage to process.
+ @param image The TQImage to process.
@param percent The percent value. Use a negative value to dim.
@return Returns The image(), provided for convenience.
@@ -379,11 +379,11 @@ public class KImageEffect implements QtSupport {
@short Either brighten or dim the image by a specified percent.
*/
- public static native QImage intensity(QImage image, float percent);
+ public static native TQImage intensity(TQImage image, float percent);
/**
Modulate the image with a color channel of another image.
- @param image The QImage to modulate and result.
- @param modImage The QImage to use for modulation.
+ @param image The TQImage to modulate and result.
+ @param modImage The TQImage to use for modulation.
@param reverse Invert the meaning of image/modImage; result is image!
@param type The modulation Type to use.
@param factor The modulation amplitude; with 0 no effect [-200;200].
@@ -392,10 +392,10 @@ public class KImageEffect implements QtSupport {
@short Modulate the image with a color channel of another image.
*/
- public static native QImage modulate(QImage image, QImage modImage, boolean reverse, int type, int factor, int channel);
+ public static native TQImage modulate(TQImage image, TQImage modImage, boolean reverse, int type, int factor, int channel);
/**
Convert an image to grayscale.
- @param image The QImage to process.
+ @param image The TQImage to process.
@param fast Set to <code>true</code> in order to use a faster but non-photographic
quality algorithm. Appropriate for things such as toolbar icons.
@return Returns the image(), provided for convenience.
@@ -404,21 +404,21 @@ public class KImageEffect implements QtSupport {
@short Convert an image to grayscale.
*/
- public static native QImage toGray(QImage image, boolean fast);
- public static native QImage toGray(QImage image);
+ public static native TQImage toGray(TQImage image, boolean fast);
+ public static native TQImage toGray(TQImage image);
/**
Desaturate an image evenly.
- @param image The QImage to process.
+ @param image The TQImage to process.
@param desat A value between 0 and 1 setting the degree of desaturation
@return Returns the image(), provided for convenience.
@short Desaturate an image evenly.
*/
- public static native QImage desaturate(QImage image, float desat);
- public static native QImage desaturate(QImage image);
+ public static native TQImage desaturate(TQImage image, float desat);
+ public static native TQImage desaturate(TQImage image);
/**
Fast, but low quality contrast of an image. Also see contrastHSV.
- @param image The QImage to process.
+ @param image The TQImage to process.
@param c A contrast value between -255 to 255.
@return The image(), provided for convenience.
@@ -427,40 +427,40 @@ public class KImageEffect implements QtSupport {
@short Fast, but low quality contrast of an image.
*/
- public static native QImage contrast(QImage image, int c);
+ public static native TQImage contrast(TQImage image, int c);
/**
Dither an image using Floyd-Steinberg dithering for low-color
situations.
- @param image The QImage to process.
+ @param image The TQImage to process.
@param palette The color palette to use
@param size The size of the palette
@return Returns the image(), provided for convenience.
@short Dither an image using Floyd-Steinberg dithering for low-color situations.
*/
- public static native QImage dither(QImage image, QColor palette, int size);
+ public static native TQImage dither(TQImage image, TQColor palette, int size);
/**
Calculate the image for a selected image, for instance a selected icon
on the desktop.
- @param img the QImage to select
- @param col the selected color, usually from QColorGroup.highlight().
+ @param img the TQImage to select
+ @param col the selected color, usually from TQColorGroup.highlight().
@short Calculate the image for a selected image, for instance a selected icon on the desktop.
*/
- public static native QImage selectedImage(QImage img, QColor col);
+ public static native TQImage selectedImage(TQImage img, TQColor col);
/**
High quality, expensive HSV contrast. You can do a faster one by just
taking a intensity threshold (ie: 128) and incrementing RGB color
channels above it and decrementing those below it, but this gives much
better results.
- @param img The QImage to process.
+ @param img The TQImage to process.
@param sharpen If true sharpness is increase, (spiffed). Otherwise
it is decreased, (dulled).
@author Daniel M. Duley (mosfet)
@short High quality, expensive HSV contrast.
*/
- public static native void contrastHSV(QImage img, boolean sharpen);
- public static native void contrastHSV(QImage img);
+ public static native void contrastHSV(TQImage img, boolean sharpen);
+ public static native void contrastHSV(TQImage img);
/**
Normalises the pixel values to span the full range of color values.
This is a contrast enhancement technique.
@@ -469,7 +469,7 @@ public class KImageEffect implements QtSupport {
@short Normalises the pixel values to span the full range of color values.
*/
- public static native void normalize(QImage img);
+ public static native void normalize(TQImage img);
/**
Performs histogram equalisation on the reference
image.
@@ -478,35 +478,35 @@ public class KImageEffect implements QtSupport {
@short Performs histogram equalisation on the reference image.
*/
- public static native void equalize(QImage img);
+ public static native void equalize(TQImage img);
/**
Thresholds the reference image. You can also threshold images by using
- ThresholdDither in the various QPixmap/QImage convert methods, but this
+ ThresholdDither in the various TQPixmap/TQImage convert methods, but this
lets you specify a threshold value.
- @param img The QImage to process.
+ @param img The TQImage to process.
@param value The threshold value.
@author Daniel M. Duley (mosfet)
@short Thresholds the reference image.
*/
- public static native void threshold(QImage img, int value);
- public static native void threshold(QImage img);
+ public static native void threshold(TQImage img, int value);
+ public static native void threshold(TQImage img);
/**
Produces a 'solarization' effect seen when exposing a photographic
film to light during the development process.
- @param img The QImage to process.
+ @param img The TQImage to process.
@param factor The extent of the solarization (0-99.9)
@author Daniel M. Duley (mosfet)
@short Produces a 'solarization' effect seen when exposing a photographic film to light during the development process.
*/
- public static native void solarize(QImage img, double factor);
- public static native void solarize(QImage img);
+ public static native void solarize(TQImage img, double factor);
+ public static native void solarize(TQImage img);
/**
Embosses the source image. This involves highlighting the edges
and applying various other enhancements in order to get a metal
effect.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param radius The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.
@param sigma The standard deviation of the gaussian. Use 1 if you're not
@@ -517,26 +517,26 @@ public class KImageEffect implements QtSupport {
@short Embosses the source image.
*/
- public static native QImage emboss(QImage src, double radius, double sigma);
+ public static native TQImage emboss(TQImage src, double radius, double sigma);
/**
Convenience method.
@short Convenience method.
*/
- public static native QImage emboss(QImage src);
+ public static native TQImage emboss(TQImage src);
/**
Minimizes speckle noise in the source image using the 8 hull
algorithm.
- @param src The QImage to process.
+ @param src The TQImage to process.
@return The despeckled image. The original is not changed.
@author Daniel M. Duley (mosfet)
@short Minimizes speckle noise in the source image using the 8 hull algorithm.
*/
- public static native QImage despeckle(QImage src);
+ public static native TQImage despeckle(TQImage src);
/**
Produces a neat little "charcoal" effect.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param radius The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.
@param sigma The standard deviation of the gaussian. Use 1 if you're not
@@ -547,17 +547,17 @@ public class KImageEffect implements QtSupport {
@short Produces a neat little "charcoal" effect.
*/
- public static native QImage charcoal(QImage src, double radius, double sigma);
+ public static native TQImage charcoal(TQImage src, double radius, double sigma);
/**
This is provided for binary compatability only! Use the above method
with a radius and sigma instead!
@short This is provided for binary compatability only! Use the above method with a radius and sigma instead!
*/
- public static native QImage charcoal(QImage src, double factor);
- public static native QImage charcoal(QImage src);
+ public static native TQImage charcoal(TQImage src, double factor);
+ public static native TQImage charcoal(TQImage src);
/**
Rotates the image by the specified amount
- @param src The QImage to process.
+ @param src The TQImage to process.
@param r The rotate direction.
@return The rotated image. The original is not changed.
@@ -565,12 +565,12 @@ public class KImageEffect implements QtSupport {
@short Rotates the image by the specified amount
*/
- public static native QImage rotate(QImage src, int r);
+ public static native TQImage rotate(TQImage src, int r);
/**
Scales an image using simple pixel sampling. This does not produce
- nearly as nice a result as QImage.smoothScale(), but has the
+ nearly as nice a result as TQImage.smoothScale(), but has the
advantage of being much faster - only a few milliseconds.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param w The new width.
@param h The new height.
@return The scaled image. The original is not changed.
@@ -579,10 +579,10 @@ public class KImageEffect implements QtSupport {
@short Scales an image using simple pixel sampling.
*/
- public static native QImage sample(QImage src, int w, int h);
+ public static native TQImage sample(TQImage src, int w, int h);
/**
Adds noise to an image.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param type The algorithm used to generate the noise.
@return The image with noise added. The original is not changed.
@@ -590,11 +590,11 @@ public class KImageEffect implements QtSupport {
@short Adds noise to an image.
*/
- public static native QImage addNoise(QImage src, int type);
- public static native QImage addNoise(QImage src);
+ public static native TQImage addNoise(TQImage src, int type);
+ public static native TQImage addNoise(TQImage src);
/**
Blurs an image by convolving pixel neighborhoods.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param radius The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.
@param sigma The standard deviation of the gaussian. Use 1 if you're not
@@ -605,18 +605,18 @@ public class KImageEffect implements QtSupport {
@short Blurs an image by convolving pixel neighborhoods.
*/
- public static native QImage blur(QImage src, double radius, double sigma);
+ public static native TQImage blur(TQImage src, double radius, double sigma);
/**
This is provided for binary compatability only! Use the above method
with a radius and sigma instead!
@short This is provided for binary compatability only! Use the above method with a radius and sigma instead!
*/
- public static native QImage blur(QImage src, double factor);
- public static native QImage blur(QImage src);
+ public static native TQImage blur(TQImage src, double factor);
+ public static native TQImage blur(TQImage src);
/**
Detects edges in an image using pixel neighborhoods and an edge
detection mask.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param radius The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.
@return The image with edges detected. The original is not changed.
@@ -625,10 +625,10 @@ public class KImageEffect implements QtSupport {
@short Detects edges in an image using pixel neighborhoods and an edge detection mask.
*/
- public static native QImage edge(QImage src, double radius);
+ public static native TQImage edge(TQImage src, double radius);
/**
Implodes an image by a specified percent.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param factor The extent of the implosion.
@param background An RGBA value to use for the background. After the
effect some pixels may be "empty". This value is used for those pixels.
@@ -638,12 +638,12 @@ public class KImageEffect implements QtSupport {
@short Implodes an image by a specified percent.
*/
- public static native QImage implode(QImage src, double factor, int background);
- public static native QImage implode(QImage src, double factor);
- public static native QImage implode(QImage src);
+ public static native TQImage implode(TQImage src, double factor, int background);
+ public static native TQImage implode(TQImage src, double factor);
+ public static native TQImage implode(TQImage src);
/**
Produces an oil painting effect.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param radius The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.
@return The new image. The original is not changed.
@@ -652,17 +652,17 @@ public class KImageEffect implements QtSupport {
@short Produces an oil painting effect.
*/
- public static native QImage oilPaintConvolve(QImage src, double radius);
+ public static native TQImage oilPaintConvolve(TQImage src, double radius);
/**
This is provided for binary compatability only! Use the above method
instead!
@short This is provided for binary compatability only! Use the above method instead!
*/
- public static native QImage oilPaint(QImage src, int radius);
- public static native QImage oilPaint(QImage src);
+ public static native TQImage oilPaint(TQImage src, int radius);
+ public static native TQImage oilPaint(TQImage src);
/**
Sharpens the pixels in the image using pixel neighborhoods.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param radius The radius of the gaussian not counting the
center pixel. Use 0 and a suitable radius will be automatically used.
@param sigma The standard deviation of the gaussian. Use 1 if you're not
@@ -673,17 +673,17 @@ public class KImageEffect implements QtSupport {
@short Sharpens the pixels in the image using pixel neighborhoods.
*/
- public static native QImage sharpen(QImage src, double radius, double sigma);
+ public static native TQImage sharpen(TQImage src, double radius, double sigma);
/**
This is provided for binary compatability only! Use the above method
instead!
@short This is provided for binary compatability only! Use the above method instead!
*/
- public static native QImage sharpen(QImage src, double factor);
- public static native QImage sharpen(QImage src);
+ public static native TQImage sharpen(TQImage src, double factor);
+ public static native TQImage sharpen(TQImage src);
/**
Randomly displaces pixels.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param amount The vicinity for choosing a random pixel to swap.
@return The image with pixels displaced. The original is not changed.
@@ -691,11 +691,11 @@ public class KImageEffect implements QtSupport {
@short Randomly displaces pixels.
*/
- public static native QImage spread(QImage src, int amount);
- public static native QImage spread(QImage src);
+ public static native TQImage spread(TQImage src, int amount);
+ public static native TQImage spread(TQImage src);
/**
Shades the image using a distance light source.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param color_shading If true do color shading, otherwise do grayscale.
@param azimuth Determines the light source and direction.
@param elevation Determines the light source and direction.
@@ -705,13 +705,13 @@ public class KImageEffect implements QtSupport {
@short Shades the image using a distance light source.
*/
- public static native QImage shade(QImage src, boolean color_shading, double azimuth, double elevation);
- public static native QImage shade(QImage src, boolean color_shading, double azimuth);
- public static native QImage shade(QImage src, boolean color_shading);
- public static native QImage shade(QImage src);
+ public static native TQImage shade(TQImage src, boolean color_shading, double azimuth, double elevation);
+ public static native TQImage shade(TQImage src, boolean color_shading, double azimuth);
+ public static native TQImage shade(TQImage src, boolean color_shading);
+ public static native TQImage shade(TQImage src);
/**
Swirls the image by a specified amount
- @param src The QImage to process.
+ @param src The TQImage to process.
@param degrees The tightness of the swirl.
@param background An RGBA value to use for the background. After the
effect some pixels may be "empty". This value is used for those pixels.
@@ -721,12 +721,12 @@ public class KImageEffect implements QtSupport {
@short Swirls the image by a specified amount
*/
- public static native QImage swirl(QImage src, double degrees, int background);
- public static native QImage swirl(QImage src, double degrees);
- public static native QImage swirl(QImage src);
+ public static native TQImage swirl(TQImage src, double degrees, int background);
+ public static native TQImage swirl(TQImage src, double degrees);
+ public static native TQImage swirl(TQImage src);
/**
Modifies the pixels along a sine wave.
- @param src The QImage to process.
+ @param src The TQImage to process.
@param amplitude The amplitude of the sine wave.
@param frequency The frequency of the sine wave.
@param background An RGBA value to use for the background. After the
@@ -737,10 +737,10 @@ public class KImageEffect implements QtSupport {
@short Modifies the pixels along a sine wave.
*/
- public static native QImage wave(QImage src, double amplitude, double frequency, int background);
- public static native QImage wave(QImage src, double amplitude, double frequency);
- public static native QImage wave(QImage src, double amplitude);
- public static native QImage wave(QImage src);
+ public static native TQImage wave(TQImage src, double amplitude, double frequency, int background);
+ public static native TQImage wave(TQImage src, double amplitude, double frequency);
+ public static native TQImage wave(TQImage src, double amplitude);
+ public static native TQImage wave(TQImage src);
/**
A bumpmapping algorithm.
@param img the image you want bumpmap
@@ -762,7 +762,7 @@ public class KImageEffect implements QtSupport {
@short A bumpmapping algorithm.
*/
- public static native QImage bumpmap(QImage img, QImage map, double azimuth, double elevation, int depth, int xofs, int yofs, int waterlevel, int ambient, boolean compensate, boolean invert, int type, boolean tiled);
+ public static native TQImage bumpmap(TQImage img, TQImage map, double azimuth, double elevation, int depth, int xofs, int yofs, int waterlevel, int ambient, boolean compensate, boolean invert, int type, boolean tiled);
/** Deletes the wrapped C++ instance */
protected native void finalize() throws InternalError;
/** Delete the wrapped C++ instance ahead of finalize() */