How to display images when one image is selected in c#
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend3days leftRegister
Cora D2 reputationPosted Jun 25, 2014, 3:56 AM EDT
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