Jaguar - PHP Graphic Library
  • Namespace
  • Class
  • Tree

Namespaces

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

Classes

  • GdFactory
  • GifFactory
  • JpegFactory
  • PngFactory

Class PngFactory

Jaguar\Factory\PngFactory implements Jaguar\CanvasFactory
Namespace: Jaguar\Factory
Located at Jaguar/Factory/PngFactory.php

Methods summary

public Jaguar\CanvasInterface
# getCanvas( )

Get new canvas instance

Get new canvas instance

Returns

Jaguar\CanvasInterface

Implementation of

Jaguar\CanvasFactory::getCanvas()
public boolean
# isSupported( string $file )

Checkif the given file can be loaded by this Format

Checkif the given file can be loaded by this Format

Parameters

$file
string
$file file's path

Returns

boolean
true if can be loaded false otherwise

Implementation of

Jaguar\CanvasFactory::isSupported()
public string
# getExtension( boolean $includeDot = true )

Get extension for the canvas Format which this factory handle

Get extension for the canvas Format which this factory handle

Parameters

$includeDot
boolean
$includeDot true to include dot in the extension,false to ignore

Returns

string

Implementation of

Jaguar\CanvasFactory::getExtension()
public string
# getMimeType( )

Get mime type for the canvas Format which this factory handle

Get mime type for the canvas Format which this factory handle

Returns

string

Implementation of

Jaguar\CanvasFactory::getMimeType()

Magic methods summary

Jaguar - PHP Graphic Library API documentation generated by ApiGen 2.8.0