Home > Software engineering >  Vb.net for image size and scaling, etc
Vb.net for image size and scaling, etc

Time:12-17

Scenario, the database to save the pictures of binary data, I am a direct call:
Me. ImgPicture. ImageUrl="data: image; Base64, "& amp; The Convert. ToBase64String (result)
Also set the size of the picture box (little) because of the size of the big picture:
But the pictures came out still has been widened or deformation
Is there any way to get the size of the picture?
I wanted to make a judgment in time after get the size, according to the size of scaling to I set inside the box,,
Don't know is not feasible,,
Before he tried to set stretch, also did not use the

Thank you also please instruct me,