PhpOffice\PhpPresentation\Writer\PowerPoint2007\AbstractDecoratorWriter::writeOutline PHP Method

writeOutline() protected method

Write Outline
protected writeOutline ( PhpOffice\Common\XMLWriter $objWriter, Outline $oOutline )
$objWriter PhpOffice\Common\XMLWriter
$oOutline PhpOffice\PhpPresentation\Style\Outline
    protected function writeOutline(XMLWriter $objWriter, $oOutline)
    {
        if (!$oOutline instanceof Outline) {
            return;
        }
        // Width : pts
        $width = $oOutline->getWidth();
        // Width : pts => px
        $width = CommonDrawing::pointsToPixels($width);
        // Width : px => emu
        $width = CommonDrawing::pixelsToEmu($width);
        // a:ln
        $objWriter->startElement('a:ln');
        $objWriter->writeAttribute('w', $width);
        // Fill
        $this->writeFill($objWriter, $oOutline->getFill());
        // > a:ln
        $objWriter->endElement();
    }