Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

  • Jaguar
    • Action
      • Blur
      • Color
      • Pixelate
      • Preset
    • Color
    • Drawable
      • Border
      • Style
      • Text
    • Exception
    • Factory
    • Format
    • Gradient

Classes

  • AbstractAction
  • Bevel
  • BoxAction
  • ColorSlice
  • Convolution
  • Crop
  • EdgeDetection
  • Flip
  • Light
  • Mirror
  • Overlay
  • Resize
  • Rotate
  • Sharpen
  • Sketchy
  • Smooth
  • Unsharpen
  • Watermark
  • Wavy

Interfaces

  • ActionInterface

Class Convolution

Jaguar\Action\AbstractAction implements Jaguar\Action\ActionInterface
Extended by Jaguar\Action\Convolution
Namespace: Jaguar\Action
Located at Jaguar/Action/Convolution.php

Methods summary

public
# __construct( array $matrix, float $divisor = 1.0, float $offset = 0.0 )

construct new convolution action

construct new convolution action

Parameters

$matrix
array
$matrix
$divisor
float
$divisor
$offset
float
$offset
public Jaguar\Action\Convolution
# setOffset( float $offset )

Set color offeset

Set color offeset

Parameters

$offset
float
$offset

Returns

Jaguar\Action\Convolution
public float
# getOffset( )

Get color offset

Get color offset

Returns

float
public Jaguar\Action\Convolution
# setDivisor( float $divisor )

Set The divisor of the result of the convolution

Set The divisor of the result of the convolution

Parameters

$divisor
float
$divisor

Returns

Jaguar\Action\Convolution
public float
# getDivisor( )

Get divisor

Get divisor

Returns

float
public Jaguar\Action\Convolution
# setMatrix( array $matrix )

Set matrix

Set matrix

A 3x3 matrix: an array of three arrays of three floats.

Parameters

$matrix
array
$matrix

Returns

Jaguar\Action\Convolution

Throws

RuntimeException
if not valid matrix

Methods inherited from Jaguar\Action\AbstractAction

apply()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0