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

Method ScaleNX. #16

Open
zvezdochiot opened this issue Oct 27, 2023 · 0 comments
Open

Method ScaleNX. #16

zvezdochiot opened this issue Oct 27, 2023 · 0 comments

Comments

@zvezdochiot
Copy link

zvezdochiot commented Oct 27, 2023

Hi @bbbbbr .

See stbiscalenx: Stb Image Scale Near X.

This method is very similar to ScaleX. This method does not add new colors, only uses those that already exist. Replacing equal with near makes color selection more flexible, allowing pixel scaling techniques to be applied even to full-color images. I use this to scale scanned material containing a lot of glyphs and contours.

origin x2 x3
orig x2 x3
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