When copying from a QPixmap, the rectangle area should be scaled according to `devicePixelRatio`. This fixes #300.