float factor = _sharedContext.getPixelsPerDot();
float factor = _sharedContext.getDotsPerPixel();
    private void scaleToOutputResolution(Image image) {        float factor = _sharedContext.getPixelsPerDot();        image.scaleAbsolute(image.plainWidth() * factor, image.plainHeight() * factor);    }