Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the antialiasing on different background, #254

Open
tomffff opened this issue Mar 11, 2024 · 0 comments
Open

the antialiasing on different background, #254

tomffff opened this issue Mar 11, 2024 · 0 comments

Comments

@tomffff
Copy link

tomffff commented Mar 11, 2024

Check this code:

< rect width="200" height="100", x="0" y="0" fill="gray" />
< path d = "M 100 0 v 200M 60 50 h80 M 60 150 h80" stroke="#ffff00" stroke-width="20" fill="none" stroke-linecap="round" />
when I rasterized to a 50x50 bitmap and display it on a black background:
line

same line looks in different size!
it's the same line from top to bottom, however, the lower part looks much thicker,

I think this was caused by antialiasing, can we setup a default background to blend the color for when doing the antialiasing?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant