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 anti aliasing quality of the pen and brush is low #564

Open
Charltsing opened this issue Jun 4, 2024 · 2 comments
Open

The anti aliasing quality of the pen and brush is low #564

Charltsing opened this issue Jun 4, 2024 · 2 comments

Comments

@Charltsing
Copy link

Charltsing commented Jun 4, 2024

this is PhotoDemon
捕获

checked or unchecked
111

RenderTarget.SetAntialiasMode(D2D1_ANTIALIAS_MODE_PER_PRIMITIVE) ??


this is use C# gdi in my program
1

@tannerhelland
Copy link
Owner

Thank you for filing this issue, @Charltsing . I apologize that it has taken me so long to reply. (I have spent the past month working on a new pipeline for PhotoDemon stable releases, so it won't take me so long to ship stable release in the future!)

PhotoDemon's Pencil tool also uses GDI+. I can double-check the tool settings to ensure I am using the best GDI+ settings for this purpose.

The Pen tool uses a custom brush mask, because it has to manually "dab" each stroke depending on brush settings. The mask generation code is simple, but I am investigating switching to a third-party brush library in the future (perhaps the mypaint brush library).

PhotoDemon needs a better brush engine, and hopefully I can address the antialiasing behavior as part of a broader brush update.

@Charltsing
Copy link
Author

https://github.com/liole/PicturesqueEditor

I guess your problem may lie in the brush code. If you have time, you can take a look at this

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

No branches or pull requests

2 participants