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 BoxAction

Box Action

box action is a speical action which can execute actions on a canvas's given area defined by a box or on the whole canvas except an selected area defined by a box.

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

Methods summary

public
# __construct( Jaguar\Action\ActionInterface $action, Jaguar\Box $box, type $invert = false )

construct an new box action

construct an new box action

Parameters

$action
Jaguar\Action\ActionInterface
$action
$box
Jaguar\Box
$box
$invert
type
$invert
public Jaguar\Action\BoxAction
# setAction( Jaguar\Action\ActionInterface $action )

Set action

Set action

Parameters

$action
Jaguar\Action\ActionInterface
$action

Returns

Jaguar\Action\BoxAction
public Jaguar\Action\ActionInterface
# getAction( )

Get action

Get action

Returns

Jaguar\Action\ActionInterface
public Jaguar\Action\BoxAction
# setBox( Jaguar\Box $box )

Set box to apply the action inside it

Set box to apply the action inside it

Parameters

$box
Jaguar\Box
$box

Returns

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

Get box

Get box

Returns

Jaguar\Box
public Jaguar\Action\BoxAction
# invertSelection( string $boolean )

Invert the selection box

Invert the selection box

Parameters

$boolean
string
$boolean true to invert the selection box , false to keep the selection box

Returns

Jaguar\Action\BoxAction
public boolean
# isInvert( )

Check if invert option is enabled

Check if invert option is enabled

Returns

boolean
true if invert selection is enabled , false otherwise

Methods inherited from Jaguar\Action\AbstractAction

apply()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0