

Public Member Functions | |
| readImageFromGdResource ($im) | |
Public Member Functions inherited from Mike42\Escpos\EscposImage | |
| __construct ($filename=null, $allowOptimisations=true) | |
| getHeight () | |
| getHeightBytes () | |
| getWidth () | |
| getWidthBytes () | |
| toRasterFormat () | |
| toColumnFormat ($doubleDensity=false) | |
Protected Member Functions | |
| loadImageData ($filename=null) | |
Protected Member Functions inherited from Mike42\Escpos\EscposImage | |
| loadImageData ($filename=null) | |
| setImgData ($data) | |
| setImgWidth ($width) | |
| setImgHeight ($height) | |
| getRasterFormatFromFile ($filename=null) | |
| getColumnFormatFromFile ($filename=null, $highDensityVertical=true) | |
Additional Inherited Members | |
Static Public Member Functions inherited from Mike42\Escpos\EscposImage | |
| static | isGdLoaded () |
| static | isImagickLoaded () |
| static | load ($filename, $allowOptimisations=true, array $preferred=['imagick', 'gd', 'native']) |
Protected Attributes inherited from Mike42\Escpos\EscposImage | |
| $imgHeight = 0 | |
| $imgWidth = 0 | |
Implementation of EscposImage using the GD PHP plugin.
|
protected |
Load an image from disk, into memory, using GD.
| string | null | $filename | The filename to load from |
| Exception | if the image format is not supported, or the file cannot be opened. |
| Mike42\Escpos\GdEscposImage::readImageFromGdResource | ( | $im | ) |
Load actual image pixels from GD resource.
| resource | $im | GD resource to use |
| Exception | Where the image can't be read. |
1.8.8