c# - Web app, load image into memory to get width -


i have web application displays large thumbnails. layout built on server. what's best way, server side, load images memory want adjust row layout depending on cumulative width of images? need know width, can vary image image?

i'm thinking, create control, load image, width, clear memory?

ideas?

you should able load file. no need create control. see this bitmap constructor.

for example:

int width; using (bitmap bmp = new bitmap(filename)) {     width = bmp.width; } 

Comments

Popular posts from this blog

php - Dynamic url re-writing using htaccess -

java - Multi-Label Document Classification -

python - How to create a legend for 3D bar in matplotlib? -