C#中OpenFileDialog和PictrueBox的用法分析

2019-05-23 07:19:03刘景俊

//
// 摘要:
//     System.Windows.Forms.PictureBox 中的图像被拉伸或收缩,以适合 System.Windows.Forms.PictureBox
//     的大小。
StretchImage = 1,
//
// 摘要:
//     调整 System.Windows.Forms.PictureBox 大小,使其等于所包含的图像大小。
AutoSize = 2,
//
// 摘要:
//     如果 System.Windows.Forms.PictureBox 比图像大,则图像将居中显示。如果图像比 System.Windows.Forms.PictureBox
//     大,则图片将居于 System.Windows.Forms.PictureBox 中心,而外边缘将被剪裁掉。
CenterImage = 3,
//
// 摘要:
//     图像大小按其原有的大小比例被增加或减小。
Zoom = 4,

希望本文所述对大家的C#程序设计有所帮助。