Expose the view's pixel-ratio and resolution through View#pixelRatio and View#resolution
Take into account the view's resolution in Item#rasterize()