Perforce Chronicle 2012.2/486814
API Documentation
|
Defines the interface that Perforce image manipulation drivers must implement. More...
Public Member Functions | |
getData ($type=null) | |
Return binary image data. | |
getImageSize () | |
Return the image dimensions. | |
hasData () | |
Check if there are image data to operate with. | |
setData ($data=null) | |
Set the image data. | |
transform ($transform, $args=array()) | |
Apply the given transformation. | |
Static Public Member Functions | |
static | getSupportedTransforms () |
List of supported transformations. | |
static | isSupportedTransform ($transform) |
Determine if the passed transformation is supported by this driver. | |
static | isSupportedType ($type) |
Check if given image type is supported. |
Defines the interface that Perforce image manipulation drivers must implement.
P4Cms_Image_Driver_Interface::getData | ( | $ | type = null | ) |
Return binary image data.
string | $type | optional - the image format (will return image data in the same format as input if not provided) |
Implemented in P4Cms_Image_Driver_Gd, and P4Cms_Image_Driver_Imagick.
P4Cms_Image_Driver_Interface::getImageSize | ( | ) |
Return the image dimensions.
Implemented in P4Cms_Image_Driver_Abstract.
static P4Cms_Image_Driver_Interface::getSupportedTransforms | ( | ) | [static] |
List of supported transformations.
Implemented in P4Cms_Image_Driver_Abstract.
P4Cms_Image_Driver_Interface::hasData | ( | ) |
Check if there are image data to operate with.
Implemented in P4Cms_Image_Driver_Gd, and P4Cms_Image_Driver_Imagick.
static P4Cms_Image_Driver_Interface::isSupportedTransform | ( | $ | transform | ) | [static] |
Determine if the passed transformation is supported by this driver.
string | $transform | the transformation to query. |
Implemented in P4Cms_Image_Driver_Abstract.
static P4Cms_Image_Driver_Interface::isSupportedType | ( | $ | type | ) | [static] |
Check if given image type is supported.
string | $type | image type to check for |
Implemented in P4Cms_Image_Driver_Gd, and P4Cms_Image_Driver_Imagick.
P4Cms_Image_Driver_Interface::setData | ( | $ | data = null | ) |
Set the image data.
string | null | $data | optional - image data |
Implemented in P4Cms_Image_Driver_Gd, and P4Cms_Image_Driver_Imagick.
P4Cms_Image_Driver_Interface::transform | ( | $ | transform, |
$ | args = array() |
||
) |
Apply the given transformation.
string | $transform | name of the transformation |
array | $args | optional - transformation arguments |
Implemented in P4Cms_Image_Driver_Abstract.