user13758278
user13758278

Reputation:

How do i get the center x and y of an image

How do i find the center x and y of an image.

Upvotes: 0

Views: 296

Answers (2)

user13758278
user13758278

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

Elbowz
Elbowz

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

Related Questions