Reputation:
How do i find the center x and y of an image.
Upvotes: 0
Views: 296
Reputation:
The string width then divide the image width / 2 and take away the string width /2. This allows me to center the text regardless of the width of the string or the height or width of the image
Upvotes: 0
Reputation: 76
Can't comment - not enough reputation, so I'll get it as an answer. Shouldn't you just use width/2 and height/2?
Upvotes: 3