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

params of DrawStringWrapped() ax, ay means ambiguous #53

Open
airylinus opened this issue Oct 27, 2018 · 1 comment
Open

params of DrawStringWrapped() ax, ay means ambiguous #53

airylinus opened this issue Oct 27, 2018 · 1 comment

Comments

@airylinus
Copy link

airylinus commented Oct 27, 2018

It's says:

The anchor point is x - w * ax, y - h * ay, where w, h is the size of the
// text. Use ax=0.5, ay=0.5 to center the text at the specified point.

I'm not sure how to understanding the "anchor point", Does it the very central point ( both center of horizon and vertical ) of text area( or whole image?) ? Or the left top point of text area as OpenCV?

I noticed ax, ay coordinate with Align setting, but still cannt get it.

@fogleman
Copy link
Owner

Did you try rendering with different values to understand how it works?

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