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

◆ size_mode() [1/2]

picture_box_size_mode xtd::forms::picture_box::size_mode ( ) const
noexcept

Indicates how the image is displayed.

Returns
One of the picture_box_size_mode values. The default is normal.
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.