I have:
chrisw@newton /tmp/test/m $ ./m
Running in CONSOLE mode
physicalDpi: x=75 y=75
logicalDpi: x=75 y=75
chrisw@newton /tmp/test/m $ ./m 1
Running in GUI mode
physicalDpi: x=93 y=95
logicalDpi: x=93 y=95
chrisw@newton /tmp/test/m $ ./m
Running in CONSOLE mode
physicalDpi: x=75 y=75
logicalDpi: x=75 y=75
chrisw@newton /tmp/test/m $ ./m 1
Running in GUI mode
physicalDpi: x=93 y=95
logicalDpi: x=93 y=95
To copy to clipboard, switch view to plain text mode
on my Linux box. I used
image.setDotsPerMeterX(3937);
image.setDotsPerMeterY(3937);
image.setDotsPerMeterX(3937);
image.setDotsPerMeterY(3937);
To copy to clipboard, switch view to plain text mode
to set 100DPI and the resulting saved images had the same DPI figures installed (and hence the same 'print size'). The distinction is only really relevant if you are going to put the image pixel-for-pixel onto a device with a different DPI and expect the same physical dimensions on the image.
Bookmarks