How to C#: Imaging
Using Imaging SDK for C#.NET
Winforms Controls
Image Viewer
Image Load
Image Access and Modify
Image Viewer
  |  
Home ›› XImage.Raster ›› C# Raster: Create a Winforms Control

How to C#: Create a WinForms Control


To View Images in WinForm Application



Related .net document control helps:
document viewer asp.net c#: ASP.NET Document Viewer using C#: Open, View, Annotate, Redact, Convert document files in ASP.NET using C#, HTML5, JQuer...
asp.net sharepoint document viewer free: ASP.NET SharePoint Document Viewer: view, annotate, redact documents in SharePoint
asp.net pdf document viewer c#: ASP.NET PDF Document Viewer in C#: open, display, view, annotate, redact Adobe PDF files online in ASP.NET MVC & WebForm...
asp.net display tiff images: ASP.NET Tiff Viewer: view, annotate multipage Tiff images in ASP.NET MVC, WebForms using C# Control
asp.net document viewer free: EdgeDoc:ASP.NET Document Viewer C# Control: Open, view, annotate, redact, convert documents online in C#, VB.NET, AS...
asp.net pdf editor component: EdgePDF: ASP.NET PDF Editor Web Control: Online view, annotate, redact, edit, process, convert PDF documents
asp.net mvc pdf editor control: ASP.NET MVC PDF Viewer & Editor: view, annotate, redact, edit PDF document in C# ASP.NET MVC


Overview



With XImage.Raster SDK library, you can create an image viewer and view image on WinForm application conveniently. vb.net pdf reader control, convert pdf to tiff using pdfsharp c#, c# itextsharp read pdf image, vb net barcode recognition from pdf, vb.net read pdf file itextsharp, asp.net pdf writer.




View Image Settings



When you scan an image, you can view the image by different properties. What you can set are supported as follows. merge two pdf byte arrays c#, vb.net get pdf page count, docx to pdf vb.net, convert html to pdf itextsharp vb.net, c# extract image from pdf file, vb.net itextsharp pdfreader, vb.net adobe pdf sdk.


Image Showing asp.net edit pdf, asp.net pdf preview, asp.net pdf viewer disable save, mvc pdf viewer free, asp net add text to pdf, excel viewer asp.net c#, asp.net open word document on client.


  Horizontal Alignment


        The valid value is left, right and center.


  Vertical Alignment


        The valid value is left, right and center.


  Size Mode


        The valid value is BestFit, FitWidth, FitHeight, FullSize, OriginalSize, ZoomSize.


Zoom Value


        The range of the value is 0.01F ~ 100F.


Back Color


       You can set the color with any value that is supported by system color.




Create a C# WinForm Application



By following steps below, you can create an image viewer WinForm Application.


Open or create a new WinForms application, add necessary dll library to the project's 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 "ImageView" and "ThumbnailView" is checked.


Now the RasterEdge image view control appears in the ToolBox. Just drag and drop the "ImageView" and "ThumbnailView" items 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);
 }