PhpOffice\PhpPresentation\Reader\PowerPoint97::readRecordOfficeArtChildAnchor PHP Method

readRecordOfficeArtChildAnchor() private method

The OfficeArtChildAnchor record specifies four signed integers that specify the anchor for the shape that contains this record.
private readRecordOfficeArtChildAnchor ( string $stream, integer $pos )
$stream string
$pos integer
    private function readRecordOfficeArtChildAnchor($stream, $pos)
    {
        $arrayReturn = array('length' => 0);
        $data = $this->loadRecordHeader($stream, $pos);
        if ($data['recVer'] == 0x0 && $data['recInstance'] == 0x0 && $data['recType'] == 0xf00f && $data['recLen'] == 0x10) {
            // Record Header
            $arrayReturn['length'] += 8;
            // Datas
            $arrayReturn['left'] = (int) self::getInt4d($stream, $pos + $arrayReturn['length']);
            $arrayReturn['length'] += 4;
            $arrayReturn['top'] = (int) self::getInt4d($stream, $pos + $arrayReturn['length']);
            $arrayReturn['length'] += 4;
            $arrayReturn['width'] = (int) self::getInt4d($stream, $pos + $arrayReturn['length']) - $arrayReturn['left'];
            $arrayReturn['length'] += 4;
            $arrayReturn['height'] = (int) self::getInt4d($stream, $pos + $arrayReturn['length']) - $arrayReturn['top'];
            $arrayReturn['length'] += 4;
        }
        return $arrayReturn;
    }
PowerPoint97