Get the App
SLTechnology News&Howtos  ›  Development  › 

How to realize Picture Adaptive Table by vbs

Shulou Source: shulou.com Published: 2022-06-03 08:39:21 11月15日 Update

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!

Tags: Picture table content time more article good practical function address size data database article method look knowledge trouble reference help Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Shulou Information Shulou Tech Info Huawei NVidia