Karoffe Posted September 8, 2015 Share Posted September 8, 2015 I want to draw some text on each image, all images are the same size, problem is even if I could adjust 1 text to be so close to the center of the image, other texts won't look in the center because of their width, height.. so I want a way to get the center of an image depending on the width, height of the text... Images width, height = 200, 200 Link to comment
Moderators IIYAMA Posted September 8, 2015 Moderators Share Posted September 8, 2015 You can center the text inside it's boundingbox. No need for extreme calculations. Link to comment
JR10 Posted September 8, 2015 Share Posted September 8, 2015 dxGetTextWidth and dxGetFontHeight Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now