Demo Programs

The following demo programs are in separate EXAMPLES subdirectories of the path where you installed your product (such as C:\LEADTOOLS23\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
Annotations \Examples\Annotation\C\Annotate(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLAnnotate.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
Compress Callback \Examples\FileFormats\C\CompCB(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLCompCB.exe

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
Dimension \Examples\FileFormats\C\Dimens(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLDimens.exe

Demonstrates working with the multiple resolutions stored in specific image file formats.

  • Load the image from file
  • Tests for available resolutions in a specified PhotoCD or FlashPix file.
  • Chooses the resolutions of the image to display.
Demo Name Source Code Path Pre-Compiled Executable Path Description
Feed Load \Examples\FileFormats\C\FeedLoad(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLFeedLoad.exe

Demonstrates LEADTOOLS image feed load functionality

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

Demo Name Source Code Path Pre-Compiled Executable Path Description
Info \Examples\FileFormats\C\Info(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLInfo.exe

Demonstrates getting image file information with LEADTOOLS

Demo Name Source Code Path Pre-Compiled Executable Path Description
JPX \Examples\FileFormats\C\Jpx(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLJpx.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 Pre-Compiled Executable Path Description
Load Callback \Examples\FileFormats\C\LoadCB(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLLoadCB.exe

Demonstrates loading an image file 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 Pre-Compiled Executable Path Description
Load Save \Examples\FileFormats\C\LoadSave(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLLoadSave.exe

Demonstrates loading and saving of images.

Menu driven example for loading and saving images using Windows' common dialog box.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Memory \Examples\FileFormats\C\Memory(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLMemory.exe

Demonstrates how to load an image from a memory buffer instead of from a disk file.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Memory \Examples\FileFormats\C\MemoryCB(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLMemoryCB.exe

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 with a Callback, and displays the image.

Demo Name Source Code Path Pre-Compiled Executable Path Description
NITF \Examples\FileFormats\C\Nitf(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLNITF.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 Pre-Compiled Executable Path Description
Offset \Examples\FileFormats\C\Offset(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLOffset.exe

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 Pre-Compiled Executable Path Description
Redirect IO \Examples\FileFormats\C\Redirect(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLRedirect.exe

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 LBitmapBase::Create
  • Displays the loaded image in a window
Demo Name Source Code Path Pre-Compiled Executable Path Description
Save Callback \Examples\FileFormats\C\SaveCB(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLSaveCB.exe
  • Load the image from a file, whose name is sent through the command line, using L_LoadFile
  • Display the image
  • Save the image to the output directory using a callback and status window
Demo Name Source Code Path Pre-Compiled Executable Path Description
Save Memory \Examples\FileFormats\C\SaveMemory(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLSaveMemory.exe

Demonstrates saving an image to memory instead of a file on disk.

  • 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 Pre-Compiled Executable Path Description
Simple Load \Examples\FileFormats\C\SimpleLoad(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLSimpleLoad.exe

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 Pre-Compiled Executable Path Description
Stamp Get \Examples\FileFormats\C\StampGet(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLStampGet.exe

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\C\StampPut(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLStampPut.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 Pre-Compiled Executable Path Description
Color \Examples\ImageProcessing\C\Color(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLColor.exe

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\C\ColorConversion(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLColorConversion.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 Pre-Compiled Executable Path Description
Effects \Examples\ImageProcessing\C\Effects(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLEffects.exe

Demonstrates displaying an image and various transition effects.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Feature1 \Examples\ImageProcessing\C\Feature1(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLFeature1.exe

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 Pre-Compiled Executable Path Description
Feature2 \Examples\ImageProcessing\C\Feature2(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLFeature2.exe

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 Pre-Compiled Executable Path Description
Feature3 \Examples\ImageProcessing\C\Feature3(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLFeature3.exe

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 Pre-Compiled Executable Path Description
Get Row \Examples\ImageProcessing\C\GetRow(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLGetRow.exe

Demonstrates working with rows of bitmap data.

  • 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
Image Processing Features \Examples\ImageProcessing\C\ImagePF(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLImagePF.exe

Demonstrates LEADTOOLS 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
Picturize \Examples\ImageProcessing\C\Picturize(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLPicturize.exe

Demonstrates how to combine images from a folder into a customizable pattern.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Resize \Examples\ImageProcessing\C\Resize(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLResize.exe

Demonstrates how to resize an image.

Demo Name Source Code Path Pre-Compiled Executable Path Description
DIB DDB \Examples\Main\C\DIBDDB(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLDIBDDB.exe

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 Pre-Compiled Executable Path Description
Main \Examples\Main\C\MainDemo(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLMainDemo.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
Print Preview \Examples\Main\C\PrintPreview(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLPrintPreview.exe

Demonstrates how to print an image, as well as display a Print Preview of the image.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Raster Paint \Examples\Main\C\Raster(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLRaster.exe

Demonstrates some basic paint functionality of the LEADTOOLS class library.

Demo Name Source Code Path Pre-Compiled Executable Path Description
PDF Compressor \Examples\PDF\C\PdfCompressor(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLPdfCompressor.exe

Demonstrates how to add images to a PDF and save

Shows how to load images, add images as pages to a PDF document, and then how to save out that PDF document

Demo Name Source Code Path Pre-Compiled Executable Path Description
Segmentation \Examples\PDF\C\Segment(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLSegment.exe

Demonstrates image segmentation with Mixed Raster Content.

Segment an image, change color resolution, and select output format and compression.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Paint Effect \Examples\SpecialEffects\C\PaintEffects(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLPaintEffects.exe

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 Pre-Compiled Executable Path Description
Medical Viewer \Examples\Viewers\C\MedicalViewer(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLMedicalViewer.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 Pre-Compiled Executable Path Description
Paint DC \Examples\Viewers\C\PaintDC(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLPaintDC.exe

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
Scroll Zoom \Examples\Viewers\C\ScrollZoom(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLScrollZoom.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
Raster Paint \Examples\Viewers\C\SetTool(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLSetTool.exe

Demonstrates some basic zoom tool and region selecting functionality of the class library using LEADTOOLS SDK.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Zoom View \Examples\Viewers\C\ZoomView(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLZoomView.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

Demo Name Source Code Path Pre-Compiled Executable Path Description
Screen Capture \Examples\ScreenCapture\C\ScreenCapture(MFC) \Bin\CDLL\<Win32/Win32/x64/x64>\CLScreenCapture.exe

Demonstrates screen capture functionality

Take a screen shot of:

  • Active Window
  • Active Client
  • Full Screen
  • Selected Region

Save out the screen capture, or copy it.

See Also

LEADTOOLS Support Forums

Getting Started

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

LEADTOOLS Raster Imaging C++ Class Library Help

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