gg icon indicating copy to clipboard operation
gg copied to clipboard

params of DrawStringWrapped() ax, ay means ambiguous

Open airylinus opened this issue 7 years ago • 1 comments

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.

airylinus avatar Oct 27 '18 09:10 airylinus

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

fogleman avatar Feb 21 '19 02:02 fogleman