Function of SizeMode property

Describe the function of a SizeMode property of a PictureBox control?

E

Expert

Verified

SizeMode property determines how picture will be displayed in a PictureBox control. There are five enumerations which are used to set a value of  SizeMode property such as:

1. Zoom – It helps in enlarging or shrinking image so that it will fit in the PictureBox control, through maintaining an aspect ratio of a image

2. StretchImage – It displays image according to the PictureBox size

3. Normal – It represents Standard picture box behaviour like the upper-left corner of an image is placed at upper-left in a picture box

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

5. CenterImage – It displays an image in the center if it is smaller than a PictureBox control; otherwise, centre part of an image is placed in a PictureBox control and the edges which are outside are clipped.

   Related Questions in DOT NET Programming

©TutorsGlobe All rights reserved 2022-2023.