Hi,
If you are working on C# Winform application, then what you are looking for is known
PictureBox control[
^]
Picture box needs an instane of Image which can be created using following code:
var MyImage = new Bitmap(fileToDisplay);
pictureBox1.Image = (Image) MyImage ;
In WPF you can use
Image control[
^]
You can use Image control as below:
Option 1:
<image width="200">
Source="C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water Lilies.jpg"/></image>
Option 2
<image width="200">
<image.source>
<bitmapimage decodepixelwidth="200">
UriSource="C:\Documents and Settings\All Users\Documents\My Pictures\Sample Pictures\Water Lilies.jpg" />
</bitmapimage></image.source>
</image>
Thanks
Ankush Bansal