What I meant is dpi is not properties of pixmap, but rather device you work with.