Class for holding unsigned longs.
This class can hold longs, either just a single long or an array of longs. The class will be used to manipulate any of the EXIF tags which can have format PelFormat::LONG like in this example:
Here the width and height is updated to 50% of their original values.
Located in /PelEntryLong.php (line 62)
PelEntry | --PelEntryNumber | --PelEntryLong
Class | Description |
---|---|
![]() |
Class for holding unsigned rational numbers. |
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 long.
The method accept it's arguments in two forms: several integer arguments or a single array argument. The getValue method will always return an array except for when a single integer argument is given here, or when an array with just a single integer is given.
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 PelEntryLong(PelTag::EXIF_IMAGE_WIDTH, 123456);
- $b = $a->getValue() - 654321;
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:01 +0200 by phpDocumentor 1.3.0RC3