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 Overlay

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

Methods summary

public
# __construct( Jaguar\CanvasInterface $overlay, integer $amount = 100, Jaguar\Box $box = null )

construct new overlay action

construct new overlay action

Parameters

$overlay
Jaguar\CanvasInterface
$canvas
$amount
integer
$amount in range(0,100)
$box
Jaguar\Box
$box defulat null which means the size of given canvas will be used for the given overlay.

Throws

InvalidArgumentException
public Jaguar\Action\Overlay
# setOverlay( Jaguar\CanvasInterface $canvas )

Set overlay

Set overlay

Parameters

$canvas
Jaguar\CanvasInterface
$canvas

Returns

Jaguar\Action\Overlay
public Jaguar\CanvasInterface
# getOverlay( )

Get overlay

Get overlay

Returns

Jaguar\CanvasInterface
public Jaguar\Action\Overlay
# setBox( Jaguar\Box $box )

Set the overlay box

Set the overlay box

Overlay box define a position and the size for overlay to use when it merged with the given canvas

Parameters

$box
Jaguar\Box
$box

Returns

Jaguar\Action\Overlay
public Jaguar\Box
# getBox( )

Get overlay box

Get overlay box

Returns

Jaguar\Box
public Jaguar\Action\Overlay
# setAmount( integer $amount )

Set overlay amount

Set overlay amount

Parameters

$amount
integer
$amount in range(0,100)

Returns

Jaguar\Action\Overlay

Throws

InvalidArgumentException
public integer
# getAmount( )

Get overlay amount

Get overlay amount

Returns

integer
public
# __clone( )

Disable clone

Disable clone

Throws

RuntimeException

Methods inherited from Jaguar\Action\AbstractAction

apply()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0