Home > Net >  The use of about picturebox control in c #
The use of about picturebox control in c #

Time:04-30

Feel pictureBox1. Without proper SizeMode, if let adapted to control the size of the images, the image aspect ratio with the picturebox control aspect ratio is different, will display image distortion? If the picturebox control to adapt to the size of the picture, may be large or small, is not convenient to the design of the form, whether the length of the fixed picturebox control, adjust the picturebox control according to the size of the picture width?

CodePudding user response:

You put the pictures on the backgroundimage, there is a backgroudnimagelayout, there is a title, zoom, stretch, center, there should be a way to meet your demand,

Whether the length of the fixed picturebox control, adjust the picturebox control according to the size of the picture width?
- if you want to fixed length, you first pick the above model, and then specify the length and width is adaptive,

CodePudding user response:

Can consider to use thumbnails, can achieve unified size loaded into the image controls,

CodePudding user response:

refer to the original poster shijies response:
feel pictureBox1. Without proper SizeMode, if let adapted to control the size of the images, the image aspect ratio with the picturebox control aspect ratio is different, will display image distortion? If the picturebox control to adapt to the size of the picture, may be large or small, is not convenient to the design of the form, whether the length of the fixed picturebox control, adjust the picturebox control according to the size of the picture width?


That's impossible,
What PictureBox object is placed in first container, how big is the space in the container, PictureBox is limited in scope,
Want how images, PictureBox is how old, that this logic is upside down, the size of container can with things, and change (is it), but its parent container?
  •  Tags:  
  • C#
  • Related