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

DrawLineAa anti-aliased behavior is not as expected in a case #35

Closed
epsi1on opened this issue Sep 12, 2017 · 6 comments
Closed

DrawLineAa anti-aliased behavior is not as expected in a case #35

epsi1on opened this issue Sep 12, 2017 · 6 comments

Comments

@epsi1on
Copy link
Contributor

epsi1on commented Sep 12, 2017

Hi,
i have trouble with DrawLineAa method. drawn line is like below image:
it is drawn by DrawLineAA, but not anti aliased!

line aa
more detail:
line aa2

Do you know what is the reason of this? I'm using nuget package of WritableBitmapEx v1.5.1 on .NET 4.5.2 and windows 10
thanks

@brinkdinges
Copy link

I'm having this issue as well. Does the anti-aliasing assume a black background or something?

I could not get other other methods for drawing lines with a thickness to work, so I'm sticking with this method for now.

@mbenoni7
Copy link

Yeah, it appears to be a problem when the line is drawn onto transparent pixels. Filling the bitmap with a solid color first improves the appearance.

@reneschulte
Copy link
Owner

This would require significant time from my end which I don't have. If you can help out, a contribution is always welcome. Otherwise please use the workaround.

@epsi1on
Copy link
Contributor Author

epsi1on commented Feb 8, 2022

@reneschulte,
Hi, I'm not familiar with anti alias line drawing algorithms, can you please give some information or reference about used algorithm in the code?
I've traced this issue and made pull request #74 , but seems i broke the algorithm. any comment is welcome !
Thanks

@epsi1on
Copy link
Contributor Author

epsi1on commented Feb 8, 2022

Also do you accept Crypto Currency (Lite Coin) as donation? I do not have paypal but want to donate with LTC.
Thanks

@epsi1on
Copy link
Contributor Author

epsi1on commented Nov 6, 2024

dear friends, I think we should do the job our self. hopefully will not break anything...
@brinkdinges @mbenoni7 @EricOuellet2 do you have any experience in anti aliasing algorithms?
this project is opensource, so the source code is there, we should be able to fix the problem, i already had some tries but no success.

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

4 participants