graphicsBase
in package
Base class that kicks in if neither GD or Imagick are available for image handling Provides basic check method to see what library is available
Tags
Table of Contents
Properties
- $fontlist : mixed
- $gd_loaded : mixed
- $gd_present : mixed
- $generalinfo : mixed
- $imagemagick_version : mixed
- $imagemagick_version_pass : mixed
- $imagick_present : mixed
- $imagick_version : mixed
- $imagick_version_pass : mixed
- $info : mixed
Methods
- __construct() : mixed
- checkGraphicSupport() : mixed
- Check if a required graphics libary is available on the system Mzst be called by every graphics class related constructor to ensure that general properties are set properly
- colorAllocate() : mixed
- copyCanvas() : mixed
- createImage() : mixed
- drawRectangle() : mixed
- flipImage() : mixed
- flipRotateImage() : object|false
- Rotates and/or flips an image based on by using rotateImage() and flipImage() methods
- getCounterClockwiseRotation() : int
- Returns the counter clockwise rotation degree the GD library requires
- getFonts() : mixed
- graphicsLibInfo() : mixed
- imageBlurGD() : mixed
- imageCanRotate() : mixed
- imageColorTransparent() : mixed
- imageDims() : mixed
- imageFill() : mixed
- imageFontHeight() : mixed
- imageFontWidth() : mixed
- imageFromString() : mixed
- imageGet() : mixed
- imageGray() : mixed
- imageHeight() : mixed
- imageIPTC() : mixed
- imageKill() : mixed
- imageLoadFont() : mixed
- imageMerge() : mixed
- imageOutput() : mixed
- imageResizeAlpha() : mixed
- imageResizeTransparent() : mixed
- imageUnsharpMask() : mixed
- imageWidth() : mixed
- resampleImage() : mixed
- rotateImage() : mixed
- writeString() : mixed
Properties
$fontlist
public
mixed
$fontlist
= array()
$gd_loaded
public
mixed
$gd_loaded
= \false
$gd_present
public
mixed
$gd_present
= \false
$generalinfo
public
mixed
$generalinfo
= array()
$imagemagick_version
public
mixed
$imagemagick_version
= ''
$imagemagick_version_pass
public
mixed
$imagemagick_version_pass
= \false
$imagick_present
public
mixed
$imagick_present
= \false
$imagick_version
public
mixed
$imagick_version
= ''
$imagick_version_pass
public
mixed
$imagick_version_pass
= \false
$info
public
mixed
$info
= array()
Methods
__construct()
public
__construct() : mixed
checkGraphicSupport()
Check if a required graphics libary is available on the system Mzst be called by every graphics class related constructor to ensure that general properties are set properly
public
checkGraphicSupport() : mixed
Tags
colorAllocate()
public
colorAllocate(mixed $image, mixed $red, mixed $green, mixed $blue) : mixed
Parameters
- $image : mixed
- $red : mixed
- $green : mixed
- $blue : mixed
copyCanvas()
public
copyCanvas(mixed $imgCanvas, mixed $img, mixed $dest_x, mixed $dest_y, mixed $src_x, mixed $src_y, mixed $w, mixed $h) : mixed
Parameters
- $imgCanvas : mixed
- $img : mixed
- $dest_x : mixed
- $dest_y : mixed
- $src_x : mixed
- $src_y : mixed
- $w : mixed
- $h : mixed
createImage()
public
createImage(mixed $w, mixed $h) : mixed
Parameters
- $w : mixed
- $h : mixed
drawRectangle()
public
drawRectangle(mixed $image, mixed $x1, mixed $y1, mixed $x2, mixed $y2, mixed $color) : mixed
Parameters
- $image : mixed
- $x1 : mixed
- $y1 : mixed
- $x2 : mixed
- $y2 : mixed
- $color : mixed
flipImage()
public
flipImage(mixed $im, mixed $direction) : mixed
Parameters
- $im : mixed
- $direction : mixed
flipRotateImage()
Rotates and/or flips an image based on by using rotateImage() and flipImage() methods
public
flipRotateImage(object $im, array<string|int, mixed> $rotate) : object|false
Parameters
- $im : object
-
GDImage or imagick image object
- $rotate : array<string|int, mixed>
-
Two dimensional array with rotate and flip indexes as returned be getImageRotation()
Tags
Return values
object|falsegetCounterClockwiseRotation()
Returns the counter clockwise rotation degree the GD library requires
public
static getCounterClockwiseRotation(int $degree) : int
Parameters
- $degree : int
-
Rotation degree clockwise
Tags
Return values
intgetFonts()
public
getFonts() : mixed
graphicsLibInfo()
public
graphicsLibInfo() : mixed
imageBlurGD()
public
imageBlurGD(mixed $imgCanvas, mixed $imgCanvas2, mixed $radius, mixed $w, mixed $h) : mixed
Parameters
- $imgCanvas : mixed
- $imgCanvas2 : mixed
- $radius : mixed
- $w : mixed
- $h : mixed
imageCanRotate()
public
imageCanRotate() : mixed
imageColorTransparent()
public
imageColorTransparent(mixed $image, mixed $color) : mixed
Parameters
- $image : mixed
- $color : mixed
imageDims()
public
imageDims(mixed $filename) : mixed
Parameters
- $filename : mixed
imageFill()
public
imageFill(mixed $image, mixed $x, mixed $y, mixed $color) : mixed
Parameters
- $image : mixed
- $x : mixed
- $y : mixed
- $color : mixed
imageFontHeight()
public
imageFontHeight(mixed $font) : mixed
Parameters
- $font : mixed
imageFontWidth()
public
imageFontWidth(mixed $font) : mixed
Parameters
- $font : mixed
imageFromString()
public
imageFromString(mixed $string) : mixed
Parameters
- $string : mixed
imageGet()
public
imageGet(mixed $imgfile) : mixed
Parameters
- $imgfile : mixed
imageGray()
public
imageGray(mixed $image) : mixed
Parameters
- $image : mixed
imageHeight()
public
imageHeight(mixed $im) : mixed
Parameters
- $im : mixed
imageIPTC()
public
imageIPTC(mixed $filename) : mixed
Parameters
- $filename : mixed
imageKill()
public
imageKill(mixed $im) : mixed
Parameters
- $im : mixed
imageLoadFont()
public
imageLoadFont([mixed $font = NULL ][, mixed $size = 18 ]) : mixed
Parameters
- $font : mixed = NULL
- $size : mixed = 18
imageMerge()
public
imageMerge(mixed $dst_im, mixed $src_im, mixed $dst_x, mixed $dst_y, mixed $src_x, mixed $src_y, mixed $src_w, mixed $src_h, mixed $pct) : mixed
Parameters
- $dst_im : mixed
- $src_im : mixed
- $dst_x : mixed
- $dst_y : mixed
- $src_x : mixed
- $src_y : mixed
- $src_w : mixed
- $src_h : mixed
- $pct : mixed
imageOutput()
public
imageOutput(mixed $im, mixed $type[, mixed $filename = NULL ][, mixed $qual = 75 ]) : mixed
Parameters
- $im : mixed
- $type : mixed
- $filename : mixed = NULL
- $qual : mixed = 75
imageResizeAlpha()
public
imageResizeAlpha(mixed $src, mixed $w, mixed $h) : mixed
Parameters
- $src : mixed
- $w : mixed
- $h : mixed
imageResizeTransparent()
public
imageResizeTransparent(mixed $src, mixed $w, mixed $h) : mixed
Parameters
- $src : mixed
- $w : mixed
- $h : mixed
imageUnsharpMask()
public
imageUnsharpMask(mixed $img, mixed $amount, mixed $radius, mixed $threshold) : mixed
Parameters
- $img : mixed
- $amount : mixed
- $radius : mixed
- $threshold : mixed
imageWidth()
public
imageWidth(mixed $im) : mixed
Parameters
- $im : mixed
resampleImage()
public
resampleImage(mixed $dst_image, mixed $src_image, mixed $dst_x, mixed $dst_y, mixed $src_x, mixed $src_y, mixed $dst_w, mixed $dst_h, mixed $src_w, mixed $src_h) : mixed
Parameters
- $dst_image : mixed
- $src_image : mixed
- $dst_x : mixed
- $dst_y : mixed
- $src_x : mixed
- $src_y : mixed
- $dst_w : mixed
- $dst_h : mixed
- $src_w : mixed
- $src_h : mixed
rotateImage()
public
rotateImage(mixed $im, mixed $rotate) : mixed
Parameters
- $im : mixed
- $rotate : mixed
writeString()
public
writeString(mixed $image, mixed $font, mixed $x, mixed $y, mixed $string, mixed $color) : mixed
Parameters
- $image : mixed
- $font : mixed
- $x : mixed
- $y : mixed
- $string : mixed
- $color : mixed