how to display images when one image is selected in c#
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Cora DPosted Jun 25, 2014, 7:56 AM
For example, do you mean that you want to load different images in a list, and then display any image when clicking on it?
Do you mean you want to select the location of any image on your machine, and then display it?
In general, you should be able to do this using some of Visual Studio common assemblies (such as System.Drawing and System.Drawing.Drawing2D, etc.). You can find useful information in this page:
http://www.codeproject.com/Articles/3703/How-to-Load-Display-images-with-C
However, the main problem that you will face when using this approach is that .NET framework natively supports a small set of image format (JPG, JPEG, GIF, PNG, TIF...). If you want to load some other formats (such as JPEG lossless, PDF, Dicom, etc.), you might need a specialized SDK (such as leadtools) that supports a huge set of image formats. You can find more information in the following pages:
http://www.leadtools.com/sdk/formats/default.htm
http://www.leadtools.com/help/leadtools/v18/dh/to/leadtools.topics~leadtools.topics.loaddisplay.html