[英]Getting the actual top left of an image within a larger PictureBox (C# Windows Forms)
通过计算,您应该能够获得一个像素:
int x = (pictureBox1.Width - pictureBox1.Image.Width) / 2;
int y = (pictureBox1.Height - pictureBox1.Image.Height) / 2;
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.