Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

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

Classes

  • Gd
  • Gif
  • Jpeg
  • Png

Class Gd

Jaguar\AbstractCanvas implements Jaguar\CanvasInterface
Extended by Jaguar\Format\Gd
Namespace: Jaguar\Format
Located at Jaguar/Format/Gd.php

Methods summary

public
# __construct( Jaguar\Dimension|Jaguar\CanvasInterface|file|null $source = null, boolean $compressed = true, integer $size = 0 )

construct new gd canvas

construct new gd canvas

Parameters

$source
Jaguar\Dimension|Jaguar\CanvasInterface|file|null
$source
$compressed
boolean
$compressed
$size
integer
$size

Throws

Jaguar\Exception\InvalidDimensionException
Jaguar\Exception\CanvasCreationException

Overrides

Jaguar\AbstractCanvas::__construct
public Jaguar\Format\Gd
# setCompressed( boolean $bool )

Set Compressed

Set Compressed

Parameters

$bool
boolean
$bool true to compresse the resource

Returns

Jaguar\Format\Gd
public boolean
# getCompressed( )

Get Compressed

Get Compressed

Returns

boolean

CodeCoverageIgnore

public Jaguar\Format\Gd
# setChunkSize( integer $size )

Set Chunk Size

Set Chunk Size

Parameters

$size
integer
$size

Returns

Jaguar\Format\Gd
public integer
# getChunkSize( )

Get Chunk Size

Get Chunk Size

Returns

integer
public static boolean
# isGdFile( string $filename )

Check if the given file is gd file

Check if the given file is gd file

Parameters

$filename
string
$filename

Returns

boolean
true if gd file,false otherwise

Throws

InvalidArgumentException
public Jaguar\Format\Gd
# partFromFile( string $file, Jaguar\Box $box )

Load Part Of gd canvas from file

Load Part Of gd canvas from file

Note : This method will not check if the coordinat is valid coordinate for the resource and it won't check the Dimension either.

Parameters

$file
string
$file
$box
Jaguar\Box
$box

Returns

Jaguar\Format\Gd

Throws

InvalidArgumentException
Jaguar\Exception\CanvasCreationException

Methods inherited from Jaguar\AbstractCanvas

__clone(), __toString(), alphaBlending(), create(), destroy(), draw(), fill(), fromCanvas(), fromFile(), fromString(), getColorAt(), getCopy(), getDimension(), getHandler(), getHeight(), getPixel(), getWidth(), isGdResource(), isHandlerSet(), isTrueColor(), paste(), save(), setHandler()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0