getting the size of an image from DB
-
Hi guys howz!! I 'm trying to retrieve an image from the DB,how can I get the size of that image and display it on a picturebox,or what else can I use to display an image,'cause the picturebox doestn't have a scroll so as to be able to scroll & see the whole image?? pls help with a c# code. thanks in advance
-
Hi guys howz!! I 'm trying to retrieve an image from the DB,how can I get the size of that image and display it on a picturebox,or what else can I use to display an image,'cause the picturebox doestn't have a scroll so as to be able to scroll & see the whole image?? pls help with a c# code. thanks in advance
Hi, You can think of some picture viewers whose controls are available. Google might prove to be best for it. Hope it might help, With warm regards, KEDAR
-
Hi guys howz!! I 'm trying to retrieve an image from the DB,how can I get the size of that image and display it on a picturebox,or what else can I use to display an image,'cause the picturebox doestn't have a scroll so as to be able to scroll & see the whole image?? pls help with a c# code. thanks in advance
If you don't want to try to automatically scale the image, you could also try putting the image control inside a Panel with scrollbars and a fixed size. As for getting the size of the image, that should not be too hard - if you're retrieving it from a database, you'll have to load the image from a stream, so you should be able to check the length of the byte array fetched from the table.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’
-
If you don't want to try to automatically scale the image, you could also try putting the image control inside a Panel with scrollbars and a fixed size. As for getting the size of the image, that should not be too hard - if you're retrieving it from a database, you'll have to load the image from a stream, so you should be able to check the length of the byte array fetched from the table.
The most exciting phrase to hear in science, the one that heralds the most discoveries, is not 'Eureka!' ('I found it!') but 'That's funny...’