https://bugs.kde.org/show_bug.cgi?id=516970

--- Comment #19 from Konstantin <[email protected]> ---
Read the message above and this.

I suggest making Rectangular Region use the same native-resolution capture path
as Full Screen.

Instead of asking the backend/compositor to capture the selected region
separately, capture the screen at native physical resolution first, convert the
selected rectangle from logical coordinates to physical pixel coordinates, and
crop the resulting image with QImage::copy().

There should be no scaling or resampling involved.

For example, at 125% scaling, an 800×400 logical-pixel selection should
correspond to a 1000×500 crop from the native screenshot:

800 × 1.25 = 1000

400 × 1.25 = 500

This would guarantee that Rectangular Region contains exactly the same pixels
as the corresponding area of a Full Screen screenshot.

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to