I am not able to center align the text #214
Answered
by
JimBobSquarePants
bodamithun
asked this question in
Q&A
-
I am writing text on an image, I am unable to align it correctly based on the horizontal alignment.. I am setting the textOption like below... but the text not aligning correctly with HorizontalAlignment . TextOptions textOptions = new TextOptions(scaledFont)
{
HorizontalAlignment = horizontalAlignment.Center,
VerticalAlignment = VerticalAlignment.Top,
WrappingLength = targetWidth,
Origin = new PointF(xCordinate, yCordinate)
}; Can somebody please point me what exactly I am missing. |
Beta Was this translation helpful? Give feedback.
Answered by
JimBobSquarePants
Mar 31, 2022
Replies: 1 comment 1 reply
-
You haven’t provided enough information for us to help I’m afraid. What are your expectations vs the output? |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
JimBobSquarePants
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You haven’t provided enough information for us to help I’m afraid.
What are your expectations vs the output?