TCPDF::ImagePngAlpha( $file, $x, $y, $wpx, $hpx, $w, $h, $type, $link, $align, $resize, $dpi, $palign, $filehash = '' )
Extract info from a PNG image with alpha channel using the Imagick or GD library.
Description Description
See also See also
Parameters Parameters
- $file
-
(Required) (string) Name of the file containing the image.
- $x
-
(Required) (float) Abscissa of the upper-left corner.
- $y
-
(Required) (float) Ordinate of the upper-left corner.
- $wpx
-
(Required) (float) Original width of the image in pixels.
- $hpx
-
(Required) (float) original height of the image in pixels.
- $w
-
(Required) (float) Width of the image in the page. If not specified or equal to zero, it is automatically calculated.
- $h
-
(Required) (float) Height of the image in the page. If not specified or equal to zero, it is automatically calculated.
- $type
-
(Required) (string) Image format. Possible values are (case insensitive): JPEG and PNG (whitout GD library) and all images supported by GD: GD, GD2, GD2PART, GIF, JPEG, PNG, BMP, XBM, XPM;. If not specified, the type is inferred from the file extension.
- $link
-
(Required) (mixed) URL or identifier returned by AddLink().
- $align
-
(Required) (string) Indicates the alignment of the pointer next to image insertion relative to image height. The value can be:<ul><li>T: top-right for LTR or top-left for RTL</li><li>M: middle-right for LTR or middle-left for RTL</li><li>B: bottom-right for LTR or bottom-left for RTL</li><li>N: next line</li></ul>
- $resize
-
(Required) (boolean) If true resize (reduce) the image to fit $w and $h (requires GD library).
- $dpi
-
(Required) (int) dot-per-inch resolution used on resize
- $palign
-
(Required) (string) Allows to center or align the image on the current line. Possible values are:<ul><li>L : left align</li><li>C : center</li><li>R : right align</li><li>'' : empty string : left for LTR or right for RTL</li></ul>
- $filehash
-
(Optional) (string) File hash used to build unique file names.
Default value: ''
Source Source
File: includes/lib/tcpdf/tcpdf.php
Changelog Changelog
Version | Description |
---|---|
4.3.007 | Introduced. |