image properties
-
hi i am developing an app in which i have to place different size of images on different portions of a page based on there width and height for that i have to recognise there size b4 displaying and i dont have images too they are dynamically changed on there urls i have only there urls i used the following method b4 but it dont work for urls System.Drawing.Image fullSizeImg = System.Drawing.Image.FromFile("c:\abc.jpg"); then imgWidth = fullSizeImg.width; but it dont work for System.Drawing.Image fullSizeImg = System.Drawing.Image.FromFile("http://images.apple.com/itunesaffiliates/US/2005/12/6/NBC/180x150\_BattlestarGalactica.jpg"); can any one guide me in this regard or tell me if there is any alternative for this looking forward thanks
shezi
-
hi i am developing an app in which i have to place different size of images on different portions of a page based on there width and height for that i have to recognise there size b4 displaying and i dont have images too they are dynamically changed on there urls i have only there urls i used the following method b4 but it dont work for urls System.Drawing.Image fullSizeImg = System.Drawing.Image.FromFile("c:\abc.jpg"); then imgWidth = fullSizeImg.width; but it dont work for System.Drawing.Image fullSizeImg = System.Drawing.Image.FromFile("http://images.apple.com/itunesaffiliates/US/2005/12/6/NBC/180x150\_BattlestarGalactica.jpg"); can any one guide me in this regard or tell me if there is any alternative for this looking forward thanks
shezi
-
hi i am developing an app in which i have to place different size of images on different portions of a page based on there width and height for that i have to recognise there size b4 displaying and i dont have images too they are dynamically changed on there urls i have only there urls i used the following method b4 but it dont work for urls System.Drawing.Image fullSizeImg = System.Drawing.Image.FromFile("c:\abc.jpg"); then imgWidth = fullSizeImg.width; but it dont work for System.Drawing.Image fullSizeImg = System.Drawing.Image.FromFile("http://images.apple.com/itunesaffiliates/US/2005/12/6/NBC/180x150\_BattlestarGalactica.jpg"); can any one guide me in this regard or tell me if there is any alternative for this looking forward thanks
shezi
I have done it for showin one image in a new window and it works you can check it on http://www.1st4beds.co.uk to see large picture of the products. You have to use image server control and make its height and width 0 and then pass image height and width as you are doing. It should work
Naveed Kamboh