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

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -