Code Samples

ImageGear for .NET comes with sample application programs written in C#, VB.NET and ASP.NET. The ImageGear.NET\Samples directory contains ASP.NET, CSHARP and VBNET subdirectories. This directory also includes ASP.NET WebForms Sample that shows how to create an ImageGear-based application that allows you to view and process images through the internet. Compiled versions of these same samples can be found on the start menu under Start > Programs > Accusoft > ImageGear for .NET > Samples. ImageGear for .NET has the following samples:

Name

Description

ImageGear C# ASP.NET Streaming Sample

This sample shows how to pre-fetch images from the image repository and allow the user to scroll forward or backward through these images.

ImageGear C# ASP.NET RadiologyOfficeSample

This sample demonstrates the use of ImageGear web components PageView and ThumbnailView to display and annotate radiology procedure images. This sample uses LINQ to SQL to drill down from patient to procedures lists displayed in ASP.NET GridView components. Selection of a procedure from the list displays images belonging to that procedure in a ThumbnailView list. Thumbnail selection displays image in the PageView web control. This sample also demonstrates using a custom Image Data Provider in a separate assembly. The database included with the sample contains patient and procedure information. The images are stored on the server as files. The database stores image file names. Microsoft SQL Server 2005 Express installation is required for this sample to work.

ImageGear C# ASP.NET Tutorial

This sample is the end product of following the tutorial in this user's guide. It demonstrates using the ImageGear.Web.DataProviders.FileImageDataProvider class to read images that are stored in files on the server, and display images, thumbnails, and annotations.

ImageGear C# ASP.NET WebSqlSample

This sample demonstrates the use of the built-in SqlImageDataProvider. The images are stored as "Blobs" in the database included with the sample. The web page displays images in the PageView web control. There is a simple toolbar at the top that demonstrates use of some of the ImageGear Client API to manipulate the displayed image. Microsoft SQL Server 2005 Express installation is required for this sample to work.

ImageGear C#.NET ART

This sample shows how to manipulate with ART annotations, import and export them from/to XML.

ImageGear C#.NET Barcode

This sample demonstrates different methods for creating and recognizing barcodes.

ImageGear C#.NET Core

This sample demonstrates the core product functionality, working with documents and individual pages.

ImageGear C#.NET Display

This sample shows display capabilities, which includes anti-aliasing, transparency and extra channels.

ImageGear C#.NET FreqIP

This sample is for demonstrating the features related to image processing in frequency domain, such as Fourier Transform, Low Pass Filter, etc.

ImageGear C#.NET Medical

This sample is provided for working with DICOM images and medical functionality.

ImageGear C#.NET Office

This sample shows how to load, display, print and repaginate Word files.

ImageGear C#.NET PDF

This sample is provided for working with PDF documents and demonstrates PDF specific capabilities of the product.

ImageGear C#.NET Processing

This sample shows the variation of the image processing supported by the product, which includes different types of color and image transformation as well as the color space and color profiles conversion.

ImageGear C#.NET Recognition

This sample demonstrates different methods for text recognition.

ImageGear C#.NET Timing

This sample provides the benchmarking methods for input, output, display and image processing functionality.

ImageGear C#.NET TWAIN

This sample demonstrates product’s scanning capabilities using the installed TWAIN drivers.

ImageGear C#.NET Vector

This sample shows how to deal with CAD and other vector files providing a comprehensive GUI for vector and 3D processing.

ImageGear C#.NET WPF

This sample enables support for HD Photo images and demonstrates the XAML based thumbnail and magnifier controls.

ImageGear C#.NET WPF ART

This sample demonstrates WPF PageView control and annotations.

ImageGear C#.NET WPF Office

This sample shows how to load, display, print and repaginate Word files in WPF applications.

ImageGear C#.NET XPS

This sample ImageGear C#.NET XPS sample demonstrates working with XML Paper Specification files.

ImageGear VB.NET ART

This sample shows how to manipulate with ART annotations, import and export them from/to XML.

ImageGear VB.NET Barcode

This sample demonstrates different methods for creating and recognizing barcodes.

ImageGear VB.NET Core

This sample demonstrates the core product functionality, working with documents and individual pages.

ImageGear VB.NET Display

This sample shows display capabilities, which includes anti-aliasing, transparency and extra channels.

ImageGear VB.NET Medical

This sample is provided for working with DICOM images and medical functionality.

ImageGear VB.NET Office

This sample shows how to load, display, print and repaginate Word files.

ImageGear VB.NET PDF

This sample is provided for working with PDF documents and demonstrates PDF specific capabilities of the product.

ImageGear VB.NET Processing

This sample shows the variation of the image processing supported by the product, which includes different types of color and image transformation as well as the color space and color profiles conversion.

ImageGear VB.NET Tutorial

This sample is just a simple template application with basic product functionality for VB.NET developers.

ImageGear VB.NET TWAIN

This sample demonstrates product’s scanning capabilities using the installed TWAIN drivers.

ImageGear VB.NET Vector

This sample shows how to deal with CAD and other vector files providing a comprehensive GUI for vector and 3D processing.

The documentation also contains C#, VB.NET, WebForms, and WPF tutorials outlining how to build a simple application from the ground up. The WPF tutorial requires .NET Framework 2.0/3.0. These tutorials can also be found on our website in the tutorial section of Support, click here to access the tutorials: www.accusoft.com/resourcecenter/tutorials

NOTE: The ImageGear for .NET documentation provides information for all platforms and .NET framework versions. However, not all features are available for all ImageGear for .NET versions. Please refer to the table on the Welcome page of these Release Notes for information about which ImageGear for .NET Namespaces are available for which versions (Windows 32-bit platforms and Windows 64-bit platforms).

Running Visual Studio as Administrator

Microsoft recommends running Visual Studio with administrator privileges under Windows Vista, Windows 7, or Windows 8. To properly use the ImageGear Samples, please run Visual Studio with elevated permissions. To run Visual Studio with elevated administrator permissions, first confirm you are a member of the "Administrators" group on the local machine. Then right-click the Visual Studio shortcut and select the "Run as administrator" option from the context menu. Click ‘Continue’ to the UAC prompt.

To ensure you have the latest updates, after running Visual Studio, choose ‘Check for Updates’ from the Help Menu.