mirror of
https://github.com/JakubMelka/PDF4QT.git
synced 2025-06-05 21:59:17 +02:00
Dimension painting
This commit is contained in:
@ -50,6 +50,13 @@ int PDFWidgetUtils::scaleDPI_x(QPaintDevice* device, int unscaledSize)
|
||||
return (logicalDPI_x / defaultDPI_x) * unscaledSize;
|
||||
}
|
||||
|
||||
int PDFWidgetUtils::scaleDPI_y(QPaintDevice* device, int unscaledSize)
|
||||
{
|
||||
const double logicalDPI_y = device->logicalDpiY();
|
||||
const double defaultDPI_y = qt_default_dpi_y();
|
||||
return (logicalDPI_y / defaultDPI_y) * unscaledSize;
|
||||
}
|
||||
|
||||
PDFReal PDFWidgetUtils::scaleDPI_x(QPaintDevice* device, PDFReal unscaledSize)
|
||||
{
|
||||
const double logicalDPI_x = device->logicalDpiX();
|
||||
|
Reference in New Issue
Block a user