Méthode | Description | |
---|---|---|
loadPdf ( string $pdfFile, string $pageWidth = 550 ) : multitype:EscposImage | Load a PDF for use on the printer | |
readImageFromImagick ( Imagick $im ) | Load actual image pixels from Imagick object |
Méthode | Description | |
---|---|---|
getColumnFormatFromFile ( string $filename = null, boolean $highDensityVertical = true ) : string[] | null | ||
getRasterFormatFromFile ( string $filename = null ) : string | null | ||
loadImageData ( string $filename = null ) | Load an image from disk, into memory, using Imagick. |
Méthode | Description | |
---|---|---|
alphaRemove ( Imagick $im ) : Imagick | Paste image over white canvas to stip transparency reliably on different versions of ImageMagick. | |
getColumnFormatFromImage ( Imagick $im, integer $lineHeight ) : string[] | Return data in column format as array of slices. | |
getImageFromFile ( string $filename ) : Imagick | Load Imagick file from image | |
getRasterBlobFromImage ( Imagick $im ) : string | Pull blob (from PBM-formatted image only!), and spit out a blob or raster data. |
protected getColumnFormatFromFile ( string $filename = null, boolean $highDensityVertical = true ) : string[] | null | ||
$filename | string | Filename to load from |
$highDensityVertical | boolean | True for high density output (24px lines), false for regular density (8px) |
Résultat | string[] | null | Column format data as array, or NULL if optimised renderer isn't available in this implementation. |
protected loadImageData ( string $filename = null ) | ||
$filename | string | The filename to load from |
public readImageFromImagick ( Imagick $im ) | ||
$im | Imagick | Image to load from |