ZenphotoCMS 1.6.3

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
since
1.6
  • reworked as class

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

Methods

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
global

boolean $_zp_gd_present

global

type $_zp_imagick_present

global

type $_zp_imagick_version

global

type $_zp_imagick_version_pass

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
since
1.6.1
Return values
object|false

getCounterClockwiseRotation()

Returns the counter clockwise rotation degree the GD library requires

public static getCounterClockwiseRotation(int $degree) : int
Parameters
$degree : int

Rotation degree clockwise

Tags
since
1.6.1

Adapted from anonymous comment on https://www.php.net/manual/en/imagick.rotateimage

Return values
int

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

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

imageIPTC()

public imageIPTC(mixed $filename) : mixed
Parameters
$filename : 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

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

        
On this page

Search results