class KImageEffect

#### PyKDE - Python Bindings for KDE

# class KImageEffect |
Table of contents
Modules
tdefx Classes
All Classes

Module | tdefx
Class | KImageEffect
Inherits |

### enums

- BumpmapType = {Linear, Spherical, Sinuosidal }
- Disposition = {NoImage, Centered, Tiled, CenterTiled, CenteredMaxpect, TiledMaxpect, Scaled, CenteredAutoFit }
- GradientType = {VerticalGradient, HorizontalGradient, DiagonalGradient, CrossDiagonalGradient, PyramidGradient, RectangleGradient, PipeCrossGradient, EllipticGradient }
- Lighting = {NorthLite, NWLite, WestLite, SWLite, SouthLite, SELite, EastLite, NELite }
- ModulationType = {Intensity, Saturation, HueShift, Contrast }
- NoiseType = {UniformNoise, GaussianNoise, MultiplicativeGaussianNoise, ImpulseNoise, LaplacianNoise, PoissonNoise }
- RGBComponent = {Red, Green, Blue, Gray, All }
- RotateDirection = {Rotate90, Rotate180, Rotate270 }

### methods

- addNoise (src, type = GaussianNoise)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  type | KImageEffect.NoiseType | GaussianNoise

- blend (clr, dst, opacity)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  clr | TQColor |
  dst | TQImage |
  opacity | float |

- blend (src, dst, opacity)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  dst | TQImage |
  opacity | float |

- blend (image, initial_intensity, bgnd, eff, anti_dir = 0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  initial_intensity | float |
  bgnd | TQColor |
  eff | KImageEffect.GradientType |
  anti_dir | bool | 0

- blend (image1, image2, gt, xf = 100, yf = 100)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image1 | TQImage |
  image2 | TQImage |
  gt | KImageEffect.GradientType |
  xf | int | 100
  yf | int | 100

- blend (image1, image2, blendImage, channel)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image1 | TQImage |
  image2 | TQImage |
  blendImage | TQImage |
  channel | KImageEffect.RGBComponent |

- blend (upper, lower, output)

  returns (bool)
  static
  Argument | Type | Default
  --- | --- | ---
  upper | TQImage |
  lower | TQImage |
  output | TQImage |

- blend (x, y, upper, lower, output)

  returns (bool) x (int) y (int)
  static
  Argument | Type | Default
  --- | --- | ---
  x | int |
  y | int |
  upper | TQImage |
  lower | TQImage |
  output | TQImage |

- blendOnLower (x, y, upper, lower)

  returns (bool)
  static
  Argument | Type | Default
  --- | --- | ---
  x | int |
  y | int |
  upper | TQImage |
  lower | TQImage |

- blendOnLower (upper, upperOffset, lower, lowerRect)

  returns nothing
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  upper | TQImage |
  upperOffset | TQPoint |
  lower | TQImage |
  lowerRect | TQRect |

- blendOnLower (upper, upperOffset, lower, lowerRect, opacity)

  returns nothing
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  upper | TQImage |
  upperOffset | TQPoint |
  lower | TQImage |
  lowerRect | TQRect |
  opacity | float |

- blendOnLower (upper, lower, disposition, opacity)

  returns nothing
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  upper | TQImage |
  lower | TQImage |
  disposition | KImageEffect.Disposition |
  opacity | float |

- blur (src, radius, sigma)

  returns (TQImage)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  radius | double |
  sigma | double |

- blur (src, factor = 50.0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  factor | double | 50.0

- bumpmap (img, map, azimuth, elevation, depth, xofs, yofs, waterlevel, ambient, compensate, invert, type, tiled)

  returns (TQImage)
  In versions KDE 3.3.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  img | TQImage |
  map | TQImage |
  azimuth | double |
  elevation | double |
  depth | int |
  xofs | int |
  yofs | int |
  waterlevel | int |
  ambient | int |
  compensate | bool |
  invert | bool |
  type | KImageEffect.BumpmapType |
  tiled | bool |

- channelIntensity (image, percent, channel)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  percent | float |
  channel | KImageEffect.RGBComponent |

- charcoal (src, radius, sigma)

  returns (TQImage)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  radius | double |
  sigma | double |

- charcoal (src, factor = 50.0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  factor | double | 50.0

- computeDestinationRect (lowerSize, disposition, upper)

  returns (TQRect)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  lowerSize | TQSize |
  disposition | KImageEffect.Disposition |
  upper | TQImage |

- contrast (image, c)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  c | int |

- contrastHSV (img, sharpen = 1)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  img | TQImage |
  sharpen | bool | 1

- desaturate (image, desat = 0.3)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  desat | float | 0.3

- despeckle (src)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |

- dither (image, palette, size)

  Not Implemented

- edge (src, radius = 50.0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  radius | double | 50.0

- emboss (src, radius, sigma)

  returns (TQImage)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  radius | double |
  sigma | double |

- emboss (src)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |

- equalize (img)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  img | TQImage |

- fade (image, val, color)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  val | float |
  color | TQColor |

- flatten (image, ca, cb, ncols = 0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  ca | TQColor |
  cb | TQColor |
  ncols | int | 0

- gradient (size, ca, cb, type, ncols = 3)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  size | TQSize |
  ca | TQColor |
  cb | TQColor |
  type | KImageEffect.GradientType |
  ncols | int | 3

- hash (image, lite = NorthLite, spacing = 0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  lite | KImageEffect.Lighting | NorthLite
  spacing | uint | 0

- implode (src, factor = 30.0, background = -1)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  factor | double | 30.0
  background | uint | -1

- intensity (image, percent)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  percent | float |

- modulate (image, modImage, reverse, type, factor, channel)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  modImage | TQImage |
  reverse | bool |
  type | KImageEffect.ModulationType |
  factor | int |
  channel | KImageEffect.RGBComponent |

- normalize (img)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  img | TQImage |

- oilPaint (src, radius = 3)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  radius | int | 3

- oilPaintConvolve (src, radius)

  returns (TQImage)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  radius | double |

- rotate (src, r)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  r | KImageEffect.RotateDirection |

- sample (src, w, h)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  w | int |
  h | int |

- selectedImage (img, col)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  img | TQImage |
  col | TQColor |

- shade (src, color_shading = 1, azimuth = 30.0, elevation = 30.0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  color_shading | bool | 1
  azimuth | double | 30.0
  elevation | double | 30.0

- sharpen (src, radius, sigma)

  returns (TQImage)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  radius | double |
  sigma | double |

- sharpen (src, factor = 30.0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  factor | double | 30.0

- solarize (img, factor = 50.0)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  img | TQImage |
  factor | double | 50.0

- spread (src, amount = 3)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  amount | uint | 3

- swirl (src, degrees = 50.0, background = -1)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  degrees | double | 50.0
  background | uint | -1

- threshold (img, value = 128)

  returns nothing
  static
  Argument | Type | Default
  --- | --- | ---
  img | TQImage |
  value | uint | 128

- toGray (image, fast = 0)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | TQImage |
  fast | bool | 0

- unbalancedGradient (size, ca, cb, type, xfactor = 100, yfactor = 100, ncols = 3)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  size | TQSize |
  ca | TQColor |
  cb | TQColor |
  type | KImageEffect.GradientType |
  xfactor | int | 100
  yfactor | int | 100
  ncols | int | 3

- wave (src, amplitude = 25.0, frequency = 150.0, background = -1)

  returns (TQImage)
  static
  Argument | Type | Default
  --- | --- | ---
  src | TQImage |
  amplitude | double | 25.0
  frequency | double | 150.0
  background | uint | -1