Products | Support | Send comments on this topic. | Email a link to this topic. | Back to Getting Started | Help Version 18.0.11.1
LEADTOOLS Raster Imaging C DLL Help

Demo Programs

Show in webframe

The following demo programs are in separate EXAMPLES subdirectories of the path where you installed your product (<LEADTOOLS_INSTALLDIR>\Examples\C DLL).

The executable files for these examples were compiled with all LEADTOOLS capabilities unlocked. However, for redeployment, some of these capabilities require a product-specific runtime license. 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 and you must provide a runtime license using L_SetLicenseFile.

 

ABC

Demonstrates features of the LEAD Advanced Bitonal Compression (ABC) format.

AnimView

Demonstrates Animation viewing functionality.

Annotate

Demonstrates the Annotation capabilities of the Document/Medical toolkit.

Color

Loads the 24-bit image file specified on the command line and calls L_ColorResBitmap  to optimize and dither the image to 8 bits per pixel.

ColorConversion

Loads and displays the image file specified on the command line, then uses the L_ConvertColorSpace  function to convert from RGB to YUV, CMYK, and other formats, redisplaying the image after all conversions are complete.

CompCB

Loads the image file specified on the command line, then displays the image, compresses the bitmap to file using a callback function, clears the bitmap, loads the compressed image, and displays the newly loaded image.

DIBDDB

Demonstrates the functions that translate to and from Windows device independent bitmaps (DIBs) and device dependent bitmaps (DDBs).

Draw

Uses pull-down menus to show some of the drawing capabilities available with LEADTOOLS.

Feature1

Loads and displays the 24-bit image file specified on the command line, then makes the following changes, redisplaying the image after each change: optimize to 8 bits per pixel, flip, lighten, resize, and rotate.

Feature2

Loads and displays the 24-bit image file specified on the command line, then makes the following changes, redisplaying the image after each change: dither to 8 bits per pixel, reverse, grayscale, resize, and fill with one color.

Feature3

Loads and displays the image file specified on the command line, copies the image data to a different bitmap, halftones the original image, restores the image by copying the handle of the new bitmap, then redisplays the image.

FeedLoad

Demonstrates how to use L_FeedLoad and related functions by simulating the receipt of a transmitted image.

FeedInfo

Displays image information from the file specified on the command line by simulating the receipt of a transmitted image.

FileConversion

Demonstrates converting images from one file formation to another.

Floater

Demonstrates working with regions to create floater bitmaps.

GetRow

Loads the 24-bit image file specified on the command line, then rotates the image 90 degrees using L_GetBitmapRow and L_PutBitmapRowCol , and redisplays the image.

ImagePF

Demonstrates more of the advanced image processing functions.

Info

Displays image information from the file specified on the command line.

J2K

Demonstrates features of the JPEG 2000 and LEAD CMW (wavelet) formats.

J2kLargeImageSave

To save or convert J2K files to large dimensions (above 5000 lines), use the "J2kLargeImageSave" demo. This demo will save large images without excessive memory, disc or CPU usage. Unlike other demos which load the whole image/bitmap to memory and then save them, this demo will load and save one line at time.

Jpx

Demonstrates features of the JPX file format.

LoadCB

Loads the image file specified on the command line, using a callback function to display the image as it is loaded.

LoadSave

Uses pull-down menus to let the user load an image file, display the image in a window, and save the image to a specified file name, format, and bits per pixel.

MagGlass

Demonstrates the features of the LEADTOOLS Magnifying Glass.

MainDemo

The main example program. It uses pull-down menus to demonstrate most of the LEADTOOLS features in one application.

Memory

Demonstrates the ability to load a file from memory. It allocates memory, loads the image file specified on the command line into the allocated memory, then loads the image from memory to a bitmap using L_LoadBitmapMemory  and displays the image.

MemoryCB

Demonstrates the ability use a callback function when loading a file from memory. It allocates memory, loads the image file specified on the command line into the allocated memory, then loads the image from memory to a bitmap using L_LoadMemory and a callback function, and displays the image.

MfcFx

Demonstrates the LEADTOOLS special effects, including paint effects, transitions, three-dimensional text, and three-dimensional shapes.

MultiAnn

Demonstrates saving annotations as multi-page files.

Offset

Demonstrates the ability to load an image file that is embedded in a larger file. It does so by using the L_LoadFileOffset function, which lets you specify the offset and the size of the embedded file. This example first loads the normal image file specified on the command line. It embeds the image in a second file, which is specified in the second command line argument. It then loads and displays the embedded file.

PaintDC

Loads the image file specified on the command line, and displays the image. The user can then choose a menu option to modify the source and display rectangles, and redisplay the image to see the changes.

PaintEff

Uses pull-down menus to demonstrate the various transitional painting effects that are available with LEADTOOLS.

Redirect

Demonstrates how to use the L_RedirectIO function. It redirects the standard I/O functions so that they read and seek into the allocated memory rather than a file.

Resize

Loads the image file specified on the command line, resizing the image while loading it. It then places the resized image over the original and displays the combined image.

RgnDem

Demonstrates working with regions when performing image processing.

SaveCB

Loads the image file specified on the command line, then displays the image and saves it to the current directory using a callback and status window.

SaveMemory

Demonstrates the ability to save a file in memory. It lets the user load an image file, display the image in a window, and save the image to a file in memory.

ScrollZoom

Uses pull-down menus to let the user load an image file, display the image in a window, and use zooming and scrolling features. In doing so, it also demonstrates the ability of the L_PaintDC function to automatically dither a 16-, 24-, or 32-bit image when displaying on a 4- or 8-bit device.

SimpleLoad

Demonstrates simple load and display functionality.

StampGet

Reads a thumbnail (stamp) image stored in a compressed file that the user selects; then displays the image in a window. The only valid input file is a LEAD or JPEG file that is compressed with a stamp image. (Use the STAMPPUT example first to create an image file that contains a thumbnail.)

StampPut

Loads the image file specified on the command line, calls L_ColorResBitmap (if necessary) to obtain a 24 bit image, calls L_SaveFile to compress the image to STAMP.CMP (a LEAD CMP compressed file format), then loads the stamp to a bitmap and displays the stamp.

Thread

Reads and displays all files from the directory specified on the command line. It creates a new thread to load images while the main thread paints the last image that was loaded. When the last image is loaded, the example uses the last image to cycle through the paint effects.

Underlay

Demonstrates the L_UnderlayBitmap function. It loads two images specified on the command line and displays the first one. It then combines the images using the second one as an underlying image, and displays the combined image.

Warp

Demonstrates the L_CombineBitmapWarp function. It lets you load a master image and a slave image and, through the use of a polygon annotation, select the area of the master image to which to warp the slave image. For more information on using this demo, refer to Using the Image Warping Demo.

ZoomView

Demonstrates the zoom view functionality. It lets you load an image and, zoom any portion of the image. As long as the user moves the rectangle of the selected portion to be zoomed, the zoom view window will zoom that portion. In addition, the user can create multiple zoom views.

For more code samples, refer to:

LEADTOOLS Support Forums

Raster Imaging Tutorials

See Also:

 

Getting Started with Leadtools

Products | Support | Contact Us | Copyright Notices
© 2006-2014 All Rights Reserved. LEAD Technologies, Inc.