SizeMode property of the PictureBox control

Specify the function of the “SizeMode” property of the PictureBox control?

E

Expert

Verified

The SizeMode property evaluate how picture will be showed in the PictureBox control. Following five enumerations are used in order to set the value of the SizeMode property:

a) Normal – It represents Standard picture box behaviour (upper-left corner of image is placed at the upper-left in the picture box)

b) StretchImage – It shows image in accordance with  the PictureBox size

c) AutoSize – It increases or decreases picture size automatically according to the actual size of the PictureBox control.

d) CenterImage - It shows image in the center if it is smaller as compared to the PictureBox control; whereas, center part of the image is placed in the PictureBox control and its outside edges are clipped

e) Zoom – It helps in shrinking or stretching image so that it fits the PictureBox control, in order to maintain the aspect ratio of the image.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.