VB中图片自动适应picturebox控件大小

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

VBÖÐͼƬ×Ô¶¯ÊÊÓ¦picturebox¿Ø¼þ´óСPrivateSubPicture1_Paint()Picture1.AutoRedraw=TruePicture1.PaintPicturePicture1.Picture,0,0,Picture1.ScaleWidth,Picture1.ScaleHeightEndSubÉèÖÃ2¸öPicturebox¿Ø¼þ£ºPic1,Pic2£¬ÆäÖÐpic2µÄvisibleÉèÖÃΪfalse£¬Pic2µÄAutoSizeÉèÖÃΪTrue£¬°ÑÒªÏÔʾµÄͼƬ¼Óµ½PIC2ÖлòPIC2.Picture=LoadPicture(d:/b.jpg)ÔÙÔÚ³ÌÐòÖмÓÈ룺PrivateSubPic1_Resize()Pic1.PaintPicturePic2.Image,0,0,Pic1.Width,Pic1.Height,0,0,Pic2.Width,Pic2.HeightEndSub

1 / 1
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功