Class for holding signed shorts.
This class can hold shorts, either just a single short or an array of shorts. The class will be used to manipulate any of the EXIF tags which has format PelFormat::SHORT like in this example:
Here the width and height is updated to 50% of their original values.
Located in /PelEntryShort.php (line 66)
PelEntry | --PelEntryNumber | --PelEntryShort
Inherited from PelEntryNumber
PelEntryNumber::$dimension
PelEntryNumber::$max
PelEntryNumber::$min
PelEntryNumber::$value
Inherited from PelEntry
PelEntry::$bytes
PelEntry::$components
PelEntry::$format
PelEntry::$tag
Make a new entry that can hold an unsigned short.
The method accept several integer arguments. The getValue method will always return an array except for when a single integer argument is given here.
This means that one can conveniently use objects like this:
where the call to getValue will return an integer instead of an array with one integer element, which would then have to be extracted.
- $a = new PelEntryShort(PelTag::EXIF_IMAGE_HEIGHT, 42);
- $b = $a->getValue() + 314;
Get the value of an entry as text.
The value will be returned in a format suitable for presentation, e.g., instead of returning '2' for a PelTag::METERING_MODE tag, 'Center-Weighted Average' is returned.
Convert a number into bytes.
Inherited From PelEntryNumber
PelEntryNumber::addNumber()
PelEntryNumber::formatNumber()
PelEntryNumber::getBytes()
PelEntryNumber::getText()
PelEntryNumber::getValue()
PelEntryNumber::numberToBytes()
PelEntryNumber::setValue()
PelEntryNumber::setValueArray()
PelEntryNumber::validateNumber()
Inherited From PelEntry
PelEntry::getBytes()
PelEntry::getComponents()
PelEntry::getFormat()
PelEntry::getTag()
PelEntry::getText()
PelEntry::newFromData()
PelEntry::__toString()
Documentation generated on Wed, 21 Jul 2004 19:13:06 +0200 by phpDocumentor 1.3.0RC3