GDfallback
in package
Add (possibly) missing features from GD
Table of Contents
Methods
- imageCopyMergeAlpha() : mixed
- Add missing function for PNG watermark with GD
- imagecreatefrombmp() : GdImage
- Load BMP image to GD
- mirror() : GdImage
- Mirroring image if GD absent
- rotate() : GdImage|false
- Function for rotating image if GD absent
Methods
imageCopyMergeAlpha()
Add missing function for PNG watermark with GD
public
static imageCopyMergeAlpha(GdImage &$destImg, GdImage &$srcImg, int $destX, int $destY, int $srcX, int $srcY, int $srcW, int $srcH[, float $blend = 0 ]) : mixed
Parameters
- $destImg : GdImage
- $srcImg : GdImage
- $destX : int
- $destY : int
- $srcX : int
- $srcY : int
- $srcW : int
- $srcH : int
- $blend : float = 0
-
0 - 1
imagecreatefrombmp()
Load BMP image to GD
public
static imagecreatefrombmp(string $filename) : GdImage
Parameters
- $filename : string
Return values
GdImagemirror()
Mirroring image if GD absent
public
static mirror(GdImage $img) : GdImage
Parameters
- $img : GdImage
Return values
GdImagerotate()
Function for rotating image if GD absent
public
static rotate(GdImage $img, int $rotation) : GdImage|false
Parameters
- $img : GdImage
- $rotation : int