c# - How to get position from Image in PictureBox -


i've question. know how can position of centered image in picturebox?

i need x , y coordinates i'dn't have idea.

thank in advance.

if picture box bigger image, can try calculate image's absolute position on form:

int absimgx=picturebox1.left+picturebox1.width/2-picturebox1.image.width/2 int absimgy=picturebox1.top+picturebox1.height/2-picturebox1.image.height/2 

Comments

Popular posts from this blog

How to connect android app to App engine -

gcc - MinGW's ld cannot perform PE operations on non PE output file -

php - display validation error message next to the textbox in codeigniter -