Demo Programs

The following demo programs are in separate EXAMPLES subdirectories of the path where you installed your product (such as C:\LEADTOOLS22\Examples\).

The executable files for these examples were compiled with all LEADTOOLS capabilities unlocked. However, for redeployment, some of these capabilities require product-specific unlock keys. Otherwise, if you recompile the examples, the resulting executable files will not have the locked capabilities.

To unlock and redeploy these capabilities, you must purchase an appropriate product license, such as that included with a LEADTOOLS Document/Medical toolkit.

The following demos are available:

Demo Name Source Code Path Pre-Compiled Executable Path Description
Custom Annotations \Examples\Annotation\CDLL\AnnCustom \Bin\CDLL\<Win32/x64>\AnnCustom_Original.exe

Demonstrates Custom Annotations (image markup) functionality.

Custom Annotation objects can be created to fit any imaginable need for image markup.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Annotations \Examples\Annotation\CDLL\Annotate \Bin\CDLL\<Win32/x64>\Annotate_Original.exe

Demonstrates Annotations (image markup) functionality.

Annotation objects: Rectangle, Ellipse, Hilite, Line, Redact, Text, Ruler, Protractor, CrossProduct, Image, TextPointer, Point, Curve, Point, Polygon, Polyline

Demo Name Source Code Path Pre-Compiled Executable Path Description
Multi Page Annotations \Examples\Annotation\CDLL\MultiAnn \Bin\CDLL\<Win32/x64>\MultiAnn_Original.exe

Demonstrates Annotations (image markup) functionality.

Annotation objects: Rectangle, Ellipse, Hilite, Line, Redact, Text, Ruler, Protractor, CrossProduct, Image, TextPointer, Point, Curve, Point, Polygon, Polyline

Demo Name Source Code Path Pre-Compiled Executable Path Description
Document Writer Batch \Examples\DocumentWriter\CDLL\DocWriterBatch \Bin\CDLL\<Win32/x64>\DocWriterBatch_Original.exe

Demonstrates LEADTOOLS document writing functionality.

The LEADTOOLS Document Writer can write Bitmaps or Documents to various Document formats, including: PDF, DOC, DOCX, TXT, RTF, HTML, XPS, and XLS

Demo Name Source Code Path Pre-Compiled Executable Path Description
LTD Merge \Examples\DocumentWriter\CDLL\LTDMergeDemo \Bin\CDLL\<Win32/x64>\LTDMergeDemo_Original.exe

Demonstrates LEADTOOLS document writer LTD merge capabilities

Shows how to merge multiple LTD files into one and then convert that merged LTD file into any of the supported document writer formats.

Demo Name Source Code Path Description
Compress Callback \Examples\FileFormats\CDLL\CompCB

Demonstrates Image Compression functionality.

Loads a 24-bit image, compresses it, and displays the compressed image.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Feed Info \Examples\FileFormats\CDLL\FeedInfo \Bin\CDLL\<Win32/x64>\FeedInfo_Original.exe

Demonstrates LEADTOOLS image info functionality

Gets the information for a given image file and displays it.

Demo Name Source Code Path Description
Feed Load \Examples\FileFormats\CDLL\FeedLoad

Demonstrates LEADTOOLS image feed load functionality

Progressively loads an image and paints the image as it loads.

Demo Name Source Code Path Description
File Converter \Examples\FileFormats\CDLL\FileConversion

Demonstrates LEADTOOLS image conversion capabilities

Shows how to load and convert between various image file formats.

Demo Name Source Code Path Pre-Compiled Executable Path Description
File Converter Utility \Examples\FileFormats\CDLL\FileConvertUtility \Bin\CDLL\<Win32/x64>\FileConvertUtility_Original.exe

Demonstrates LEADTOOLS file conversion support.

Shows how to create and run a command line utility capable of converting between image file formats.

Demo Name Source Code Path Description
Info \Examples\FileFormats\CDLL\Info

Demonstrates getting image file information with LEADTOOLS

Demo Name Source Code Path Pre-Compiled Executable Path Description
J2K \Examples\FileFormats\CDLL\J2K \Bin\CDLL\<Win32/x64>\J2K_Original.exe

Demonstrates JPEG 2000 image support.

  • Load / Progressive Load and display J2K Images
  • Zoom in / out
Demo Name Source Code Path Pre-Compiled Executable Path Description
J2K Large Image Save \Examples\FileFormats\CDLL\J2KLargeImageSave \Bin\CDLL\<Win32/x64>\J2kLargeImageSave_Original.exe

Demonstrates progressive load / save for large J2K images.

Performs progressive load / save for large J2K images to avoid keeping the entire image in memory during the compression process.

Demo Name Source Code Path Pre-Compiled Executable Path Description
JPX \Examples\FileFormats\CDLL\Jpx \Bin\CDLL\<Win32/x64>\Jpx_Original.exe

Demonstrates JPX (JPEG 2000 Part-2) features of LEADTOOLS.

  • Load and display JPX files
  • View multi-frame JPX files as animations
  • View and edit JPX boxes
  • View JPX file structure
Demo Name Source Code Path Description
Load Callback \Examples\FileFormats\CDLL\LoadCB

Demonstrates loading image files with a callback function.

Loads an image passed as a command line argument from file, sets a callback function, and displays the image as it is loaded.

Demo Name Source Code Path Description
Load Save \Examples\FileFormats\CDLL\LoadSave

Demonstrates loading and saving of images.

Menu driven example for loading and saving images.

Demo Name Source Code Path Description
Memory \Examples\FileFormats\CDLL\Memory

Demonstrates loading an image from memory to a bitmap.

Loads an image from file, loads the image from memory to a bitmap, and displays the image.

Demo Name Source Code Path Description
Memory Callback \Examples\FileFormats\CDLL\MemoryCB

Demonstrates loading an image from memory to a bitmap with a Callback function.

Loads an image from file, loads the image from memory to a bitmap, and displays the image.

Demo Name Source Code Path Pre-Compiled Executable Path Description
NITF \Examples\FileFormats\CDLL\Nitf \Bin\CDLL\<Win32/x64>\Nitf_Original.exe

Demonstrates National Image Transport Format (NITF) functionality.

Open or create .ntf files, view and edit metadata, and manipulate media with image processing.

Demo Name Source Code Path Description
Offset \Examples\FileFormats\CDLL\Offset

Demonstrates how to save an image with an offset

Shows how to load and save an image with an offset using the L_SaveFileOffset() function.

Demo Name Source Code Path Description
Redirect IO \Examples\FileFormats\CDLL\Redirect

Demonstrates how to use the power of the redirect I/O feature.

  • Loads an image file (name passed as command line parameter) into allocated memory.
  • Loads the image from memory to a bitmap with L_LoadBitmap
  • Displays the loaded image in a window
Demo Name Source Code Path Pre-Compiled Executable Path Description
Save Callback \Examples\FileFormats\CDLL\SaveCB \Bin\CDLL\<Win32/x64>\SaveCB_Original.exe

Demonstrates saving an image file with a callback function.

  • Loads the image from a file, whose name is sent through the command line, using L_LoadFile
  • Displays the image
  • Saves the image to the output directory using a callback and status window
Demo Name Source Code Path Description
Save Memory \Examples\FileFormats\CDLL\SaveMemory

This is a menu-driven example for loading and saving images.

  • Load an image from a file, selected using Windows' common dialog box for opening a file, to a bitmap
  • Display the image in a window
  • Get a filename, format, and bits per pixel to save to, using Windows' common dialog box
  • Save the image.
Demo Name Source Code Path Description
Simple Load \Examples\FileFormats\CDLL\SimpleLoad

Demonstrates simple loading and displaying of an image using LEADTOOLS.

Gets an image file name from command line, loads image to bitmap, creates a window, and displays the image.

Demo Name Source Code Path Description
Stamp Get \Examples\FileFormats\CDLL\StampGet

Demonstrates opening and displaying a stamp file with LEADTOOLS.

Loads a stamp from a file using Windows' common dialog box for opening a file, converts to bitmap, and displays the image in a window.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Stamp Put \Examples\FileFormats\CDLL\StampPut \Bin\CDLL\<Win32/x64>\StampPut_Original.exe

Demonstrates converting a full sized image to a stamp with LEADTOOLS.

Loads an image from file, compresses the image to stamp size, loads the stamp to a bitmap, and displays the result.

Demo Name Source Code Path Description
Thread \Examples\FileFormats\CDLL\Thread

Demonstrates multi-threading with LEADTOOLS

  • Creates a secondary thread to load all files in a directory
  • Paints images loaded on secondary thread in the main thread
Demo Name Source Code Path Description
Color \Examples\ImageProcessing\CDLL\Color

Demonstrates image optimization and dithering functionality.

Loads an image from file, dithers and reduces it to only 30 colors, and redisplays the image.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Color Conversion \Examples\ImageProcessing\CDLL\ColorConversion \Bin\CDLL\<Win32/x64>\ColorConversion_Original.exe

Demonstrates LEADTOOLS Colorspace Conversion SDK features.

Converts image data in a buffer from one color conversion model to another.

Formats supported include RGB, YUV, CMYK, HSV, HLS, YCC, ARGB, and many more.

Demo Name Source Code Path Description
Feature1 \Examples\ImageProcessing\CDLL\Feature1

Demonstrates a few capabilities of the LEADTOOLS Image Processing SDK

Performs a handful of image processing functions on an image: Optimize, Flip, Lighten, Resize, and Rotate

Demo Name Source Code Path Description
Feature2 \Examples\ImageProcessing\CDLL\Feature2

Demonstrates a few capabilities of the LEADTOOLS Image Processing SDK

Performs a handful of image processing functions on an image: Dither, Reverse, Grayscale, Resize

Demo Name Source Code Path Description
Feature3 \Examples\ImageProcessing\CDLL\Feature3

Demonstrates a few capabilities of the LEADTOOLS Image Processing SDK

Performs a handful of image processing functions on an image: Halftone, Restore, Fill, Region Processing

Demo Name Source Code Path Description
Get Row \Examples\ImageProcessing\CDLL\GetRow

This example will do the following:

  • Load an image from a file, through the command line
  • Display the image
  • Do a 90 degree rotation
  • Re-display the image
Demo Name Source Code Path Pre-Compiled Executable Path Description
GrayScale \Examples\ImageProcessing\CDLL\GrayScale \Bin\CDLL\<Win32/x64>\GrayScale_Original.exe

Demonstrates Medical Image processing functionalities.

Demonstrates adjusting the parameters of each function, image statistics, segmentation, region of interest, window level, etc.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Image Processing Features \Examples\ImageProcessing\CDLL\ImagePF \Bin\CDLL\<Win32/x64>\ImagePF_Original.exe

Demonstrates image processing features.

Add filters, change colors, turn to grayscale, plus medical image processing commands

Demo Name Source Code Path Pre-Compiled Executable Path Description
Interactive Histogram \Examples\ImageProcessing\CDLL\InteractiveHist \Bin\CDLL\<Win32/x64>\InteractiveHist_Original.exe

Demonstrates using powerful and comprehensive tools to adjust the image histogram.

  • Load and display images
  • Adjust image histogram
  • Alter, enhance, or segment histogram information
  • Provides histogram statistical information that can be helpful to analyze the image
Demo Name Source Code Path Description
Resize \Examples\ImageProcessing\CDLL\Resize

Demonstrates how to use the power of the redirect I/O feature in our DLL.

  • Loads an image file(name passed as command line parameter) using L_LoadFile.
  • Resize the image during loading using the L_Resize system.
  • Display both the original and resized image during loading
  • Place the resized image over the original in the bitmap
  • Display the "image within an image" bitmap
  • Usage: RESIZE
Demo Name Source Code Path Description
Region \Examples\ImageProcessing\CDLL\RgnDem

Demonstrates the use of our region tool.

Select a region and pull it out of an image. Copy the region or save to disk.

Demo Name Source Code Path Description
Underlay \Examples\ImageProcessing\CDLL\Underlay

Demonstrates the Underlay image processing function

Demo Name Source Code Path Pre-Compiled Executable Path Description
Warp \Examples\ImageProcessing\CDLL\Warp \Bin\CDLL\<Win32/x64>\Warp_Original.exe

Demonstrates how to warp images

Shows how to warp an image and paint in onto another image

Demo Name Source Code Path Description
DIB DDB \Examples\Main\CDLL\DIBDDB

Demonstrates the DIB "LEAD Bitmap" DDB cycle.

Loads a bitmap and converts between Device Independent Bitmap, LEAD Bitmap, and Device Dependent Bitmap.

Demo Name Source Code Path Description
Draw \Examples\Main\CDLL\Draw

Demonstrates LEADTOOLS ability to draw directly on an image

Shows how to draw various objects to an image. Objects that can be drawn include: points, lines, rectangles, and more.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Main \Examples\Main\CDLL\MainDemo \Bin\CDLL\<Win32/x64>\MainDemo_Original.exe

Demonstrates many of the basic and advanced core features of LEADTOOLS.

  • Load and save all formats supported by LEADTOOLS
  • Display (scroll/zoom) images with options, including Animation
  • Apply Image Processing
  • Capture images from the screen
  • Acquire images from TWAIN and WIA scanners
  • Print images
  • Copy/paste images to and from the clipboard
Demo Name Source Code Path Pre-Compiled Executable Path Description
Special Effects \Examples\SpecialEffects\CDLL\MfcFx \Bin\CDLL\<Win32/x64>\MfcFx_Original.exe

Demonstrates Image Processing Special Effects features.

Add text, shapes, and transitions to images.

Demo Name Source Code Path Description
Paint Effect \Examples\SpecialEffects\CDLL\PaintEff

Demonstrates how to draw an image with a variety of effects

Shows how to draw a given image into a device context with a variety of effects

Demo Name Source Code Path Description
Animation \Examples\Viewers\CDLL\AnimView

Demonstrates LEADTOOLS Animation features.

  • Load and save animated GIF files.
  • Create animations from scratch, frame by frame.
  • Control animation playback settings.
  • Render animations.
Demo Name Source Code Path Description
Floater \Examples\Viewers\CDLL\Floater

Demonstrates how to position two or more images in the same display

Shows how to load and position multiple images next to each other and then to save the images as a single image.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Image Viewer \Examples\Viewers\CDLL\ImageViewer \Bin\CDLL\<Win32/x64>\ImageViewer_Original.exe

Demonstrates the DICOM / Medical image display functionality.

  • Load datasets from DICOM and DICOM Directory
  • Display images with full control over the cell/sub-cell layout
  • Interactive actions: WindowLevel, Pan, Zoom, Magnify Glass
  • Create, edit, and view image annotations
  • Advanced animation playback
Demo Name Source Code Path Description
Magnifying Glass \Examples\Viewers\CDLL\MagGlass

Demonstrates Magnify Glass features.

Provides a means of "zooming in" on the image.

Demo Name Source Code Path Description
Paint DC \Examples\Viewers\CDLL\PaintDC

Demonstrates how to draw an image to a Device Context

Shows how to draw a given image to a Device Context, optionally cropping the image with a given rectangle.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Quick View Utility \Examples\Viewers\CDLL\QuickViewUtility \Bin\CDLL\<Win32/x64>\QuickViewUtility_Original.exe

Simple Console app for quickly displaying images

Demo Name Source Code Path Pre-Compiled Executable Path Description
Scroll Zoom \Examples\Viewers\CDLL\ScrollZoom \Bin\CDLL\<Win32/x64>\ScrollZoom_Original.exe

Demonstrates the capability to display, zoom in, and zoom out any image with vertical and horizontal scroll.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Zoom View \Examples\Viewers\CDLL\ZoomView \Bin\CDLL\<Win32/x64>\ZoomView_Original.exe

Demonstrates how to zoom with an image

Shows how to perform zooming and other zoom features (zoom to fit, zoom normal, etc.) on an image

See Also

Getting Started with Leadtools

LEADTOOLS Support Forums

Getting Started

Help Version 22.0.2022.9.9
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Raster Imaging C API Help

Products | Support | Contact Us | Intellectual Property Notices
© 1991-2022 LEAD Technologies, Inc. All Rights Reserved.