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
Post a Comment