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
Post a Comment