ImageAnalysis: ezcImageAnalyzerData
[ ]
[ ]
[ ]
[ ]
[ ]
Class: ezcImageAnalyzerData
|
Struct to store the data retrieved from an image analysis. [
source]
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.
Member Variables
|
public int |
$colorCount
= 0
Number of colors in image. |
|
public string |
$comment
= null
First inline comment for the image. |
|
public array |
$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 |
$exif
= array()
EXIF information retrieved from image. |
|
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. |
|
public int |
$size
= 0
Size of image file in bytes. |
|
public int |
$transparencyType
Type of transparency in image. |
|
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
ezcImageAnalyzerData __construct(
[string
$mime = null], [array
$exif = array()], [int
$width = 0], [int
$height = 0], [int
$size = 0], [int
$mode = ezcImageAnalyzerHandler::MODE_TRUECOLOR], [int
$transparencyType = null], [bool
$isColor = true], [int
$colorCount = 0], [string
$comment = null], [array
$commentList = array()], [string
$copyright = null], [int
$date = null], [bool
$hasThumbnail = false], [bool
$isAnimated = false] )
Create a new instance of ezcImageAnalyzerData.
Create a new instance of ezcImageAnalyzerData to be used with
ezcImageAnalyzer objects.
Parameters
See also:
ezcImageAnalyzerHandler::analyzeImage(),
ezcImageAnalyzer::analyzeImage().
Last updated: Fri, 02 Nov 2007