ILIAS
Release_4_4_x_branch Revision 61816
|
Static image methods used by the TCPDF class. More...
Static Public Member Functions | |
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 | _toPNG ($image) |
Convert the loaded image to a PNG and then return a structure for the PDF creator. | |
static | _toJPEG ($image, $quality) |
Convert the loaded image to a JPEG and then return a structure for the PDF creator. | |
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 Public Attributes | |
static | $svginheritprop = array('clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cursor', 'direction', '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.
Definition at line 52 of file tcpdf_images.php.
|
static |
Extract info from a JPEG file without using the GD library.
$file | (string) image file to parse |
Definition at line 162 of file tcpdf_images.php.
References $file, and TCPDF_STATIC\_getUSHORT().
Referenced by _toJPEG(), and TCPDF\Image().
|
static |
Extract info from a PNG file without using the GD library.
$file | (string) image file to parse |
Definition at line 237 of file tcpdf_images.php.
References $file, $n, $t, TCPDF_STATIC\_freadint(), and TCPDF_STATIC\rfread().
Referenced by _toPNG().
|
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.
$image | (image) Image object. |
$quality | (int) JPEG quality. return image JPEG image object. static |
Definition at line 146 of file tcpdf_images.php.
References _parsejpeg(), and TCPDF_STATIC\getObjFilename().
Referenced by TCPDF\Image().
|
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.
$image | (image) Image object. return image PNG image object. |
Definition at line 122 of file tcpdf_images.php.
References _parsepng(), and TCPDF_STATIC\getObjFilename().
Referenced by TCPDF\Image().
|
static |
Return the image type given the file name or array returned by getimagesize() function.
$imgfile | (string) image file name |
$iminfo | (array) array of image information returned by getimagesize() function. |
Definition at line 71 of file tcpdf_images.php.
References TCPDF_STATIC\empty_string().
Referenced by TCPDF\Header(), TCPDF\Image(), TCPDF\openHTMLTagHandler(), and TCPDF\startSVGElementHandler().
|
static |
Set the transparency for the given GD image.
$new_image | (image) GD image object |
$image | (image) GD image object. return GD image object. |
Definition at line 99 of file tcpdf_images.php.
Referenced by TCPDF\Image().
|
static |
Array of hinheritable SVG properties.
Definition at line 59 of file tcpdf_images.php.
Referenced by TCPDF\startSVGElementHandler().