class-Com.Tecnick.Pdf.Image.Import

It appears that you are using AdBlocking software. The cost of running this website is covered by advertisements. If you like it please feel free to a small amount of money to secure the future of this website.

Class Import

Com\Tecnick\Pdf\Image\Import

Com\Tecnick\Pdf\Image\Output
Extended by Com\Tecnick\Pdf\Image\Import
Namespace: Com\Tecnick\Pdf\Image
Package: PdfImage
Category: Library
Copyright: 2011-2016 Nicola Asuni - Tecnick.com LTD
License: GNU-LGPL v3 (see LICENSE.TXT)
Author: Nicola Asuni info@tecnick.com
Since: 2011-05-23
Link: https://github.com/tecnickcom/tc-lib-pdf-image
Located at Import.php
Methods summary
public integer
# add( string $image, integer $width = null, integer $height = null, boolean $ismask = false, integer $quality = 100, boolean $defprint = false, boolean $altimgs = array() , array $altimgs,… )

Add a new image

public string
# getKey( string $image, integer $width = 0, integer $height = 0, integer $quality = 100 )

Get the Image key used for caching

public array
# getImageDataByKey( string $key )

Get an imported image by key

protected array
# import( string $image, integer $width = null, integer $height = null, boolean $ismask = false, integer $quality = 100 )

Import the original image raw data

protected string
# getData( string $data, integer $width, integer $height, integer $quality )

Extract the relevant data from the image

protected array
# getRawData( string $image )

Get the original image raw data

protected array
# getMetaData( string $data )

Get the image meta data

protected array
# getResizedRawData( string $data, integer $width, integer $height, boolean $alpha = true, integer $quality = 100 )

Get the resized image raw data (always convert the image type to a native format: PNG or JPEG)

protected array
# getAlphaChannelRawData( string $data )

Extract the alpha channel as separate image to be used as a mask

Methods inherited from Com\Tecnick\Pdf\Image\Output
__construct(), getObjectNumber(), getOutAltImages(), getOutColorInfo(), getOutIcc(), getOutImage(), getOutImagesBlock(), getOutPalette(), getOutTransparency(), getSetImage(), getXobjectDict()
Properties summary
protected integer $iid

Image index. Count the number of added images.

# 0
protected array $image

Stack of added images.

# array()
protected array $cache

Cache used to store imported image data. The same image data can be reused multiple times.

# array()
private static array $native

Native image types and associated importing class (image types for which we have an import method)

# array( IMAGETYPE_PNG => 'Png', IMAGETYPE_JPEG => 'Jpeg', )
protected static array $lossless

Lossless image types

# array( IMAGETYPE_GIF, IMAGETYPE_PNG, IMAGETYPE_PSD, IMAGETYPE_BMP, IMAGETYPE_WBMP, IMAGETYPE_XBM, IMAGETYPE_TIFF_II, IMAGETYPE_TIFF_MM, IMAGETYPE_IFF, IMAGETYPE_SWC, IMAGETYPE_ICO, )
protected static array $colspacemap

Map number of channels with color space name

# array( 1 => 'DeviceGray', 3 => 'DeviceRGB', 4 => 'DeviceCMYK', )
Properties inherited from Com\Tecnick\Pdf\Image\Output
$enc, $kunit, $pdfa, $pon, $xobjdict
 

© 2004-2017 – Nicola Asuni - Tecnick.com - All rights reserved.
about - disclaimer - privacy