Shading: Axial shading (first part)

This commit is contained in:
Jakub Melka
2019-08-25 18:16:37 +02:00
parent d6d112667d
commit 7e2d1b266f
15 changed files with 544 additions and 23 deletions

View File

@ -116,6 +116,11 @@ QRectF PDFPage::getRectMM(const QRectF& rect) const
convertPDFPointToMM(rect.height()));
}
QRectF PDFPage::getRotatedMediaBox() const
{
return getRotatedBox(getMediaBox(), getPageRotation());
}
QRectF PDFPage::getRotatedBox(const QRectF& rect, PageRotation rotation)
{
switch (rotation)