Vb6 picturebox resize image to fit
Blue cross tiverton dogs
If you select an image that is too big for the picture box, only part if it will be visible. The Picture Box control does not resize your image. You can, however, set another property of the picture box - the SizeMode property. Set this to AutoSize and your picture box will resize to the size of your image.
If the picture is too tall and thin compared to the PictureBox, make its height larger so the aspect ratios match. Once you know how tall and wide the picture must be, use PaintPicture to copy it with its desired size. ' Copy the image from pic_src into pic_dst so it fits and ' has the same aspect ratio as the original picture.