escpos-php
|
Implementation of EscposImage using only native PHP. More...
Protected Member Functions | |
loadImageData (string $filename=null) | |
![]() | |
loadImageData (string $filename=null) | |
Load an image from disk. More... | |
setImgData ($data) | |
Set image data. More... | |
setImgWidth ($width) | |
Set image width. More... | |
setImgHeight ($height) | |
Set image height. More... | |
getRasterFormatFromFile ($filename=null) | |
getColumnFormatFromFile ($filename=null, $highDensityVertical=true) | |
Additional Inherited Members | |
![]() | |
__construct ($filename=null, $allowOptimisations=true) | |
Construct a new EscposImage. More... | |
getHeight () | |
getHeightBytes () | |
getWidth () | |
getWidthBytes () | |
toRasterFormat () | |
Output the image in raster (row) format. More... | |
toColumnFormat ($doubleDensity=false) | |
Output the image in column format. More... | |
![]() | |
static | isGdLoaded () |
static | isImagickLoaded () |
static | load (string $filename, bool $allowOptimisations=true, array $preferred=['imagick', 'gd', 'native']) |
This is a convinience method to load an image from file, auto-selecting an EscposImage implementation which uses an available library. More... | |
![]() | |
$imgHeight = 0 | |
height of the image. | |
$imgWidth = 0 | |
width of the image | |
Implementation of EscposImage using only native PHP.