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

Eliminate gray border in ToGdipBitmap #133

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

viskin
Copy link

@viskin viskin commented Nov 12, 2019

Current implementation of ToGdipBitmap extension method (when PixelMode.Gray) keeps gray border around letters:
image

It doesn't look good when bright text is rendered on bright background.
Instead, I propose to eliminate this background and use only alpha component for antialiasing.
The PR produces following text:

image

Black text on white background produces same pixels when the PR applied.

@HinTak
Copy link
Contributor

HinTak commented Nov 12, 2019

I agree that the rendered image looks wrong - but I wonder if this should be reported upstream? (sorry, used the wrong account).

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

Successfully merging this pull request may close these issues.

2 participants