How to realize Picture Adaptive Table by vbs
This article is to share with you about how vbs implements image adaptive tables. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
1. When uploading, you can store the picture in the database and call it up to judge when you use it, but that method is more troublesome than the one below.
two。 Use loadpicture, a function in VBSCRIPT
Picurl' picture address
'take out the height and width
Select and get the picture size before using the picture
Set myImg = loadpicture (server.mappath (picurl))
IWidth = round (myImg.width / 26.4583)
IHeight = round (myImg.height / 26.4583)
Just use iwidth and iheight to judge when calling.
Thank you for reading! This is the end of the article on "how to realize the picture adaptive table in vbs". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it out for more people to see!