Leadtools.Drawing Getting Started

Summary

The Leadtools.Drawing assembly provides support for painting/drawing to a device, painting on the surface of a LEADTOOLS image, image conversion, region conversion, etc.

.NET
.NET Framework
Java/Android

.NET

Redistributables Paths

Path Target Platform
<installdir>\Bin\net .NET 6+

Dependencies

Library Description Dependencies
Leadtools.Drawing.dll The Leadtools.Drawing assembly contains classes, delegates, enumerations, and structures that support painting to a device or on the surface of a LEADTOOLS image. It also has many functions to convert between different types of images and also to and from different types of region objects. Leadtools.dll
NuGet PackageDescription
Leadtools.Annotations.UI.WinForms Annotation and Image Markup Library for WinForms
Leadtools.Annotations.UI.Wpf Annotation and Image Markup Library for WPF
Leadtools.Barcode Barcode Library to Detect, Read, and Write 1D and 2D Barcodes
Leadtools.Dicom.Pacs.Scp DICOM PACS Service Class Provider Library
Leadtools.Dicom.Pacs.Scu DICOM PACS Service Class User Library
Leadtools.Document.Sdk Document Imaging Library
Leadtools.Document.Viewer.WinForms Document Imaging Library for WinForms
Leadtools.Document.Viewer.Wpf Document Imaging Library for WPF
Leadtools.Formats.Document Document Formats Library
Leadtools.Formats.Raster.Additional Additional Raster File Formats Library
Leadtools.Formats.Raster.Camera Camera File Formats Library
Leadtools.Formats.Raster.Common Common Raster File Formats Library
Leadtools.Formats.Vector Vector Formats Library
Leadtools.HL7.Messaging HL7 Messaging Library
Leadtools.Image.Processing Image Processing Library
Leadtools.Jpeg2000 JPEG 2000 Library
Leadtools.Jpip JPIP Client and Server Library
Leadtools.Medical.Viewer.WinForms Medical Viewer Library for WinForms
Leadtools.Ocr OCR Library
Leadtools.Ocr.Languages.Additional OCR Library plus Additional Languages
Leadtools.Ocr.Languages.Asian OCR Library plus Additional Asian Languages
Leadtools.Pdf PDF Library
Leadtools.Twain Enhanced TWAIN Library
Leadtools.Viewer.Controls.WinForms Image Viewer Controls for WinForms
Leadtools.Viewer.Controls.Wpf Viewer Controls for WPF
Leadtools.Wia WIA Library

Sample Programs

Demo Name Source Code Path Description
ASP.NET Controller \Examples\Main\DotNet\AspNetControllerDemo\net

Demonstrates using the LEADTOOLS .NET Core NuGet packages to create an ASP.NET RESTful service and showcases how to use LEADTOOLS within a .NET Core Web API environment.

Has three controller endpoints showcasing different LEADTOOLS engines:

/Barcode/RecognizeBarcodes

/Convert/ConvertImage

/Ocr/GetText

You can use the following sample urls to test:

/Barcode/RecognizeBarcodes?uri=https://demo.leadtools.com/images/tiff/barcode1.tif

/Convert/ConvertImage?uri=https://demo.leadtools.com/images/pdf/leadtools.pdf

/Ocr/GetText?uri=https://demo.leadtools.com/images/tiff/ocr1.tif

Demo Name Source Code Path Pre-Compiled Executable Path Description
Draw \Examples\Main\DotNet\DrawDemo\net \Bin\net\DrawDemo_Original.exe

Demonstrates using RasterImage object as a drawing surface.

  • Gets a drawing surface for the LEADTOOLS RasterImage object.
  • Draws graphic objects on the RasterImage object.
  • Saves the updated image.
Demo Name Source Code Path Pre-Compiled Executable Path Description
Main \Examples\Main\DotNet\MainDemo\net \Bin\net\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
Paint While Load \Examples\Main\DotNet\PaintWhileLoadDemo\net \Bin\net\PaintWhileLoadDemo_Original.exe

Demonstrates painting an image to the screen while loading/decoding.

Simulates receiving an image file over a slow connection.

Paints the image in chunks, as it is loaded/decoded.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Print Preview \Examples\Main\DotNet\PrintPreviewDemo\net \Bin\net\PrintPreviewDemo_Original.exe

Demonstrates implementing image print preview support using LEADTOOLS.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Main Demo (WPF) \Examples\Main\DotNet\WPFMainDemo\net \Bin\net\WPFMainDemo_Original.exe

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

  • Load and save all formats supported by LEADTOOLS
  • Display (scroll/zoom) images with options
  • Apply Image Processing

Additional Related Namespaces

Assembly - Class/Namespace Comments
Leadtools.dll - Leadtools The Leadtools namespace provides libraries with properties, methods, events, structures and interfaces for building applications with LEADTOOLS SDKs. It is required in all applications.
Leadtools.Converters.dll - Leadtools.Converters The Leadtools.Converters namespace provides for interoperation between a LEADTOOLS image (Leadtools.RasterImage) and various other types of images from different environments.
Leadtools.Document.Converter.dll - Leadtools.Document.Converter The Leadtools.Document.Converter namespace can be used to create powerful, automated document conversion, archival and delivery systems for .NET (C# & VB).
Leadtools.Svg.dll - Leadtools.Svg The Leadtools.Svg namespace can be used to add vector loading, editing, saving, converting and display functionality to applications.

.NET Framework

Redistributables Paths

Path Target Platform
<installdir>\Bin\DotNet4\Win32 x86 .NET 4 or 4.5
<installdir>\Bin\DotNet4\x64 x64 .NET 4 or 4.5

Dependencies

Library Description Dependencies
Leadtools.Drawing.dll The Leadtools.Drawing assembly contains classes, delegates, enumerations, and structures that support painting to a device or on the surface of a LEADTOOLS image. It also has many functions to convert between different types of images and also to and from different types of region objects.

Leadtools.dll

NuGet PackageDescription
Leadtools.Annotations.UI.WinForms Annotation and Image Markup Library for WinForms
Leadtools.Annotations.UI.Wpf Annotation and Image Markup Library for WPF
Leadtools.Barcode Barcode Library to Detect, Read, and Write 1D and 2D Barcodes
Leadtools.Dicom.Pacs.Scp DICOM PACS Service Class Provider Library
Leadtools.Dicom.Pacs.Scu DICOM PACS Service Class User Library
Leadtools.Document.Sdk Document Imaging Library
Leadtools.Document.Viewer.WinForms Document Imaging Library for WinForms
Leadtools.Document.Viewer.Wpf Document Imaging Library for WPF
Leadtools.Formats.Document Document Formats Library
Leadtools.Formats.Raster.Additional Additional Raster File Formats Library
Leadtools.Formats.Raster.Camera Camera File Formats Library
Leadtools.Formats.Raster.Common Common Raster File Formats Library
Leadtools.Formats.Vector Vector Formats Library
Leadtools.HL7.Messaging HL7 Messaging Library
Leadtools.Image.Processing Image Processing Library
Leadtools.Jpeg2000 JPEG 2000 Library
Leadtools.Jpip JPIP Client and Server Library
Leadtools.Medical.Viewer.WinForms Medical Viewer Library for WinForms
Leadtools.Ocr OCR Library
Leadtools.Ocr.Languages.Additional OCR Library plus Additional Languages
Leadtools.Ocr.Languages.Asian OCR Library plus Additional Asian Languages
Leadtools.Pdf PDF Library
Leadtools.Twain Enhanced TWAIN Library
Leadtools.Viewer.Controls.WinForms Image Viewer Controls for WinForms
Leadtools.Viewer.Controls.Wpf Viewer Controls for WPF
Leadtools.Wia WIA Library

Sample Programs

Demo Name Source Code Path Pre-Compiled Executable Path Description
Draw \Examples\Main\DotNet\DrawDemo\fx \Bin\DotNet4\<Win32/x64>\DrawDemo_Original.exe

Demonstrates using RasterImage object as a drawing surface.

  • Gets a drawing surface for the LEADTOOLS RasterImage object.
  • Draws graphic objects on the RasterImage object.
  • Saves the updated image.
Demo Name Source Code Path Pre-Compiled Executable Path Description
Main \Examples\Main\DotNet\MainDemo\fx \Bin\DotNet4\<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
Paint While Load \Examples\Main\DotNet\PaintWhileLoadDemo\fx \Bin\DotNet4\<Win32/x64>\PaintWhileLoadDemo_Original.exe

Demonstrates painting an image to the screen while loading/decoding.

Simulates receiving an image file over a slow connection.

Paints the image in chunks, as it is loaded/decoded.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Print Preview \Examples\Main\DotNet\PrintPreviewDemo\fx \Bin\DotNet4\<Win32/x64>\PrintPreviewDemo_Original.exe

Demonstrates implementing image print preview support using LEADTOOLS.

Demo Name Source Code Path Pre-Compiled Executable Path Description
Main Demo (WPF) \Examples\Main\DotNet\WPFMainDemo\fx \Bin\DotNet4\<Win32/x64>\WPFMainDemo_Original.exe

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

  • Load and save all formats supported by LEADTOOLS
  • Display (scroll/zoom) images with options
  • Apply Image Processing

Additional Related Namespaces

Assembly - Class/Namespace Comments
Leadtools.dll - Leadtools The Leadtools namespace provides libraries with properties, methods, events, structures and interfaces for building applications with LEADTOOLS SDKs. It is required in all applications.
Leadtools.Converters.dll - Leadtools.Converters The Leadtools.Converters namespace provides for interoperation between a LEADTOOLS image (Leadtools.RasterImage) and various other types of images from different environments.
Leadtools.Document.Converter.dll - Leadtools.Document.Converter The Leadtools.Document.Converter namespace can be used to create powerful, automated document conversion, archival and delivery systems for .NET (C# & VB).
Leadtools.Svg.dll - Leadtools.Svg The Leadtools.Svg namespace can be used to add vector loading, editing, saving, converting and display functionality to applications.

Java/Android

Redistributables Paths

Path Target Platform
<installdir>\Bin\Android\x86_64 (Android) x86_64 Android
<installdir>\Bin\Android\x86 (Android) x86 Android
<installdir>\Bin\Android\arm64-v8a (Android) arm64-v8a Android
<installdir>\Bin\Android\armeabi-v7a (Android) armeabi-v7a Android
<installdir>\Bin\CDLL\Win32 (Windows) x86 Windows
<installdir>\Bin\CDLL\x64 (Windows) x64 Windows
<installdir>\Bin\Lib\x86 (Linux) x86 Linux
<installdir>\Bin\Lib\x64 (Linux) x64 Linux

Dependencies

Library Description Jars Native Libraries
leadtools.drawing.jar The Leadtools.Drawing assembly supports painting to a device or on the surface of a LEADTOOLS image. It also has many functions to convert between different types of images and also to and from different types of region objects.

leadtools.jar

Android

libleadtools.drawing.so

libleadtools.so

Linux

libltdrw.so

libltkrn.so

Windows

Ltdrwu.dll

Ltdrwx.dll

Ltkrnu.dll

Ltkrnx.dll

Sample Programs

Demo Name Source Code Path Description
LEADTOOLS Demos Library (Android) \Examples\Main\Android\LeadtoolsDemos

Provides the classes and objects used by the LEADTOOLS Android demos.

  • Camera Handler
  • Device Utility Helper for requesting permissions for camera/external storage
  • File Browser Dialog/DialogFragment
  • Image File Saver
  • Invert Color Array Adapter
  • Messager
  • Open File Dialog/DialogFragment
  • Progress Dialog/DialogFragment
  • Save File Dialog/DialogFragment
  • Save Format Dialog
  • Shadowed Scroll View
  • Splash Screen
  • Support Helper for setting the license
  • Utility Methods Helper
Demo Name Source Code Path Description
Main (Java) \Examples\Main\Java\MainDemo

Demonstrates the basic and core features of LEADTOOLS.

  • Load and save all formats supported by LEADTOOLS
  • Apply Image Processing

See Also

Reference

Imaging Features

RasterImage and GDI/GDI+

Using the Paint Engine Property

Implementing Custom Paint

Working with DICOM Overlays

Version History

Leadtools.Drawing Assembly Changes

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

Leadtools.Drawing Assembly

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