code: private void scaleToOutputResolution(Image image) {
  
          float factor = m_sharedContext.getDotsPerPixel();
          if (factor != 1.0f) {
              image.scaleAbsolute(image.getPlainWidth() * factor, image.getPlainHeight() * factor);
          }
      }
docs: Scales the image to output resolution.<p>
  
  @param image the image to scale