C#图片适应PictureBox大小显示
摘要:
private Bitmap ResizeImage(Bitmap bmp,PictureBox picBox) { float xRate =(float) bmp.Width / picBox.Size.Width; float yRate = (float)bmp.Height / picBox.Size.Height; if (xRate <= 1 && yRate <= 1) { return bmp; } ... 阅读全文
posted @ 2012-04-19 13:33 Hexy 阅读(15854) 评论(2) 推荐(0) 编辑