class KImageEffect

#### PyKDE - Python Bindings for KDE

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

Module | kdefx
Class | KImageEffect
Inherits |

### enums

- BumpmapType = {Linear, Spherical, Sinuosidal }
- Disposition = {NoImage = 0, 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 = 0, GaussianNoise, MultiplicativeGaussianNoise, ImpulseNoise, LaplacianNoise, PoissonNoise }
- RGBComponent = {Red, Green, Blue, Gray, All }
- RotateDirection = {Rotate90, Rotate180, Rotate270 }

### methods

- addNoise (src, type = GaussianNoise)

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

- blend (clr, dst, opacity)

  returns (QImage)
  static
  Argument | Type | Default
  --- | --- | ---
  clr | QColor |
  dst | QImage |
  opacity | float |

- blend (src, dst, opacity)

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

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

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

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

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

- blend (image1, image2, blendImage, channel)

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

- blend (upper, lower, output)

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

- blend (upper, lower, output)

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

- blendOnLower (x, y, upper, lower)

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

- blendOnLower (upper, upperOffset, lower, lowerRect)

  returns nothing
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  upper | QImage |
  upperOffset | QPoint |
  lower | QImage |
  lowerRect | QRect |

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

  returns nothing
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  upper | QImage |
  upperOffset | QPoint |
  lower | QImage |
  lowerRect | QRect |
  opacity | float |

- blendOnLower (upper, lower, disposition, opacity)

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

- blur (src, radius, sigma)

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

- blur (src, factor = 50.0)

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

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

  returns (QImage)
  In versions KDE 3.3.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  img | QImage |
  map | QImage |
  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 (QImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | QImage |
  percent | float |
  channel | KImageEffect.RGBComponent |

- charcoal (src, radius, sigma)

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

- charcoal (src, factor = 50.0)

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

- computeDestinationRect (lowerSize, disposition, upper)

  returns (QRect)
  In versions KDE 3.2.0 and above only
  static
  Argument | Type | Default
  --- | --- | ---
  lowerSize | QSize |
  disposition | KImageEffect.Disposition |
  upper | QImage |

- contrast (image, c)

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

- contrastHSV (img, sharpen = 1)

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

- desaturate (image, desat = 0.3)

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

- despeckle (src)

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

- dither (image, palette, size)

  Not Implemented

- edge (src, radius = 50.0)

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

- emboss (src, radius, sigma)

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

- emboss (src)

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

- equalize (img)

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

- fade (image, val, color)

  returns (QImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | QImage |
  val | float |
  color | QColor |

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

  returns (QImage)
  static
  Argument | Type | Default
  --- | --- | ---
  image | QImage |
  ca | QColor |
  cb | QColor |
  ncols | int | 0

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

  returns (QImage)
  static
  Argument | Type | Default
  --- | --- | ---
  size | QSize |
  ca | QColor |
  cb | QColor |
  type | KImageEffect.GradientType |
  ncols | int | 3

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

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

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

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

- intensity (image, percent)

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

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

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

- normalize (img)

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

- oilPaint (src, radius = 3)

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

- oilPaintConvolve (src, radius)

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

- rotate (src, r)

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

- sample (src, w, h)

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

- selectedImage (img, col)

  returns (QImage)
  static
  Argument | Type | Default
  --- | --- | ---
  img | QImage |
  col | QColor |

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

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

- sharpen (src, radius, sigma)

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

- sharpen (src, factor = 30.0)

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

- solarize (img, factor = 50.0)

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

- spread (src, amount = 3)

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

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

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

- threshold (img, value = 128)

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

- toGray (image, fast = 0)

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

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

  returns (QImage)
  static
  Argument | Type | Default
  --- | --- | ---
  size | QSize |
  ca | QColor |
  cb | QColor |
  type | KImageEffect.GradientType |
  xfactor | int | 100
  yfactor | int | 100
  ncols | int | 3

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

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