Annotation C++ Sample

Overview

The annotation sample focuses on getting an image, editing it before faxing and manipulating the image. This sample covers TWAIN sources, annotations, zooming and rotating the workspace, and getting the image information.

 

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 all of the Clipboard commands, such as Cut, Copy and Paste, as well as Undo and the level of Undo events. These undo levels can be set using the BIANNO DLL.

 

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. This menu also can set the Magnifying Glass or Panning mode.

 

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.

 

Tools Menu

The Tools menu displays the Dimensions of the current project as well as detailed information of the file. The dimensions and info of an image call the corresponding DLL of the image type. For instance, if the image is a TIFF file, BITIFF is used to get image properties. Others used are, BIPNG, BIJPEG, BIPCX, BITGA and BIPDF. This menu also allows forward or backward movement between a multiple page document using the BITIFF 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 as well as the Arrangement of Icons.

 

Help Menu

The Help menu supplies contact and version information as well as Copyright information. 

 

Location:

<Installation Folder>\Black Ice Software Inc\Document Imaging SDK\Sample Source Codes\C++\Annotation C++ Sample

 

Solution files:

Compilers:

Included from SDK version:

Annotation C++ Sample_VS2015.sln

Visual Studio 2015

12.57

Annotation C++ Sample_VS2017.sln

Visual Studio 2017

12.95

Annotation C++ Sample_VS2019.sln

Visual Studio 2019

12.95

Annotation C++ Sample_VS2022.sln

Visual Studio 2022 or later

12.95