Skip to content

Scale back to original scale if possible when writing an image

Noah Davis requested to merge work/ndavis/scale-export-back-down into master

ImagePlatformKWin: move logicalX/logicalY to ImageMetaData.h

ImagePlatformKWin: Store the geometries of all sub images in a combined image as metadata

To be used for scaling images based on the original device pixel ratio.

AnnotationDocument: set logicalX/logicalY for images created by renderToImage

set to the position of the canvas rectangle

ExportManager: Scale back to original scale if possible when writing an image

This way when you have a 1920x1080@1x screen and a 3840x2160@2x screen, a rectangular screenshot on the 1080p screen gives a 1x scale image instead of a 2x scale image when the image is finally saved.

CCBUG: 487997

Edited by Noah Davis

Merge request reports

Loading