Try this link

http://www.codeproject.com/KB/GDI-plus/quickview.aspx



On Fri, Sep 26, 2008 at 5:24 AM, ravi <[EMAIL PROTECTED]> wrote:

>
> Hi Usman,
>
> Thanks for the reply. What I want is we have some thumbnails in
> ImageStor formats.
> They cannot be viewed in Windows Picture and Fax Viewer. We have to
> write some code in C#.net to view the images.
> Just provide me the code to view that. There will be picture box
> control, folder browse dialog and a button.
> Browse for the image and click on show button. The image will be
> displayed in picturebox in C#.net.
> Getting the full path of the file is no problem at all.
> Problem is how to view that image.
> I will forward the same email with one thumbnail in imagestor format
> on your id. Please provide me the code how to view it in picturebox
> using c#.net windows application.
>
> Thanks,
> Ravi Rangari
> Software Engineer
> Delaplex, Nagpur
> url: www.delaplex.com
>
>
>
>
>
>
> On Sep 25, 3:21 pm, Usman <[EMAIL PROTECTED]> wrote:
> > What I understand from your post is that u need to display multiple
> > images, but before displaying a whole image, you just want to diplay
> > its thumbnail.
> > What I Suggest is to use ListView Control to solve your problem. You
> > need to add ImageList Componet to your Form, then Assigning it to the
> > ListView's LargeImageList and SmallImageList properties. When loading
> > images from Database, add those images to the ImageList. Setting the
> > ListView's View Propety to LargeIcons. After loading and assigning
> > images to the ImageList, for each and every row of the datatable add
> > an item to the listview with corresponding ImageIndex/Imagekey.
> > When you are done with it, then write down in the double click event
> > of the ListView the following code
> > /**/
> >             {
> >
> >                 byte[] buffer = (byte[])row["Image"];//Take An Image
> > from DataRow
> >                 System.IO.FileStream fs=new System.IO.FileStream
> >
> ("Default.jpg",System.IO.FileMode.OpenOrCreate,System.IO.FileAccess.ReadWri­te);
>  >                 System.IO.BinaryWriter writer = new
> > System.IO.BinaryWriter(fs);
> >                 writer.Write(buffer,0,buffer.Length);
> >                 System.Diagnostics.Process.Start("Default.jpg");
> >
> >             }
> > /**/
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"DotNetDevelopment, VB.NET, C# .NET, ADO.NET, ASP.NET, XML, XML Web 
Services,.NET Remoting" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://cm.megasolutions.net/forums/default.aspx
-~----------~----~----~----~------~----~------~--~---

Reply via email to