ImageGear .NET - Updated
Samples
User Guide > Getting Started > Samples

ImageGear .NET has the following samples (organized by category):

ASP.NET

Before using the ASP.NET samples, you must create a registry entry to indicate the location of the Office components. In the key "HKEY_LOCAL_MACHINE\SOFTWARE\Accusoft\ImageGear\dotNet23", add a String Value Named "OfficeCoreDir" with a value that contains the absolute path to the directory containing the "lim", "node", and "libreoffice" directories.

Samples Location: $INSTALLDIR\Samples\Source Code\ASP.NET\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ImageStreamSample

WebForms

How to pre-fetch images from the image repository and allow the user to scroll forward or backward through these images.

C#, ASP.NET

VS2010

IsisScanningUsingASP.NET

WebForms

Scanning capabilities using ImageGear web components.

C#, ASP.NET

VS2010

jQuerySamples > ImGearPluginSample

WebForms

The use of ImageGear web components using jQuery. A set of instructions is provided in the Default file in order to help configure this sample for running it using  HTTP or HTTPS.

jQuery

VS2010

Tutorial_ASP.NET (Legacy) WebForms How to load a document, view, rotate, and zoom it. C#,
ASP.NET
VS2010

ART Annotations

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\Legacy\ART\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

AddWatermarkToImage WinForms How to apply watermark to raster page. C#, VB.NET VS2010
VS2015
VS2017

AddWatermarkToPDFPage

WinForms

Watermarking a PDF document by adding:

  • A translucent PDF FreeText annotation that says "DRAFT" across the top of the page.
  • A PNG image placed in the center of the page.

Images that support alpha channel transparency may be used.

C#, VB.NET

VS2010
VS2015
VS2017

AnnotateImageAndPDF_WPF WPF How to annotate images and PDF with ART marks. C#, VB.NET VS2010
VS2015
VS2017

ART_MFA (Legacy)

WinForms

How to work with and manipulate ART annotations, and import and export them from/to XML.

C#, VB.NET

VS2010

WPF_ART (Legacy)

WPF

WPF PageView control and annotations.

C#

VS2010

Barcode

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\Legacy\Barcode\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

Barcode (Legacy)

WinForms

Different methods for creating and recognizing barcodes.

C#, VB.NET

VS2010

Conversion

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\Conversion\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ConvertImage

WinForms

How to convert an image to a target format by setting compression, color space, bit-depth, and other saving options.

C#, VB.NET

VS2010
VS2015
VS2017

Image Processing and Cleanup

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\ImageProcessing\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ImageProcessingAndCleanup

WinForms

How to display and then manipulate an image in different ways.

C#, VB.NET

VS2010
VS2015
VS2017

Image Properties and Metadata

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\PropertiesAndMetadata\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ViewImagePropertiesAndMetadata

WinForms

How to view an image's metadata and properties such as dimensions, bit depth, color space, and resolution.

C#, VB.NET

VS2010
VS2015
VS2017

Medical

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\Legacy\Medical\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

MedicalAndDICOM_WPF WPF A sample viewer for medical images and is intended for demonstration purposes ONLY. C#, VB.NET VS2010
VS2015
VS2017

Medical (Legacy)

WinForms

How to work with DICOM images and medical functionality.

C#, VB.NET

VS2010

WPF_Medical (Legacy)

WPF

How to work with DICOM images and medical functionality using WPF Controls.

C#

VS2010

Microsoft Office

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ConvertOfficeToPDF

WinForms

How to load and convert a Microsoft Office file to PDF.

C#, VB.NET

VS2010
VS2015
VS2017

Office (Legacy)

WinForms

How to load, display, print, and repaginate Word files.

C#, VB.NET

VS2010

WPF_Office (Legacy)

WPF

How to load, display, print, and repaginate Word files using WPF controls.

C#

VS2010

OCR

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\OCR\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ImageOCRtoFile WinForms

How to perform OCR on an image file and output the resulting text to a PDF or TXT file.

C#, VB.NET VS2010
VS2015
VS2017
OCRUsingZones WinForms

How to perform OCR using zones and output the recognized text to a textbox.

C#, VB.NET VS2010
VS2015
VS2017
OCRLanguageSelection WinForms

How to enable / disable languages before performing OCR and sending the resulting data to a text box.

C#, VB.NET VS2010
VS2015
VS2017

PDF and PostScript

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\PDF\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

ConvertDOCXtoPDF

WinForms

How to read a DOCX document page and save it as a PDF file.  

C#, VB.NET

VS2010
VS2015
VS2017

ConvertPDFtoSVG

WinForms

How to convert a PDF document to a SVG using Accusoft's API.  

C#, VB.NET

VS2010
VS2015
VS2017

EditFormFieldAppearances

WinForms

How to modify the visual appearance of fields and their annotations, such as, border color, style, and text color.

C#, VB.NET

VS2010
VS2015
VS2017

ExtractTextFromPDF

WinForms

How to extract the text content from a PDF document and save it as a text file.

C#, VB.NET

VS2010
VS2015
VS2017

ManipulatePDFAcroForms

WinForms

How to read, write, create, and remove AcroForm fields on a PDF document.

C#, VB.NET

VS2010
VS2015
VS2017

PDFMerge

WinForms

How to merge two PDF documents into a one PDF document.

C#, VB.NET

VS2010
VS2015
VS2017

PDF Sample (Legacy)

WinForms

The capabilities of ImageGear for viewing, editing, annotating, and saving PDF documents.

C#, VB.NET

VS2010

PDFSecurity

WinForms

How to manage PDF security three ways:

  • Open a password-protected PDF file
  • Write an encrypted password-protected PDF file
  • Remove the encryption and password from a PDF file

C#, VB.NET

VS2010
VS2015
VS2017

SaveCompressedPDF

Console

How to save a compressed PDF document.

C#, VB.NET

VS2010
VS2015
VS2017

SavePDFtoImage

WinForms

How to read a PDF document page by page, index, rasterize a page, and store the raster page as JPEG file.   

C#, VB.NET

VS2010
VS2015
VS2017

SplitPDFUsingMultipleThreads

Console

How to split PDFs using multiple threads.

C#, VB.NET

VS2010
VS2015
VS2017

VerifyAndConvertToPDFA

WinForms

How to convert a PDF document into a PDFA standard and how to verify compliance with ISO-standard PDFA-1a.

C#, VB.NET

VS2010
VS2015
VS2017

WPF_SavePDFtoMultiPageTIF

WPF

Converting a PDF into a multi-page TIF using WPF controls.

C#, VB.NET

VS2010
VS2015
VS2017

Scanning

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\Legacy\TWAIN\...

The TWAIN assembly is only available in ImageGear .NET 32-bit.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

Scanning (only x86) WinForms How to scan a document with or without the TWAIN scanner's UI, view the document, then save as a PDF, TIFF, or JPG.

C#, VB.NET

VS2010
VS2015
VS2017

TWAIN (only x86)(Legacy)

WinForms

Scanning capabilities using the installed TWAIN drivers.

C#, VB.NET

VS2010

Vector

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\Legacy\Vector\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

Vector(Legacy)

WinForms

How to deal with CAD and other vector files, providing a comprehensive GUI for vector and 3D processing.

C#, VB.NET

VS2010

Viewing

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\[VS2010|VS2015|VS2017]\Viewing\...

For convenience, we added identical sample projects created with different versions of Visual Studio.

Name

GUI

This Sample Demonstrates...

Languages

IDEs

DisplayUsingWinForms

WinForms

How to display, navigate, zoom, rotate, and align documents.

C#, VB.NET

VS2010
VS2015
VS2017

Miscellaneous

Samples Location: $INSTALLDIR\Samples\Source Code\[CSharp|VBNET]\Legacy\...

Name

GUI

This Sample Demonstrates...

Languages

IDEs

Core (Legacy)

WinForms

The core product functionality, working with documents and individual pages.

C#, VB.NET

VS2010

Display (Legacy)

WinForms

Display capabilities, which includes anti-aliasing, transparency, and extra channels.

C#, VB.NET

VS2010

FreqIP (only x86) (Legacy)

WinForms

The use of ImageGear components for frequency domain image processing (FFT, DCT).

C#

VS2010

Processing (Legacy)

WinForms

Image processing operations (basic, color, filtering, encryption, visual effects, and ImageClean).

C#, VB.NET

VS2010

Recognition (Legacy)

WinForms

ImageGear's character recognition capabilities.

C#, VB.NET

VS2010

Timing (Legacy)

WinForms

The benchmarking methods for input, output, display, and image processing functionality.

C#

VS2010

WPF_Thumbnail (Legacy)

WPF

How to enable support for HD Photo images and the XAML based thumbnail and magnifier controls for WPF.

C#

VS2010

XPS (Legacy)

WinForms

Working with XML Paper Specification files.

C#

VS2010