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

Set anti-aliasing level #27

Closed
ju5tas opened this issue Nov 17, 2023 · 2 comments
Closed

Set anti-aliasing level #27

ju5tas opened this issue Nov 17, 2023 · 2 comments

Comments

@ju5tas
Copy link

ju5tas commented Nov 17, 2023

Hi!
Native MuPDF library has the ability to set how many bits of anti-aliasing to use (fz_set_aa_level). The default value is 8.
But MuPdfCore has no such parameter in the WriteImage method.
Please add it, because sometimes anti-aliasing messes up schemes and fonts.

@arklumpus
Copy link
Owner

Hi, thank you for suggesting this - I will implement it as soon as I manage to have enough time to work on this and to also update the native MuPDF to the latest version!

@arklumpus
Copy link
Owner

This is now implemented in version 1.8.0:

  • The MuPDFContext.GraphicsAntiAliasing property can be used to get and set the graphics anti-aliasing.
  • The MuPDFContext.TextAntiAliasing property can be used to get and set the text anti-aliasing.
  • The MuPDFContext.AntiAliasing property (write-only) can be used to set both the graphics and text anti-aliasing to the same level.

I'm closing this issue, let me know if you have any other problems or suggestions.

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

2 participants