Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

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

Classes

  • AbstractCanvas
  • Box
  • Canvas
  • CompressableCanvas
  • Coordinate
  • Dimension
  • Font
  • ImageFile
  • Transformation
  • Util

Interfaces

  • CanvasFactory
  • CanvasInterface
  • EqualsInterface

Class Transformation

Provide shortcuts for basic actions

Final
Namespace: Jaguar
CodeCoverageIgnore
Located at Jaguar/Transformation.php

Methods summary

public
# __construct( Jaguar\CanvasInterface $canvas )

construct new transformation

construct new transformation

Parameters

$canvas
Jaguar\CanvasInterface
$canvas
public Jaguar\Transformation
# setCanvas( Jaguar\CanvasInterface $canvas )

Set working canvas

Set working canvas

Parameters

$canvas
Jaguar\CanvasInterface
$canvas

Returns

Jaguar\Transformation
public Jaguar\CanvasInterface
# getCanvas( )

Get working canvas

Get working canvas

Returns

Jaguar\CanvasInterface
public Jaguar\Transformation
# apply( Jaguar\Action\ActionInterface $action )

Apply action on the working canvas

Apply action on the working canvas

Parameters

$action
Jaguar\Action\ActionInterface
$action

Returns

Jaguar\Transformation
public Jaguar\Transformation
# applyArray( array $actions )

Apply array of actions

Apply array of actions

Parameters

$actions
array
$actions

Returns

Jaguar\Transformation
public Jaguar\Transformation
# crop( Jaguar\Box $box )

Crop the given box from the working canvas

Crop the given box from the working canvas

Parameters

$box
Jaguar\Box
$box

Returns

Jaguar\Transformation
public Jaguar\Transformation
# flipHorizontal( )

Flip the working in horizontal direction

Flip the working in horizontal direction

Returns

Jaguar\Transformation
public Jaguar\Transformation
# flipVertical( )

Flip the working in vertical direction

Flip the working in vertical direction

Returns

Jaguar\Transformation
public Jaguar\Transformation
# flipBoth( )

Flip the working in vertical and horizontal directions

Flip the working in vertical and horizontal directions

Returns

Jaguar\Transformation
public Jaguar\Transformation
# mirrorHorizontal( )

Horizontal mirror

Horizontal mirror

Returns

Jaguar\Transformation
public Jaguar\Transformation
# mirrorVertical( )

Vertical mirror

Vertical mirror

Returns

Jaguar\Transformation
public Jaguar\Transformation
# resize( Jaguar\Dimension $dimension )

Resize the working canvas to the given dimension

Resize the working canvas to the given dimension

Parameters

$dimension
Jaguar\Dimension
$dimension

Returns

Jaguar\Transformation
public Jaguar\Transformation
# rotate( inetger $degree, Jaguar\Color\ColorInterface $background = null )

Rotate the working canvas

Rotate the working canvas

Parameters

$degree
inetger
$degree
$background
Jaguar\Color\ColorInterface
$background

Returns

Jaguar\Transformation
public Jaguar\Transformation
# watermark( Jaguar\CanvasInterface $watermark, Jaguar\Coordinate $cooridnate = null )

Watermakr the working canvas with the given canvas

Watermakr the working canvas with the given canvas

Parameters

$watermark
Jaguar\CanvasInterface
$watermark
$cooridnate
Jaguar\Coordinate
$cooridnate

Returns

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

Overlay the current canvas with the given canvas

Overlay the current canvas with the given canvas

Parameters

$overlay
Jaguar\CanvasInterface
$overlay
$mount
integer
$mount
$box
Jaguar\Box
$box

Returns

Jaguar\Transformation
public Jaguar\Transformation
# overlayWatermark( Jaguar\CanvasInterface $watermark, Jaguar\Coordinate $cooridnate = null, integer $mount = 100 )

Watermakr the working canvas with the given canvas using the overlay method

Watermakr the working canvas with the given canvas using the overlay method

Parameters

$watermark
Jaguar\CanvasInterface
$watermark
$cooridnate
Jaguar\Coordinate
$cooridnate
$mount
integer
$mount

Returns

Jaguar\Transformation
public Jaguar\Transformation
# edgeDetection( string $type )

Apply edge detection filter

Apply edge detection filter

Parameters

$type
string
$type one of the edge detections types

Returns

Jaguar\Transformation

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0