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

blackberry 10 - how to add multiple markers on the google map just by url? -

php - guestbook returning database data to flash -

delphi - Dynamic file type icon -