转自:http://blog.youkuaiyun.com/moonsilvering/archive/2010/10/14/5940506.aspx
PictureBoxSizeMode.Normal:

默认情况下,在 Normal 模式中,Image 置于 PictureBox 的左上角,凡是因过大而不适合 PictureBox 的任何图像部分都将被剪裁掉。
PictureBoxSizeMode.StretchImage:

使用 StretchImage 值会使图像拉伸或收缩,以便适合 PictureBox。
PictureBoxSizeMode.AutoSize:

使用 AutoSize 值会使控件调整大小,以便总是适合图像的大小。
PictureBoxSizeMode.CenterImage:

使用 CenterImage 值会使图像居于工作区的中心。
PictureBoxSizeMode.Zoom:

使用 Zoom 的值可以使图像被拉伸或收缩以适应 PictureBox;但是仍然保持原始纵横比。
本文详细介绍了PictureBox控件的各种SizeMode属性,包括Normal、StretchImage、AutoSize、CenterImage和Zoom,解释了每种模式下图像如何在PictureBox中显示,以及它们对图像缩放和定位的影响。
2万+

被折叠的 条评论
为什么被折叠?



