Свойство | Тип | Описание | |
---|---|---|---|
$_background | string | Background color. | |
$_capabilities | array | Capabilites of this driver. | |
$_context | Cache the context | ||
$_data | string | The current image data. | |
$_height | integer | The current height of the image data. | |
$_loadedEffects | array | Array containing available Effects | |
$_logger | Logger. | ||
$_tmpdir | string | A directory for temporary files. | |
$_type | string | What kind of images should ImageMagick generate? Defaults to 'png'. | |
$_width | integer | The current width of the image data. |
Метод | Описание | |
---|---|---|
__call ( $method, $args ) | Catch-all method so that we don't error out when calling an unsupported manipulation method. | |
addEffect ( string $type, array $params ) | Attempts to apply requested effect to this image. | |
applyEffects ( ) | Applies any effects in the effect queue. | |
brush ( integer $x, integer $y, string $color = 'black', string $shape = 'square' ) | Draws a shaped point at the specified (x,y) point. | |
clearGeometry ( ) | Utility function to zero out cached geometry information. | |
display ( ) | Displays the current image. | |
getCapabilities ( ) : array | Returns the capabilities. | |
getContentType ( ) : string | Returns the MIME type for this image. | |
getDimensions ( ) : array | Returns the height and width of the current image data. | |
getImageAtIndex ( integer $index ) : Horde_Image_Base | Returns a specific image from the pages of images. | |
getImagePageCount ( ) : integer | Returns the number of image pages available in the image object. | |
getLoadedEffects ( ) | Returns a list of available effects for this driver. | |
getTmpDir ( ) : string | Returns the current temporary directory. | |
getType ( ) : string | Returns the image type. | |
hasCapability ( string $capability ) : boolean | Checks the existence of a particular capability. | |
headers ( ) | Sends HTTP headers for the image. | |
loadFile ( string $filename ) | Loads the image data from a file. | |
loadString ( string $image_data ) | Loads the image data from a string. | |
raw ( boolean $convert = false ) : string | Returns the raw data for this image. | |
reset ( ) | Resets the image data to defaults. | |
setType ( string $type ) : string | Sets the output image type. | |
toFile ( $data = null ) : string | Saves image data to file. |
Метод | Описание | |
---|---|---|
__construct ( array $params, array $context = [] ) | Constructor. | |
_logDebug ( string $message ) | Logs a message at debug level. | |
_logErr ( string $message ) | Logs a message at error level. |
public __call ( $method, $args ) |
protected __construct ( array $params, array $context = [] ) | ||
$params | array | The image object parameters. Values include: - background: (string) The background color. DEFAULT: white. - data: (string) The image binary data. - height: (integer) The desired image height. - type: (string) The output image type (png, jpeg etc.). DEFAULT: png. - width: (integer) The desired image width. |
$context | array | The object context - configuration, injected objects: - logger: (Horde_Log_Logger) A logger. - tmpdir: [REQUIRED] (string) Temporary directory. |
public clearGeometry ( ) |
public getCapabilities ( ) : array | ||
Результат | array | A list of backend capabilities. |
public getContentType ( ) : string | ||
Результат | string | The MIME type for this image. |
public getDimensions ( ) : array | ||
Результат | array | An hash with 'width' containing the width, 'height' containing the height of the image. |
public getImageAtIndex ( integer $index ) : Horde_Image_Base | ||
$index | integer | The index to return. |
Результат | Horde_Image_Base | The requested image |
public getImagePageCount ( ) : integer | ||
Результат | integer | The number of images. |
public getLoadedEffects ( ) |
public hasCapability ( string $capability ) : boolean | ||
$capability | string | The capability to check for. |
Результат | boolean | True if the backend has this capability. |
public loadString ( string $image_data ) | ||
$image_data | string | The data to use for the image. |
protected array $_capabilities | ||
Результат | array |
protected int $_height | ||
Результат | integer |
protected array $_loadedEffects | ||
Результат | array |
protected string $_tmpdir | ||
Результат | string |
protected string $_type | ||
Результат | string |
protected int $_width | ||
Результат | integer |