[Solved] Screenshot quality

Hi
I’m not new but slightly confused with “Screenshot” - when using otherwise lovely Screenshot application I always get a lot of artefacts, especially on perfectly rendered fonts, usually a reddish outline, while the fonts themselves are rendered perfectly well on-screen.

The screenshots are PNG, so there is no way the artefacts come from compression.

Any alternative or setting to make a screenshots look like the screen?

can you send an attachment?

Sure - look at the lettering - it is really poor - the screen resolution is 1366x768 (Thinkpad X270) - I can make a better image using my phone actually …

go to preferences menu and click appearance. then click the anti-aliasing tab. here you can turn off glyph hinting and switch to grayscale text which should remove the effect

Thank you!
better, no colors in the outlines but still far from the actual screen quality…

Still looks like slightly compressed image - as in higher quality Jpeg.

my eyes arent that good so unfortunately i cant really see the problem. you can try using a lower resolution

Thank you wzeyctfvgtgfrycthe2n anyway
At least something.
Have a good day!

1 Like

hold on, i thought of something else also.

after taking a screenshot press the settings button and select adam7 as your interlacer type. this woukd probably do something

1 Like

Yes, a bit better yet.

Thanks Again!

Had some food and got the idea, to write a (subclassing module for) display driver and svg output. This would do the best job, but then people will call me bonkers.

1 Like

I haven’t checked your uploaded screenshot, but had a look at my screen directly. I was assuming the screenshot did a 1:1 screen dump. And appears to be exactly that… :slight_smile:

I opened the Magnify app, made the pixels really big, removed the grid and looked at the magnified window of a StyledEdit document. Then I made a screenshot, copied to clipboard and pasted it into WonderBrush. Zooming in, it looks 100% identical. Tried with saving the screenshot as PNG. Still identical.

Not sure what you’re seeing and why…

The quality on an LCD screen is different because , when enabled, the glyph hinting sub pixel exploit the LCD matrix disposition to do a better anti aliasing, by playing with luminance and colorimetry of anti-aliasing pixels to in fact do anti aliasing at sub pixels level. It’s using the fact pixels on LCD screens are vertical R, G and B LEDs horizontally aligned in a square area.

This give very good result when displayed on LCD screens.

But it make any screenshot taken capturing it too, and more visible… if you zoom in. When the screenshot is display at original scale 1:1 on a LCD screen, no difference is visible.

It’s also depends on the image file format. With lossy image format like JPEG, it can generate amplified artefacts around the antialiased area.

Screenshot app capture the current content of the current screen. It’s the current content, and this content is made for being best viewed on a LCD screen at 1:1 scale.

4 Likes

Do you talk about the less crisp font rendering here?

I didn’t check deep, but don’t you use your own freetype rendering code in your Pure writer instead of the builtin one in Haiku’s app_server?

Do you see these difference in any other apps, including the builtin ones of Haiku?

All apps.
In PureMail, which renders directly with freetype and DrawText it becomes much better (in a high zoom, it is always crisp on the LCD!) when using greyscale antialiasing, as in this example.

I think that is the best achievable in this situation - looks just fine for a PNG

Big thanks for the in-depth explanations!

Sorry, did not reply to your question:
“Do you talk about the less crisp font rendering here?” - Yes, exactly.
LCD is top-notch, screenshots - well - like this with grayscale subpixel anti aliasing is the best.

Well, the sub pixels hinting is reputed to give more crisp result, in particular on hiDPI for small font size or the reverse, large font size and lower DPI.

But as explained, you can turn it off in Apparence if for you the classic, pixel level aliasing looks better.

1 Like

More details on subpixel aliasing on LCD screens:

Until the patent expired in 2019, the subpixel antialiasing (“LCD subpixel”) type was not enabled by default in Haiku, IIRC.

You may want to check, with some real magnify, what is the actual geometry of R G and B on your screen display. Maybe it’s ordered in a different order, or not placed as expected by the algorithm.

You can also try to play with the filter strength slider to see if it make thing looking better or not in your case.

My LCD is perfect and antialiasing with Haiku works there also perfect, crisp and sharp !!!

Sorry to take your time, maybe I did not state it clear enough: that was all about the screenshots in PNG done with Screenshot tool, not the actual Monitor/LCD display, the latter is flawless with both types of anti aliasing (grayscale and subpixel).

Thanks anyway for the context, phoudoin

2 Likes

What people are trying to explain is that the Screenshot app gets exactly the same image that is sent to the monitor. Now, subpixel antialiasing uses the physical properties of the LCD screen to fake a higher horizontal resolution. If you take a screenshot and see it with any zoom, that won’t align and you’ll see ugly stuff on the borders. As far as I know, the PNG translator does lossless encoding, so if you used that and put the screenshot 1:1 on the same screen, you get exactly the same image you had.

That said, the first screenshot you attached has the subpixel colors changed, with blue to the left and red to the right, but only in the document part. Zoom in to compare the colours for antialiasing for the text in the document with the ones for menus or the clock. That is not due to Screenshot.

1 Like

BTW, if it use DrawText(), it’s not using freetype for the rendering, but the app_server rendering code.

Sorry, yes, freetype is not used for canvas output.

All clear. I just do not get the artefacts on my windows box with oled screen.

Edit: I figured it out - I’m stupid.
On Windows/Mac/Linux I use graphic card for PureMail to draw the text and UI (Delphi with FMX), just DirectDraw/Vulcan/Metal surfaces.

Apologies for the thread.

On my X270, screenshots look identical to the actual LCD display to me with no artifacts.