Zeta Components Manual :: Docs For Class ezcImageAnalyzerData
ImageAnalysis::ezcImageAnalyzerData
Class ezcImageAnalyzerData
Struct to store the data retrieved from an image analysis.
This class is used as a struct for the data retrieved from an ezcImageAnalyzerHandler. It stores various information about an analyzed image and pre-fills it's attributes with sensible default values, to make the usage as easy as possible.
Ths struct class should not be accessed directly (except form ezcImageAnalyzerHandler classes, where it is created). From a users view it is transparently accessable through ezcImageAnalyzer::$data, more specific using
Source for this file: /ImageAnalysis/src/structs/analyzer_data.php
ezcBaseStruct | --ezcImageAnalyzerData
Version: | //autogentag// |
Member Variables
public int |
$colorCount
= 0
Number of colors in image. |
public string |
$comment
= null
First inline comment for the image. |
public array(string) |
$commentList
= array()
List of inline comments for the image. |
public string |
$copyright
= null
Copyright text for the image. |
public int |
$date
The date when the picture was taken as UNIX timestamp. |
public array(string=>string) |
$exif
= array()
EXIF information retrieved from image. This will only be filled in for images which supports EXIF entries, currently they are:
|
public bool |
$hasThumbnail
= false
Does the image have a thumbnail? |
public int |
$height
= 0
Height of image in pixels. |
public bool |
$isAnimated
= false
Is the image animated? |
public bool |
$isColor
= true
Does the image have colors? |
public string |
$mime
Detected MIME type for the image. |
public int |
$mode
= ezcImageAnalyzerHandler::MODE_TRUECOLOR
The image mode. Can be one of:
|
public int |
$size
= 0
Size of image file in bytes. |
public int |
$transparencyType
Type of transparency in image. Can be one of:
|
public int |
$width
= 0
Width of image in pixels. |
Method Summary
public ezcImageAnalyzerData |
__construct(
[ $mime
= null] , [ $exif
= array()] , [ $width
= 0] , [ $height
= 0] , [ $size
= 0] , [ $mode
= ezcImageAnalyzerHandler::MODE_TRUECOLOR] , [ $transparencyType
= null] , [ $isColor
= true] , [ $colorCount
= 0] , [ $comment
= null] , [ $commentList
= array()] , [ $copyright
= null] , [ $date
= null] , [ $hasThumbnail
= false] , [ $isAnimated
= false] )
Create a new instance of ezcImageAnalyzerData. |
Methods
__construct
Create a new instance of ezcImageAnalyzerData.
Create a new instance of ezcImageAnalyzerData to be used with ezcImageAnalyzer objects.
Parameters:
Name | Type | Description |
---|---|---|
$mime |
string | ezcImageAnalyzerData::$mime |
$exif |
array | ezcImageAnalyzerData::$exif |
$width |
int | ezcImageAnalyzerData::$width |
$height |
int | ezcImageAnalyzerData::$height |
$size |
int | ezcImageAnalyzerData::$size |
$mode |
int | ezcImageAnalyzerData::$mode |
$transparencyType |
int | ezcImageAnalyzerData::$transparencyType |
$isColor |
bool | ezcImageAnalyzerData::$isColor |
$colorCount |
int | ezcImageAnalyzerData::$colorCount |
$comment |
string | ezcImageAnalyzerData::$comment |
$commentList |
array | ezcImageAnalyzerData::$commentList |
$copyright |
string | ezcImageAnalyzerData::$copyright |
$date |
int | ezcImageAnalyzerData::$date |
$hasThumbnail |
bool | ezcImageAnalyzerData::$hasThumbnail |
$isAnimated |
bool | ezcImageAnalyzerData::$isAnimated |