-
Notifications
You must be signed in to change notification settings - Fork 86
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
Drawing circle with subpixel accuracy #304
Comments
I've represented the source, path and output in different images:
Same for antialias mode NONE circle center at (9.5, 9.5): The path is not radially symmetrical. It has two extra pixels. However, the source does not have those extra pixels. The value of the red component is those pixels is zero. The source is radially symmetrical. Am I supposed to use a bigger circle for the path? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi!
I've been trying to draw a circle with subpixel accuracy.
I am using red paint as the source and a circle as the path.
E.g. Red filled circle of radius=3 and center at (10, 10):
Even though the image looks good, the pixel values are not symmetrical.
Shouldn't it be symmetrical?
At first I was not setting antialias mode. By setting it to NONE, I get the expected result:
However, when I use floating point coordinates, I don't get what I expect either.
E.g. Red filled circle of radius=3 and center at (9.5, 9.5):
I've tried to apply a radial gradient to simulate a smooth decrease of intensity:
Still not radially symmetrical if I look at the pixel values.
Am I doing something wrong or is this the expected behavior?
The text was updated successfully, but these errors were encountered: