xtd 0.2.0
Loading...
Searching...
No Matches

◆ size_mode() [2/2]

picture_box & xtd::forms::picture_box::size_mode ( picture_box_size_mode  size_mode)

Indicates how the image is displayed.

Parameters
size_modeOne of the picture_box_size_mode values. The default is normal.
Returns
Current picture_box.
Remarks
By default, in normal mode, the Image is positioned in the upper-left corner of the picture_box, and any part of the image that is too big for the picture_box is clipped. Using the stretch_image value causes the image to stretch or shrink to fit the picture_box. Using the zoom value causes the image to be stretched or shrunk to fit the picture_box; however, the aspect ratio in the original is maintained.