Code Tips

LEADTOOLS Code Tips

The following is a chronological archive of Code Tips released in our monthly newsletters. For a more advanced search through examples and FAQs written by our expert support staff, please visit the LEAD Support Portal.

To subscribe to the LEADTOOLS Code Tip Newsletter, click here.

May 2015

Reading and Processing Checks with LEADTOOLS V19 C# .NET

April 2015

HTML5 Zero-footprint Viewer for DICOM and PACS V19 JavaScript HTML5
HTML5 Zero-footprint Viewer for DICOM and PACS – Part 2 V19 JavaScript HTML5

March 2015

HTML5 Web Scanning with LEADTOOLS V19 C# &
JavaScript
.NET &
HTML5

January 2015

Unstructured Invoice Recognition and Processing with LEADTOOOLS V19 C# .NET

January 2015

Converting and Viewing Documents with LEADTOOLS V19 C# &
HTML5
.NET &
JavaScript
Automatic Alignment (Shift and Rotate) with OCR V19 C# .NET
Multipage Annotations V19 JavaScript HTML5
Xcode Project Templates for Getting Started with LEADTOOLS V18 Xcode iOS /
OS X

October 2014

OCR with LEADTOOLS: The Better Choice V18 C# .NET
How to Use Blank Page Detection V18 C# .NET
How to Create a Custom Circle Annotation Object V18 C# .NET
How to Use Correlation Command to Search for Image Within Another Image V18 C# .NET

September 2014

DICOM Images and Metadata with LEADTOOLS V18 C# .NET
Create HTML5 Cross-platform Apps Using Intel XDK V18 JavaScript HTML5
How to Use AutoZoningCommand to AutoZone an Image for OCR V18 C# .NET
How to Create a Non-blocking UDP Stream Listener V18 C# .NET

August 2014

PACS Storage Server Development - The LEADTOOLS Way V18 C# .NET
Capture Live Video to Disk and Convert to MPEG-2 Transport Stream with KLV V18 C++ CDLL
Converting legacy Annotations files to the new XML-based Annotations file format V18 C# .NET
How to Save Password-protected PDF in VB6 V18 VB6 CDLL

July 2014

Choosing the Right Barcode for Your Application V18 C# .NET
Using TwainSession.SaveTemplate to Save a Subset of Settings V18 C# .NET
How to OCR and Highlight Words V18 C# .NET
How to use the AnnLabel to add a Label to an Automated Object V18 C# .NET

June 2014

DICOM Media Creation Management Solutions with LEADTOOLS V18 C# .NET
Simple OCR in ASP.NET V18 C# &
ASP.NET
.NET
Copy a Region's Contents from One RasterImage to Another RasterImage V18 C# .NET
How to Use Hexadecimal Color codes with Annotations V18 C# .NET

May 2014

How to Use DocumentWriters to Convert RTF and EMF to PDF V18 C# .NET
How to Use Document Cleanup Image Processing on Color Images V18 C# .NET
Minimum OMR Demo in Delphi with CDLL Functions V18 Delphi CDLL
How to Use Transparency with AnnPicture V18 C# WPF

April 2014

Harnessing MPEG-2 Transport Stream with LEADTOOLS V18 C# .NET
How to Parse Objects from PDF Files in C++ V18 C++ .NET
Load Images in Separate Thread, in Parallel and with Async/Await V18 C# .NET
How to Convert Video and Audio in a Console Application V18 C# .NET

March 2014

Implementing a Standardized PDFA Document Storage System with LEADTOOLS V18 C# .NET
HTML5 Continuous Scrolling Multipage Viewer V18 JavaScript HTML5
Barcode Data with Extended Channel Interpretations (ECI) Encoding or UNICODE Encoded Characters V18 C++ C++ Class Library
How to Use LEADTOOLS CDLL Functions Inside Android V18 C++ CDLL

February 2014

Using Print to PACS to Digitize Your Legacy Medical Imaging Systems V18 C# .NET
Load Dicom File from byte[] without Stream in C# V18 C# .NET
Write QR Barcode with CDLL L_BarCodeWrite V18 C++ CDLL
Combine Video and Audio from Separate Sources V18 C# .NET

January 2014

How to Modify Selection Objects V18 JavaScript HTML5
Customizing the Default Annotation Objects V18 C# .NET
Merge Various Files into one Searchable PDF V18 C# .NET
Using the CDLL Functions in Delphi V18 Delphi CDLL

December 2013

Choosing the Right Barcode for your Application V18 C# .NET
How to Set License Information in iOS / Mac OS X V18 Objective-C iOS /
OS X
How to Set Image Sub Format Using WIC Codecs V18 C# .NET
Rasterize Vector File Using Logical Dimensions Read from the Vector File V18 C# .NET

November 2013

Improving Forms Recognition Results with Automated Alignment V18 C# .NET
Using the Medical Image Display Container Control with in Delphi V18 Delphi CDLL
Media Foundation Play control with Video Callback Transform V18 C# .NET
Optimize a Directory of Images using ImageOptimizer Class V18 C# .NET

October 2013

Using LEADTOOLS PDF File Features to Enhance Google Drive Search V18 C# .NET
How to Keep Drawing the Same Object in HTML5 V18 JavaScript HTML5
Create Searchable PDFs from Redacted Documents V18 C# .NET
Use the Convert Control in a Multithreaded Application V18 C# .NET

September 2013

LEADTOOLS Forms Recognition Implementation Strategies for Large Enterprises V18 C# .NET
Client-side Image Processing with the HTML5 Image Viewer V18 JavaScript HTML5
Working with Leadtools.Annotations.Automation in WinForms V18 C# .NET
How to Customize the Default Annotation Toolbar V18 C# .NET

August 2013

Creating and Processing OMR Forms with LEADTOOLS V18 C# .NET
How to Display DICOM Overlay in Medical Viewer / MedicalViewerMultiCell V18 C# .NET
How to Modify Font Family used by AnnTextBox V18 JavaScript HTML5
How to Use LEADTOOLS AJAX Controls in a SharePoint Web Part V18 C# .NET

July 2013

Automatically Classify Scanned Documents using LEADTOOLS Forms Recognition V18 C# .NET
How to reference LeadTools in Unit Test project V18 C# .NET
Android Minimum OCR V18 Java Android
How to Zoom Using Mouse Wheel in C++ V18 C++ C++ Class Library

June 2013

Using LEADTOOLS OCR to Enhance Google Drive Search V18 C# .NET
How to Burn New Annotations to an Image V18 C# .NET
How to Fully Customize Your Virtual Printer Install V18 C# .NET
How to Load RAW Image Data and Window Level V17.5 C# .NET

May 2013

Multi-platform Barcode with LEADTOOLS 18 (The CodeProject) V18 Various Various
RESTful PDF Merge Service V18 JavaScript
& C#
HTML5
& .NET
Read and Write UTF-8 Characters for a QR Barcode V18 C# .NET
Using RasterSupport.SetLicense for Local and Server Licenses V18 C# .NET

April 2013

Media Foundation Capture and Convert (The CodeProject) V18 C# .NET
HTML5 Medical Viewer - Troubleshooting Invalid Username or Password V18 JavaScript HTML5
How to Load and Convert HTML in a Console Application V175 C# .NET
How to OCR Text from a Video Stream V18 C# .NET

March 2013

RTSP Server Made Easy with LEADTOOLS 18 (The CodeProject) V18 C# .NET
Minimum Barcode for Android V18 Java Android
Restrict AnnObject Position to AnnContainer in HTML5 V18 JavaScript HTML5
Working with Groups in HTML5 Annotations V18 JavaScript HTML5

February 2013

Multi-platform OCR with LEADTOOLS 18 (The CodeProject) V18 Various Various
Crop Image in MedicalViewer using Rectangle Annotation V17.5 C# .NET
User-assisted Alignment (Resize, Rotate and Shift) V17.5 C# .NET
Using the Annotation Toolbar in a ToolStrip V17.5 C# .NET

January 2013

iOS OCR and Barcode with LEADTOOLS 18 (The CodeProject) V18 Objective-C iOS
Minimum OCR Demo V17.5 Delphi CDLL
Translate Bitmap and Client Coordinates using GDI+ V17.5 VB.NET .NET
Add a Buttonize Effect V17.5 C# .NET
Enumerate Text Objects in a Vector File V17.5 C# .NET

December 2012

Deploying LEADTOOLS WinRT Demos to a Remote Device V17.5 Various WinRT
How to Implement Low Memory Usage Option in the Medical Viewer V17.5 C++ C++ Class Library
DICOM Printing for Multi-frame XA Image V17.5 C# .NET
Select and Deselect Multiple Regions V17.5 C# .NET

November 2012

WinRT OCR for Windows Store Apps with LEADTOOLS V17.5 C# WinRT
Synchronize Scrolling with the Medical Viewer V17.5 C# .NET
How to Crate a Hounsfield unit UserAction for the Medical Viewer V17.5 C# .NET
Customizing the Display/Overlay Tags with the WorkstationViewer V17.5 C# .NET
HitTest Over Multiple Annotation Objects V17.5 C# .NET

October 2012

Image Enabled Windows Store Applications with LEADTOOLS V17.5 C# WinRT
HTML5 AnnStampObject With Picture V17.5 JavaScript HTML5
Stitch Two Images Together in C# .NET V17.5 C# .NET
How to Use MedicalViewerPlaneCutLine Class V17.5 C# .NET
How to Encode HD Video with MPEG-2 V17.5 C# .NET

September 2012

Developing DICOM Viewers for Real-world Applications V17.5 C# .NET
How to Recognize and Parse MICR Information V17.5 C# .NET
Using the WorkstationViewer in a Stand-alone Application V17.5 C# .NET
Load Text Files with the WebImageViewer V17.5 C# &
ASP.NET
.NET
Load a Vector File as a RasterImage with New Native .NET Classes V17.5 C# .NET

August 2012

Zero-footprint OCR with LEADTOOLS HTML5 V17.5 HTML5 &
JavaScript
HTML5
Simple HTML5 Zero-footprint Window Level Example V17.5 HTML5 &
JavaScript
HTML5
Minimize Memory Usage When OCR'ing Large Documents V17.5 C# .NET
Combine Image Tiles Into One Image Using Minimal Memory V17.5 C++ CDLL
Grab and Process Frames Using LTMM V17.5 C# .NET

July 2012

HTML5 Zero-footprint Viewer for DICOM and PACS - Part 2 V17.5 HTML5 &
JavaScript
HTML5
OCR in HTML5 V17.5 HTML5 &
JavaScript
HTML5
How to Track Changes on an Annotation Object V17.5 C# & VB .NET
How to Burn Text Onto 16-bit Grayscale Images V17.5 C# .NET
How to Capture Video using the Video Overlay Filter V17.5 C# .NET

June 2012

HTML5 Zero-footprint Viewer for DICOM and PACS V17.5 HTML5 &
JavaScript
HTML5
How to Use .NET MedicalViewerFusion Class V17.5 C# .NET
How to Move Data Sets Between Remote PACS Servers V17.5 C# .NET
How to Encrypt and Decrypt Images with LEADTOOLS V17.5 C# Silverlight
Generate WMV Video from Still Images in a Directory V17.5 C# .NET

May 2012

HTML5 Imaging with LEADTOOLS V17.5 HTML5 &
JavaScript
HTML5
How to Take a Screenshot and Return a RasterImage V17.5 C# .NET
How to Alpha Blend Image Annotations V17.5 C# .NET
Saving and Loading Annotations from a Custom Database through the Workstation Viewer V17.5 C# .NET
Editable Scrolling Text Overlay V17.5 C# .NET

April 2012

Multimedia Transcoding Across Multiple Computers with LEADTOOLS V17.5 C# .NET
Overlaying an Animated Logo onto Video V17.5 C# .NET
Handling DICOM PhotoMetric Interpretation (Image Colors Inverted) V17.5 C# .NET
Scanning with TWAIN in Silverlight 5 V17.5 C# COM
Zoom and Resize the RasterImageViewer with Rectangle V17.5 C# & VB .NET

March 2012

PACS Storage Server Development - The LEADTOOLS Way V17.5 C# & VB .NET
How to Enumerate Image Objects in Searchable PDFs V17.5 C# .NET
How to Display Cobb Angles with MedicalViewer V17.5 C# .NET
Use Transparency Chunk to convert 8BPP PNG to 32BPP with Alpha V17.5 C# .NET
Text Overlay DirectShow Filter V17.5 C# .NET

February 2012

OCR with LEADTOOLS: The Better Choice V17.5 C# .NET
Loading and Saving Annotations from DICOM Private Tags V17.5 C# .NET
Interactive Color Picker Tool for Displaying Hounsfield (HU) and OD Value V17.5 C# &
VB
.NET
Handling Silverlight MouseRightButtonUp Event V17.5 C# .NET
Use WebImageViewer Controls in UserControl (Ajax) V17.5 C# &
ASPNET
.NET

January 2012

How to Read, Write and Edit PDF Files and Metadata using LEADTOOLS V17.5 C# .NET
How to determine if a PDF is searchable V17.5 C# .NET
OCR Service Example V17.5 C# .NET
How to Add and Read Private Tags/Elements in a DICOM Data set V17.5 C# .NET
How to Split Left and Right Audio Channels V17.5 C# .NET

November 2011

Using the MedicalViewerLoader with the DicomDirClient to load DICOM files into the Medical Viewer V17.5 C# .NET
Programmatically scroll through cells using the MedicalViewer V17.5 C# .NET
Programmatically scroll through frames or subcells using the MedicalViewer V17.5 C# .NET
Programmatically use the Dicom Writer filter to convert a video to a DICOM Data set file V17.5 C# .NET
Use Video Capture Control from a Console Application V17.5 C# .NET

October 2011

Using 17.5's new RasterSupport.SetLicense V17.5 C# .NET
How to highlight words and characters using the PDFDocument class V17.5 C# .NET
How to highlight words and characters using our OCR engines V17.5 C# .NET
Using the MedicalViewerLoader with the PacsClient to load DICOM files into the Medical Viewer V17.5 C# .NET
How to create custom annotations in the MedicalViewer V17.5 C# .NET

September 2011

Using 17.5's new RasterSupport.SetLicense V17.5 C# .NET
How to implement our EnableLowMemoryUsage (Lazy Loading) function with the MedicalViewer V17.5 C# .NET
A Way to Find Dots on an Image V17 C# .NET
How To: Embed LTMM Play Control in HTML V17 HTML COM
TWAIN Containers and Capabilities Explained N/A N/A N/A

August 2011

Using 17.5's new RasterSupport.SetLicense V17.5 C# .NET
Two New Events Added to MedicalViewer in Version 17.5 V17.5 C# .NET
Determine Supported Capabilities for Your Scanner V17.5 C# .NET
Deploying the LEADTOOLS WebFormsViewer N/A N/A N/A

May 2011

Convert Client Coordinates to Bitmap Coordinates V17 C# .NET
Some Notes about Annotations in Medical Viewers V17 C# .NET
Basic Video On Video (Picture in Picture) V17 C# .NET
Manually Paint a Continuous Multi-page Scroll V15 C++ CDLL

April 2011

Simple Surveillance Analysis Using Motion Detection Filter V17 C# .NET
Virtual Printer: Printer Redirection Service V17 C# .NET
Save a Black and White Image with Color Annotations to Conserve Disk Space V16 C# .NET
FAQ: Missing WIA Driver from SelectSource dialog or from results returned from TwainSession.QuerySourceInformation N/A N/A N/A

March 2011

Change Settings of DirectShow Processing Filter V17 C# .NET
Simple MedicalViewer with Annotations V17 C# .NET
Capture Live Video into MPEG2-TS with KLV V17 C# .NET
Size Text Annotations to Their Content V17 C# .NET

February 2011

Send Captured Video to Both Network Stream and Disk File V17 C# .NET
Basic Forms Recognition V17 C# .NET
Convert Colors to Properly Display an Image With an Embedded Profile V17 C++ CDLL
Show Annotations in the RasterImageList Control V17 C# .NET

January 2011

Use Twain in a Background Thread V17 C# .NET
Perform a Storage Commit with LEADTOOLS SCU V17 C# .NET
Minimum OCR Demo V17 Delphi CDLL
Send captured video to both network stream and disk file V17 C# .NET

November 2010

Using Audio Detection filter in .NET V17 C# .NET
Programmatically Modify Automated Annotations Defaults in Silverlight V17 C#/XAML .NET
Embed .NET UserControls in Webpages (Load/Display Images, Scanning, Printing, and More) V17 C# .NET
Load a Vector File as a RasterImage Using the CDLL Interface V17 C# .NET/CDLL

October 2010

Create Searchable PDF files with bookmarks V17 C# .NET
Save LEADTOOLS Annotations in PDF files V17 C# .NET
Creating a class library and getting exceptions when loading or saving files V14+ ALL .NET
Convert Single or Multi-page Files to Multi-page Files V17 C# .NET
Silverlight TWAIN Scanning V17 XAML/C# .NET
Using .NET 2.0 LEADTOOLS assemblies in a .NET 4.0 Application V14+ ALL .NET
How to Display, Save, and Annotate 100+ Image Formats in Silverlight Clients V17 XAML/C# .NET

September 2010

How to Display, Save, and Annotate 100+ Image Formats in Silverlight Clients V17 XAML/C# .NET 4.0
Convert an AVI file to MP4 file using Multimedia .NET v17 V17 C# .NET
Save LEADTOOLS Annotations in PDF files V17 C# .NET
FAQ: Why do annotations become black or white when realized on 1bpp images? V16 C# .NET
How to Use The LEADTOOLS Virtual Printer Driver V17 C# .NET
Auto-Recognize And Process A Form V17 C#/VB .NET

July 2010

Use Video Callback filter to create fading effects V16.5 C# .NET 2.0
OCR & Find words to highlight in C# DotNet V16.5 C# .NET 2.0
Convert Single or Multi-page Files to Multi-page Files V16.5 C#

.NET 2.0
Multimedia DVD Converter V16.5 C++  
Detect Differences in Bitonal Images V15 C# .NET 2.0

February 2010

Efficient Multi-page Thumbnail Loading V16.5 C# .NET 2.0
Convert Transparent Format to Non-Transparent Format V16.5 C# .NET 2.0
Create LEADTOOLS Medical Web Viewer Framework Desktop Client V16.5 C# .NET 2.0
Load and Save Tile in C API V16.5 C++  
Capture Live Video into UDP Stream & Convert to MPEG2 Transport with KLV V16.5 C# .NET 2.0
Save Real Time Snapshots During Video Playback V16 C# .NET 2.0

November 2009

Use a Barcode Separator Page for Large Scanning Batches V16.5 C# .NET 2.0
DICOM C-Store of an Encapsulated PDF V16 C# .NET 2.0
Implement Storage Commitment SCU V16.5 C# .NET 2.0
Use Document Writers in C DLL V16.5 C++  
Capture Live Video into UDP Stream & Convert to MPEG2 Transport with KLV V16.5 C# .NET 2.0
Use OCR Advantage in ASP.NET Applications V16.5 FAQ .NET 2.0

September 2009

Programmatically use the Dicom Writer Filter to convert a video to a DICOM Data set File V16.5 C# .NET 2.0
Capture to MPEG2 with Video Callback Filter for Stills V16 C# .NET/COM
Compiling Multimedia C++ demos in VS 2005 V16.5 C++ FAQ
Install DirectShow on Windows Server 2008     FAQ
WPF Example to Scan Images then OCR them in VS 2008 V16.5 C# .NET 3.0
Create a Basic WCF Client Application in VS 2008 V16.5 C# .NET 3.0

August 2009

Simple Word Doc to PDF Conversion V16.5 C# .NET 2.0
OCR: Search and Highlight Words V16.5 C# .NET 2.0
OCR: Zone Specific Character Filter V16.5 C# .NET 2.0
OCR: Minimize Memory Usage When Recognizing Large Documents V16.5 C# .NET 2.0
Load a Vector File as a RasterImage using CDLL Interface V16.5 C# DLL API
Multimedia ActiveX Controls in WPF Application v16 C# COM
OCR a Video Stream V16 C# .NET/COM

June 2009

Change DPI of PDF using OCR V16.5 C# .NET 2.0
Separate Text and Graphics V16.5 C# .NET 2.0
OCR Text from a Video Stream V16 C# .NET 2.0
Use our COMInterop classes with Delphi V16 Pascal COM Interop
Hosting Multimedia ActiveX Controls in WPF v16 C# .NET 2.0
Use the VUmeter filter in C++ V16 C++ DLL API
Preprocess Data Matrix Barcodes to Improve Reading Rates V16 C# .NET 2.0
Preprocess Data Matrix Barcodes to Improve Reading Rates V16 C++ C++ Class Library
Preprocess Data Matrix Barcodes to Improve Reading Rates V16 C++ DLL API
Prevent moving, rotating and resizing of Annotation objects V16 C# .NET 2.0
Set Subcell specific tags in the MedicalViewer control V16 C# .NET 2.0
Scan with barcode separator V16 C# .NET 2.0

May 2009

XBAP Support V16.0 C# WPF
Read Barcodes in Web Forms Application V16.0 C# .NET 2.0
Separate Text and Graphics V16.5 C# .NET 2.0
Interactive LEADTOOLS v16 Pre-OCR Enhancements Demo V16.0 C# .NET 2.0
Load an image, add annotations, and save the image without display & without the RasterImageViewer - No automation v16.0 C# .NET 2.0
Load an image, Add and Burn annotations, and Save the image without display - with Automation V16.0 C# .NET 2.0
Create and Use a Custom Spatial Filter With L_SpatialFilterBitmap V15.0 C++ DLL API

March 2009

LEADTOOLS Advanced Bitonal Compression Format V16 C# .NET 2.0
Call a LEADTOOLS API Function from Java V16 Java DLL API
Utilize the RasterClipboard in C# .NET V16 C# .NET 2.0
Load an image, Add and Burn annotations, and Save the image without display V16 C# .NET 2.0

February 2009

Simple Save to SharePoint Example V16 C# .NET 2.0
OCR on the Web V16 C# .NET 2.0
Minimum OCR Demo V16 C# .NET 2.0
Basic Video On Video (Picture in Picture) Example V15 VB6 COM
Use LEADTOOLS Video CallBack Filter in Delphi 7 V16 Delphi 7 COM
LEADTOOLS JPIP Web Client Demo V16 C#\HTML .NET 2.0
MagGlass in LEADTOOLS Raster COM V14.5 VB6 COM
MagGlass in LEADTOOLS ActiveX V14.5 VB6 ActiveX
Implement a Zoom to Rectangle User Action in the .NET MedicalViewer V16 C# .NET 2.0
Implement a Center On Point User Action in the .NET MedicalViewer V16 C# .NET 2.0
Create a Hounsfield Unit UserAction for the MedicalViewer V16 C# .NET 2.0
Calculate Hounsfield Unit V16 C# .NET 2.0
Manually Paint a Continuous Multi-page Scroll Display V15 C++ DLL API
Creating Custom Annotation Property Dialog for a Specific Object V15 C# .NET 2.0
Use Non-Automated Annotations with VB6 and the ComInterop Interface V16 VB6 COM
Save a Black and White Image with Color Annotations to Conserve Disk Space V16 C# .NET 2.0
LEAD Technologies Logo
LEADTOOLS Logo