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,