|
Moodle PHP Documentation 4.4
Moodle 4.4.9+ (Build: 20250711) (4ea86454947)
|
Static image methods used by the TCPDF class. More...
Static Public Member Functions | |
| static | _parsejpeg ($file) |
| Extract info from a JPEG file without using the GD library. | |
| static | _parsepng ($file) |
| Extract info from a PNG file without using the GD library. | |
| static | _toJPEG ($image, $quality, $tempfile) |
| Convert the loaded image to a JPEG and then return a structure for the PDF creator. | |
| static | _toPNG ($image, $tempfile) |
| Convert the loaded image to a PNG and then return a structure for the PDF creator. | |
| static | getImageFileType ($imgfile, $iminfo=array()) |
| Return the image type given the file name or array returned by getimagesize() function. | |
| static | setGDImageTransparency ($new_image, $image) |
| Set the transparency for the given GD image. | |
Static Public Attributes | |
| static string[] | $svginheritprop = array('clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cursor', 'direction', 'display', 'fill', 'fill-opacity', 'fill-rule', 'font', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'glyph-orientation-horizontal', 'glyph-orientation-vertical', 'image-rendering', 'kerning', 'letter-spacing', 'marker', 'marker-end', 'marker-mid', 'marker-start', 'pointer-events', 'shape-rendering', 'stroke', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke-width', 'text-anchor', 'text-rendering', 'visibility', 'word-spacing', 'writing-mode') |
| Array of hinheritable SVG properties. | |
Static image methods used by the TCPDF class.
..
PHP class for generating PDF documents without requiring external extensions.
|
static |
Extract info from a JPEG file without using the GD library.
| string | $file | image file to parse |
| array|false | structure containing the image data static |
|
static |
Extract info from a PNG file without using the GD library.
| string | $file | image file to parse |
| array|false | structure containing the image data static |
|
static |
Convert the loaded image to a JPEG and then return a structure for the PDF creator.
This function requires GD library and write access to the directory defined on K_PATH_CACHE constant.
| resource | $image | Image object. |
| int | $quality | JPEG quality. |
| string | $tempfile | Temporary file name. return array|false image JPEG image object. static |
|
static |
Convert the loaded image to a PNG and then return a structure for the PDF creator.
This function requires GD library and write access to the directory defined on K_PATH_CACHE constant.
| resource | $image | Image object. |
| string | $tempfile | Temporary file name. return image PNG image object. |
|
static |
Return the image type given the file name or array returned by getimagesize() function.
| string | $imgfile | image file name |
| array | $iminfo | array of image information returned by getimagesize() function. |
| string | image type |
|
static |
Set the transparency for the given GD image.
| resource | $new_image | GD image object |
| resource | $image | GD image object. |
| resource | GD image object $new_image |
|
static |
Array of hinheritable SVG properties.