public
|
|
public
boolean
|
#
isGdResource( mixed $resource )
Check if the given resource is gd resource
Check if the given resource is gd resource
Returns
boolean
|
public
boolean
|
#
isHandlerSet( )
Check if the handler is empty
Check if the handler is empty
Returns
boolean
Implementation of
|
public
resource
|
#
getHandler( )
Get canvas handler
Returns
resource gd resource
Implementation of
|
public
Jaguar\CanvasInterface
|
#
setHandler( resource $handler )
Set canvas handler
Parameters
- $handler
resource $handler gd resource
Returns
Throws
InvalidArgumentException
Implementation of
|
public
integer
|
#
getWidth( )
Get canvas width
Returns
integer
Implementation of
|
public
integer
|
#
getHeight( )
Get height
Returns
integer
Implementation of
|
public
Jaguar\Dimension
|
#
getDimension( )
Get canvas dimension
Returns
Implementation of
|
public
boolean
|
#
isTrueColor( )
Check if the canvas represents a truecolor canvas
Check if the canvas represents a truecolor canvas
Returns
boolean true if true color false otherwise
Throws
Implementation of
|
public
Jaguar\CanvasInterface
|
#
alphaBlending( boolean $bool )
Set alpha blending
Parameters
- $bool
boolean $bool default true
Returns
Throws
Implementation of
|
public
Jaguar\CanvasInterface
|
#
create( Jaguar\Dimension $dimension )
Create canvas (true colors only)
Create canvas (true colors only)
Parameters
Returns
Throws
Implementation of
|
public
Jaguar\CanvasInterface
|
#
fromString( string $string )
Create new canvas representing the canvas obtained from the given string
Create new canvas representing the canvas obtained from the given string
Parameters
- $string
string $string canvas as string
Returns
Throws
Implementation of
|
public
Jaguar\CanvasInterface
|
#
fromFile( string $file )
Create new canvas from file
Create new canvas from file
Parameters
Returns
Throws
Implementation of
|
public
Jaguar\CanvasInterface
|
#
fromCanvas( Jaguar\CanvasInterface $canvas )
Replace this canvas handler with a new one loaded from another canvas
Replace this canvas handler with a new one loaded from another canvas
Parameters
Returns
Throws
Implementation of
|
public
integer
|
#
getColorAt( Jaguar\Coordinate $coordinate )
Get color at specific coordinate
Get color at specific coordinate
Parameters
- $coordinate
Jaguar\Coordinatee $coordinate
Returns
integer
Throws
Implementation of
|
public
Jaguar\Drawable\Pixel
|
#
getPixel( Jaguar\Coordinate $coordinate )
Get Pixel at specific coordinate
Get Pixel at specific coordinate
Parameters
- $coordinate
Jaguar\Coordinatee $coordinate
Returns
Throws
Implementation of
|
public
Jaguar\CanvasInterface
|
#
draw( Jaguar\Drawable\DrawableInterface $drawable, mixed $style = null )
Draw drawable object on the current canvas
Draw drawable object on the current canvas
Parameters
Returns
Throws
Implementation of
|
public
Jaguar\CanvasInterface
|
|
public
Jaguar\CanvasInterface
|
|
public
Jaguar\CanvasInterface
|
#
save( string $path = null )
Save canvas
Parameters
- $path
string $path The path to save the canvas to. If not set or NULL, the raw canvas stream
will be outputted directly.
Returns
Throws
Implementation of
|
public
Jaguar\CanvasInterface
|
#
getCopy( )
Get Copy of the current canvas
Get Copy of the current canvas
Returns
Throws
Implementation of
|
public
|
|
public
Jaguar\CanvasInterface
|
#
destroy( )
Destroy the canvas
Returns
Throws
Implementation of
|
public
string
|
#
__toString( )
Get a string representation of the current canvas object
Get a string representation of the current canvas object
Returns
string
Implementation of
|