Document Imaging OCX VB.NET Sample

 

           

Overview

The Document Imaging Sample is a very broad sample designed to show numerous image manipulation options using numerous DLLs. Image Filters are shown here as well as a large number of miscellaneous tasks, such as line and punch hole remover tools.

 

File Menu

The File menu allows the use of common items such as Open, Close and Save which use the appropriate DLL for the appropriate image type. For all saving and loading of TIFF, CALS or MMR files, BITIFF is used. JPEG files can be manipulated using BIJPEG. Dimensions can be found as well as loading, saving, encoding, opening and closing. Similar functionality using BIPCX DLL is used to change PCX as well as DCX files. PNG files use BIPNG and TGA files use BITGA. This menu also allows Print and Print Options which use BIADVPRN.DLL. To acquire an image in this menu or select the TWAIN Source the BITWAIN DLL is used. This DLL allows the setting of options like scan area, mode, resolution, brightness, contrast and so on.

 

Edit Menu

The Edit menu utilizes Undo Annotation, Undo Image and the level of Undo events.

 

View Menu

The View menu can Scale the viewable image to the window, Zoom to a specified ratio, rotate the project workspace, invert the image, flip the workspace and set the viewable tool bars. Here, the BIDISP DLL is used for all zooming functionality. Both zooming to a ratio and a selected area can be accomplished using the BIDISP. In order to rotate, flip or invert the workspace, the BIDIB DLL can be used.

 

Image Menu

The Image menu firstly offers Dithering with Error Diffusion and Ordered Dithering. The Error Diffusion allows dithering using eight separate methods while the Ordered option allows Clustered or Dispersed dithering. Dithering methods can be applied using the BIImage DLL. The Image menu can be used to halftone or scale images which is a BIDIB function. Also, there is an example of conversion of color depth using the BIDIB DLL. Info of the current image can be viewed using BITIFF for only a TIFF or CALS file type. Also, the Dimensions of the image can be found by including BIDIB and is available for TIFF, FAX, BMP, JPEG, PCX, TGA, CLP, WMF, EMF, CALS, PNG, DCX, GIF and PDF file formats. However, this sample does not support all of those file types. This menu also offers image Brightness, Saturation, Contrast, Intensity and other Color options, which also use BIImage. The Arithmetic option allows DIB manipulation, using the BIDB DLL, while the Create Histogram option builds graphs of R, G, B and Intensity. The Histogram selection can apply the Compliment, Equalization, and other modifications to the image using the BIFilter DLL.

 

Filters Menu

The Filters menu carries multiple modifying filters which can be applied to the image. The filters fall into one of six categories, Adaptive, Morphological, Non-Linear, Spatial, Spatial Frequency and Artistic. The DLL used here is BIFilter.

 

Tools Menu

The Tools menu has a large number of BIDocImg DLL features such as, punch hole, black border and line removal. Cut, crop, skew and deskew also use BIDocImg and are included in this sample. BITIFF is also used here to show how to move forward or backward in a TIFF file. 

 

Annotation Menu

The Annotation menu has extensive control over the workspace. It can control which tool is selected, its color, rotation, alignment and font. This menu also has the ability to save and load annotations. All of the options on the annotation menu use the BIANNO DLL.

 

Window Menu

            The Window menu controls the placement and sizing of multiple windows located in the Annotation Sample Application. It allows Cascading and Tiling of windows.

 

Help Menu

The Help menu supplies contact and Copyright information.

 

Location:

<Installation Folder>\Black Ice Software Inc\Document Imaging SDK\Sample Source Codes\VB.NET\Document Imaging OCX VB.NET Sample

 

Solution files:

Compilers:

Included from SDK version:

Document Imaging OCX VB.NET Sample_VS2015.sln

Visual Studio 2015

12.57

Document Imaging OCX VB.NET Sample_VS2017.sln

Visual Studio 2017

12.95

Document Imaging OCX VB.NET Sample_VS2019.sln

Visual Studio 2019

12.95

Document Imaging OCX VB.NET Sample_VS2022.sln

Visual Studio 2022 or later

12.95