How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Thumbnail
Image Load
Image Access and Modify
Image Thumbnail
  |  
Home ›› XImage.Raster ›› C# Raster: Set Image Thumbnail in C#.NET

How to C#: Set Image Thumbnail in C#.NET


To Preview Images in WinForm Application



Related .net document control helps:
asp.net mvc pdf editor: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC
asp.net annotate pdf: ASP.NET Annotate PDF Control: annotate, comment, markup PDF document online using ASP.NET C#
asp.net edit pdf image: ASP.NET PDF Image Edit Control: online insert, edit PDF images in C#
asp.net text file viewer: ASP.NET Text file viewer in MVC, WebForms: Open, view, annotate, convert txt files in C# ASP.NET
asp.net word viewer: ASP.NET Office Word Document Viewer: view Word doc files online using C# in ASP.NET MVC web applications
asp.net pdf viewer: ASP.NET PDF Viewer Control: view, navigate, zoom Adobe PDF document in C# ASP.NET
asp.net dicom document viewer: ASP.NET Dicom Document Viewer Control: view, annotate dicom imaging files online in ASP.NET


Overview



With XImage.Raster SDK library, you can create an image viewer and view image on WinForm application conveniently. vb.net embed pdf viewer, asp.net mvc pdf editor, c# print pdf acrobat reader, stringbuilder to pdf c#, pdf to word c#, qr code reader webcam c#.




Thumbnail View Settings



When you preview an image, you can view the image by different properties. What you can set are supported as follows. vb.net convert docx to pdf, how to merge multiple pdf files into one in c#, vb.net read pdf file text, c# convert pdf to jpg, c# convert csv to pdf, remove password from pdf using c#, vb.net remove image from pdf file.


Thumbnail item


  Item Width


  Item Height


  Horizontal Margin


  Vertical Margin


  Item Border Width


  Back Color


  Selected Color


  Margin Color


  Border Color


Descriptor


  Horizontal Alignment


  Vertical Alignment


  Descriptor Mode


  Font Color


  Back Color


  Selected Font Color


  Selected Back Color


Scrollbar Direction


       The valid value is Vertical and Horizontal.




Create a C# WinForm Application



By following steps below, you can create an image viewer WinForm Application. asp.net show image in gridview, free pdf preview in asp net c#, asp.net remove image from pdf page, mvc display pdf in partial view, how to write pdf file in asp.net c#, pdf viewer in asp.net web application, asp.net tiff image viewer.


Open or create a new WinForms application, add necessary dll library to the projects reference.


  RasterEdge.XImage.Raster.WinFormsControl.dll


Add a new Form Item to the project, and choose to design mode sign. Make the ToolBox view show.


Right click the ToolBox panel, and select Choose Items…”, in the .NET Framework Components tab of pop-up dialog, click Browse…”button to navigate the RasterEdge.XImage.Raster.WinFormsControl.dll, and make sure the ImageViewand ThumbnailViewis checked.


Now the RasterEdge image view control appears in the ToolBox. Just drag and drop the ImageViewand ThumbnailViewitems to your new Form control.


To make the ThumbnailView connect to the ImageView, add the following code to the Form Initialize method.


If you dont want to code yourself, you can also use our Image Viewer Demo. Please try the “RasterEdge.Demo.XImage.Raster.exe” in the download package.


Sample Code (winformcontrol demo code)




public Form1()
{
     InitializeComponent();
     WorkRegistry.Reset();
     this.thumbnailView1.ThumbImageIndexChanged += new RasterEdge.XImage.Raster.WinFormsControl.ThumbImageIndexChangedEventHandler(thumbnailView1_ThumbImageIndexChanged);
     this.thumbnailView1.OpenImage("sample.jpeg");
}
void  thumbnailView1_ThumbImageIndexChanged(object sender,  RasterEdge.XImage.Raster.WinFormsControl.ThumbImageIndexChangedEventArgs e)
 {
     ThumbnailItem item = e.ThumbItem;
     this.imageView1.ShowImage(item, false);
 }