PHP 클래스 Mike42\Escpos\ImagickEscposImage

상속: extends EscposImage
파일 보기 프로젝트 열기: mike42/escpos-php 1 사용 예제들

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
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.

비공개 메소드들

메소드 설명
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.

메소드 상세

getColumnFormatFromFile() 보호된 메소드

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)
리턴 string[] | null Column format data as array, or NULL if optimised renderer isn't available in this implementation.

getRasterFormatFromFile() 보호된 메소드

protected getRasterFormatFromFile ( string $filename = null ) : string | null
$filename string Filename to load from
리턴 string | null Raster format data, or NULL if no optimised renderer is available in this implementation.

loadImageData() 보호된 메소드

Load an image from disk, into memory, using Imagick.
protected loadImageData ( string $filename = null )
$filename string The filename to load from

loadPdf() 공개 정적인 메소드

Load a PDF for use on the printer
public static loadPdf ( string $pdfFile, string $pageWidth = 550 ) : multitype:EscposImage
$pdfFile string The file to load
$pageWidth string The width, in pixels, of the printer's output. The first page of the PDF will be scaled to approximately fit in this area.
리턴 multitype:EscposImage

readImageFromImagick() 공개 메소드

Load actual image pixels from Imagick object
public readImageFromImagick ( Imagick $im )
$im Imagick Image to load from