Added support for setting background colour of Pdf document.

This commit is contained in:
Robert Osfield
2008-12-09 09:26:51 +00:00
parent c0ac01c576
commit d8c17e4c4c
8 changed files with 25 additions and 13 deletions

View File

@@ -31,6 +31,7 @@ bool PdfReader::assign(PdfImage* pdfImage, GeometryHints hints)
if (!pdfImage) return false;
_pdfImage = pdfImage;
_pdfImage->setBackgroundColor(hints.backgroundColor);
bool flip = _pdfImage->getOrigin()==osg::Image::TOP_LEFT;