LEADTOOLS Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.22
Leadtools Assembly Changes

Version 17 changes

Version 16.5 changes

Version 16 changes

Version 15 changes

Leadtools Assembly Changes from Version 16.5 to Version 17

Note on LEADTOOLS for .NET v17

In LEADTOOLS for .NET v16.5, some assemblies had a dependency on System.Drawing. System.Drawing is the .NET 2.0 assembly used with the Windows Forms and GDI+ platforms. Since LEADTOOLS v17 treats Windows Forms, Windows Presentation Foundation (WPF) and Silverlight as equal citizens, certain types in this LEADTOOLS assembly has been changed to reflect that. For example, properties with System.Drawing.Point type have been changed to use the new Leadtools.LeadPoint type, methods with a parameter of System.Drawing.Rectangle type have been changed to use the new Leadtools.LeadRect type. The following table shows the old 16.5 and corresponding new v17 types:

Old v16.5 Type

New v17 Type

System.Drawing.Point

Leadtools.LeadPoint

System.Drawing.Size

Leadtools.LeadSize

System.Drawing.Rectangle

Leadtools.LeadRect

System.Drawing.Color

Leadtools.RasterColor

System.Drawing.Drawing2.FillMode

Leadtools.LeadFillMode

These changes are not listed in the topics below.

New Types

The following new types have been added to LEADTOOLS For .NET v17:

Type Description
LeadPoint

Stores two integer numbers that represent the coordinates of a point (X and Y). Replacement for System.Drawing.Point.

LeadSize

Stores two integer numbers that represents the size (Width and Height). Replacement for System.Drawing.Size.

LeadRect

Stores four integer numbers that represent the coordinates and size of a rectangle (X, Y, Width, and Height). Replacement for System.Drawing.Rectangle.

LeadFillMode

Specifies how a polygonal shape with crossing lines is filled. Replacement for System.Drawing.Drawing2D.FillMode.

RasterKnownColor

Specifies the known system colors.

RasterRegion

Describes a region of interests in a Leadtools.RasterImage object.

RasterColorTypeConverter

Converts Leadtools.RasterColor objects from one data type to another.

RasterImageAllocateData Provides data for the Leadtools.Leadtools.RasterImageAllocateCallback callback.

New Members

The following members have been added to existing types in v17:

Member Description
Leadtools.RasterImage(RasterMemoryFlags flags, int width, int height, int bitsPerPixel, RasterByteOrder order, RasterViewPerspective viewPerspective, RasterColor[] palette, byte[] userData, int userDataLength)

Constructs a new Leadtools.RasterImage object using the specified parameters and optional managed memory.

RasterImage.IsLoading

Gets a value that determines whether this Leadtools.RasterImage object is still loading.

RasterImage.LoadCompleted

For internal use by LEADTOOLS

RasterImage.FromDibArray

Creates a new image from the specified Windows device independent bitmap (DIB) stored in a managed array.

RasterImage.ToDibArray

Converts this Leadtools.RasterImage into a Windows device independent bitmap (DIB).

RasterImage.SetRegion

Sets or updates the Leadtools.RasterRegion object that describes this Leadtools.RasterImage current region.

RasterImage.GetRegion

Gets the Leadtools.RasterRegion object that describes this Leadtools.RasterImage current region.

RasterImage.ReplacePage

Replaces an existing page in this Leadtools.RasterImage.

RasterColor.FromKnownColor

Creates a new Leadtools.RasterColor structure from a known color.

RasterImageFormat.Anz

Analyze file format

RasterImageFormat.Ppt

Microsoft Power Point 2003 file format

RasterImageFormat.PptJpeg

Microsoft Power Point 2003 file format with JPEG compression

RasterImageFormat.PptPng

Microsoft Power Point 2003 file format with PNG compression

RasterSupportType.Ccow

Support for LEADTOOLS CCOW toolkit. Available in selected LEADTOOLS products.

RasterExceptionCode

New Color Conversion and PreProcessing engine specific members.

public void RasterNativeBuffer.GetData(long offset, byte[] buffer, int bufferOffset, int bytes)

Copies data from this Leadtools.RasterNativeBuffer object to a byte array.

public void RasterNativeBuffer.SetData(long offset, byte[] buffer, int bufferOffset, int bytes)

Copies data from a byte array into this Leadtools.RasterNativeBuffer object.

RasterUserMatchTable.Buffer

Replaces RasterUserMatchTable.Data

ColorResolutionCommandDataEventArgs.DataArray

Gets the managed buffer containing one or more lines of output image data that the command has already converted.

RasterImageResizeEventArgs.BufferArray

Gets the managed buffer that holds the resized row.

RasterDefaults.SetRasterImageAllocateCallback(Leadtools.RasterImageAllocateCallback) Sets a global callback to be called whenever the toolkit is creating a new Leadtools.RasterImage object.
Leadtools.RasterExceptionCode.RtfCodecMissing RTF codec is missing.
Leadtools.RasterExceptionCode.PdfEngineMissing Leadtools.PdfEngine.dll assembly is not found.
Leadtools.RasterExceptionCode.InvalidFormat Color Conversion - Invalid format.
Leadtools.RasterImage.SetPixel(System.Int32,System.Int32,Leadtools.RasterColor) Changes the color value of the specified pixel.
Leadtools.RasterImage.SetPixel(System.Int32,System.Int32,Leadtools.RasterColor) Returns the color of the specified pixel.
Leadtools.RasterImageFormat.Jpm JPEG 2000 JPM file format
Leadtools.RasterImageFormat.Vff Sun TAAC Bitmap file format
Leadtools.RasterImageFormat.Docx Microsoft Office 2007 Word file format
Leadtools.RasterImageFormat.Xlsx Microsoft Office 2007 Excel file format
Leadtools.RasterImageFormat.Pptx Microsoft Office 2007 PowerPoint file format

Moved Types

The following types have been moved to a new namespace in LEADTOOLS For .NET v17:

New Type Old Type
Leadtools.Drawing.RasterPaintProperties

Leadtools.RasterPaintProperties

Leadtools.Drawing.RasterPaintEngine

Leadtools.RasterPaintEngine

Leadtools.Drawing.RasterPaintDisplayModeFlags

Leadtools.RasterPaintDisplayModeFlags

Leadtools.Drawing.ConvertToImageOptions

Leadtools.ChangeToGdiPlusImageFlags

Leadtools.Drawing.ImageIncompatibleReason

Leadtools.RasterGdiPlusIncompatibleReason

Leadtools.Drawing.RasterImageGdiPlusGraphicsContainer

Leadtools.RasterImageGdiPlusGraphicsContainer

Leadtools.Drawing.Transformer

Leadtools.Transformer

Leadtools.Drawing.RasterPaintCallbacks

Leadtools.RasterPaintCallbacks

Leadtools.Drawing.PaintCallbackDelegate

Leadtools.PaintCallbackDelegate

Leadtools.Drawing.RasterImagePaintCallbackFunction

Leadtools.RasterImagePaintCallbackFunction

Leadtools.Drawing.RasterPaintDibInfo

Leadtools.RasterPaintDibInfo

Leadtools.Drawing.RasterPaintDibInfoFlags

Leadtools.RasterPaintDibInfoFlags

Moved Members

The following members have been moved to a new type or namespace in LEADTOOLS For .NET v17:

New Member Old Member
Leadtools.Drawing.RasterImagePainter.Paint

RasterImage.Paint

Leadtools.Drawing.RasterImagePainter.PaintBuffer

RasterImage.PaintBuffer

Leadtools.Drawing.RasterImagePainter.PaintRegion

RasterImage.PaintRegion

Leadtools.Drawing.RasterImagePainter.PaintRegionBuffer

RasterImage.PaintRegionBuffer

Leadtools.Drawing.RasterImagePainter.PaintCmykPlanes

RasterImage.PaintCmykPlanes

Leadtools.Drawing.RasterImagePainter.PaintOverlay

RasterImage.PaintOverlay

Leadtools.Drawing.RasterImagePainter.FrameRegion

RasterImage.FrameRegion

Leadtools.Drawing.RasterImagePainter.FillRegion

RasterImage.FillRegion

Leadtools.Drawing.RasterImagePainter.GetPaintColors

RasterImage.GetPaintColors

Leadtools.Drawing.RasterImagePainter.GetPaintPalette

RasterImage.GetPaintPalette

Leadtools.Drawing.RasterImagePainter.GetPaintHPalette

RasterImage.GetPaintHPalette

Leadtools.Drawing.RasterPaintProperties.PaintCallbacks

RasterImage.PaintCallbacks

Leadtools.Drawing.RasterImageGdiPlusGraphicsContainer(RasterImage)

RasterImage.CreateGdiPlusGraphics

Leadtools.Drawing.RasterImagePainter.CreateLeadDC

RasterImage.CreateLeadDC

Leadtools.Drawing.RasterImagePainter.DeleteLeadDC

RasterImage.DeleteLeadDC

Leadtools.Drawing.RasterImageConverter.FromHBitmap

RasterImage.FromHBitmap

Leadtools.Drawing.RasterImageConverter.ChangeFromHBitmap

RasterImage.ChangeFromHBitmap

Leadtools.Drawing.RasterImageConverter.ToHBitmap

RasterImage.ToHBitmap

Leadtools.Drawing.RasterImageConverter.ChangeToHBitmap

RasterImage.ChangeToHBitmap

Leadtools.Drawing.RasterImageConverter.ChangeFromEmf

RasterImage.ChangeFromEmf

Leadtools.Drawing.RasterImageConverter.ChangeFromWmf

RasterImage.ChangeFromWmf

Leadtools.Drawing.RasterImageConverter.FromEmf

RasterImage.FromEmf

Leadtools.Drawing.RasterImageConverter.FromWmf

RasterImage.FromWmf

Leadtools.Drawing.RasterImageConverter.ChangeToEmf

RasterImage.ChangeToEmf

Leadtools.Drawing.RasterImageConverter.ChangeToWmf

RasterImage.ChangeToWmf

Leadtools.Drawing.RasterImageConverter.ToEmf

RasterImage.ToEmf

Leadtools.Drawing.RasterImageConverter.ToWmf

RasterImage.ToWmf

Leadtools.Drawing.RasterImageConverter.ConvertFromImage

RasterImage(Image srcImage)

Leadtools.Drawing.RasterImageConverter.ChangeToImage

RasterImage.ChangeToGdiPlusImage

Leadtools.Drawing.RasterImageConverter.ConvertToImage

RasterImage.ConvertToGdiPlusImage

Leadtools.Drawing.RasterImageConverter.MakeCompatible

RasterImage.MakeGdiPlusCompatible

Leadtools.Drawing.RasterImageConverter.TestCompatible

RasterImage.TestGdiPlusCompatible

Leadtools.Drawing.RasterImageConverter.GetNearestBitsPerPixel

RasterImage.GetNearestBitsPerPixel

Leadtools.Drawing.RasterImageConverter.GetNearestPixelFormat

RasterImage.NearestGdiPlusPixelFormat

Leadtools.Drawing.RasterImageConverter.IsValidBitsPerPixel

RasterImage.IsValidBitsPerPixelGdiPlus

Leadtools.Drawing.RasterImagePainter.MaxRegionFrameIndex

RasterImage.MaxRegionFrameIndex

Leadtools.Drawing.RasterRegionConverter.ConvertToRegion

RasterImage.RegionToGdiPlusRegion

Leadtools.Drawing.RasterRegionConverter.AddRegionToRegion

RasterImage.AddGdiRegionToRegion

Leadtools.Drawing.RasterRegionConverter.AddRegionToRegion

RasterImage.AddGdiPlusRegionToRegion

Leadtools.Drawing.RasterRegionConverter.GetGdiRegionData

RasterImage.GetRegionData

Leadtools.Drawing.RasterRegionConverter.AddGdiDataToRegion

RasterImage.AddDataToRegion

Leadtools.Drawing.RasterRegionConverter.GetGdiPlusRegionData

RasterImage.GetGdiPlusRegionData

Leadtools.Drawing.RasterRegionConverter.AddGdiPlusDataToRegion

RasterImage.AddGdiPlusDataToRegion

Leadtools.Drawing.RasterImageConverter.ImagePhysicalSize

RasterImage.ImagePhysicalSize

Leadtools.Drawing.RasterColorConverter.FromColor

RasterColor.FromGdiPlusColor

Leadtools.Drawing.RasterColorConverter.ToColor

RasterColor.ToGdiPlusColor

Leadtools.Drawing.RasterColorConverter.FromColor

RasterColor(Color color)

Leadtools Assembly Changes from Version 16 to Version 16.5

New Classes

The following classes have been added to LEADTOOLS For .NET v16.5:

Type Description
Leadtools.RasterPaintDibInfo.Default Fills the Leadtools.RasterPaintCallbacks.
Leadtools.RasterPaintDibInfo.BitsPerPixel Set or get the default bits per pixel of the data expected by the graphics device.
Leadtools.RasterPaintDibInfo.HighBit Indicates the high bit of the image data (valid only for grayscale 12 or 16-bit data).
Leadtools.RasterPaintDibInfo.LowBit Indicates the low bit of the image data (valid only for grayscale 12 or 16-bit data).
Leadtools.RasterPaintDibInfo.PlaneCount Indicates whether the image data should be interleaved or planar.
Leadtools.RasterPaintDibInfo.Order Indicates the data order (grayscale, BGR, RGB, etc).
Leadtools.RasterPaintDibInfo.Flags Collection of flags indicating the various options for the bitmap.
Leadtools.RasterPaintDibInfo.ViewPerspective Indicates the expected orientation of the image data.
Leadtools.RasterPaintDibInfo.BytesPerline Gets the expected stride (number of bytes per line).
Leadtools.RasterPaintCallbacks The RasterPaintCallbacks class is used to implement custom painting. The Leadtools.RasterImage.PaintCallbacks property contains a list of such classes.
Leadtools.RasterPaintCallbacks.SetCallback Adds a callback to the Leadtools.RasterImage.PaintCallbacks member.

New Members

The following members have been added to existing types in v16.5:

Member Description
Leadtools.RasterImage.GetLookupTable16 Gets the 16-bit lookup table (LUT) of this Leadtools.RasterImage.
Leadtools.RasterPalette.WindowLevelFillLookupTableExt Fills the user-allocated 16-bit LUT with values ranging between the startColor and endColor colors according to the selected LUT type.
Leadtools.RasterImage.PaintCallbacks Gets the list of Leadtools.RasterPaintCallbacks objects containing the custom callbacks.
Leadtools.RasterImage.SetLookupTable16 Sets the 16-bit lookup table (LUT) of this Leadtools.RasterImage.
Leadtools.RasterImage.IsDisposed Gets a value indicating whether the Leadtools.RasterImage object has been disposed of.
Leadtools.RasterImage.SetUserData Sets the data for the image to the specified unmanaged memory buffer.
Leadtools.RasterImage.WindowLevelExt Sets up the paint or paint and image processing methods' window leveling options for this Leadtools.RasterImage.
Leadtools.RasterBufferConverter.Convert Converts data in the specified buffer to the specified bits per pixel and color order.
Leadtools.RasterPalette.WindowLevelFillLookupTableExt Fills the user-allocated 16-bit LUT with values ranging between the startColor and endColor colors according to the selected LUT type.
Leadtools.RasterImageFormat.AfpIm1 AFP Format IOCA MMR Compressed
Leadtools.RasterImageFormat.Tdb Windows XP Thumbnail Cache
Leadtools.RasterImageFormat.Xls Microsoft Excel 2003 file format
Leadtools.RasterImageFormat.TdbVista Windows Vista Thumbnail Cache
Leadtools.RasterImageFormat.Snp Microsoft Access Report Snapshot
Leadtools.RasterSupportType.OcrProfessionalAsian Support for the OCR Professional engine to recognize Asian text. This license is in addition to the cost of the OCR Plugin or Document Imaging.
Leadtools.RasterSupportType.MedicalServer Support for PACS (DICOM Server) functionality. Available in selected LEADTOOLS products.
Leadtools.RasterSupportType.PrintDriver Support for LEADTOOLS Printer Driver functionality. Available in selected LEADTOOLS products.
Leadtools.RasterSupportType.DocumentWriters Support for LEADTOOLS Document Writer functionality. Available in selected LEADTOOLS products.
Leadtools.RasterSupportType.LeadOmr Support for the OMR features provided by the LEADTOOLS OMR engine. OMR add-on to Document and Medical Imaging toolkits.
Leadtools.RasterSupportType.MediaWriter Support for Data DVD Writing. Available in selected LEADTOOLS products.
Leadtools.RasterSupportType.DocumentWritersPdf Support for PDF output when using the LEADTOOLS Document Writer functionality. Available in selected LEADTOOLS products.
Leadtools.RasterSupportType.Medical3d Support for Medical 3D functionality. Available in selected LEADTOOLS products.
Leadtools.RasterExceptionCode.ChannelMissing The PSD Channel is missing.
Leadtools.RasterExceptionCode.RawCodecMissing RAW codec is missing.
Leadtools.RasterExceptionCode.BmpCodecMissing BMP codec is missing.
Leadtools.RasterExceptionCode.PngCodecMissing PNG codec is needed to use this method.
Leadtools.RasterExceptionCode.FileCreate Error creating file.
Leadtools.RasterExceptionCode.DocumentWritersPdfNotEnabled Document Writer PDF support is locked.
Leadtools.RasterExceptionCode.LeadPrinterNotEnabled LEADTOOLS Printer Driver capability is required to use this function.
Leadtools.RasterExceptionCode.MediaWriterNotEnabled Media writer capability is required to use this method.
Leadtools.RasterExceptionCode.DocumentWritersNotEnabled Document Writers capability is required to use this method.
Leadtools.RasterExceptionCode.InvalidDib The DIB is invalid.
Leadtools.RasterExceptionCode.InvalidLutLength The LUT length is invalid. LUT Length should be 1 << (Leadtools.RasterImage.HighBit - Leadtools.RasterImage.LowBit + 1)
Leadtools.RasterExceptionCode.ClrCodecMissing Leadtools.ColorConversion.dll assembly is not loaded.
Leadtools.ImageProcessing.CloneCommand.AllPages Gets or sets a value that indicates whether to clone all the pages if the source image is multi-page.
Leadtools.ImageProcessing.CloneCommand.SourceImage Gets the source image used in this CloneCommand.
Leadtools.RasterImage.CreateThumbnail Creates a thumbnail image of this Leadtools.RasterImage.
Leadtools.RasterImage.GetPaintLookupTable16 Gets the 16-bit lookup table (LUT) of this Leadtools.RasterImage.
Leadtools.RasterImage.GetGdiPlusRegionData Gets the GDI+ data that describes the image region.
Leadtools.RasterImage.AddGdiPlusDataToRegion Creates or updates the image region using the specified GDI+ region data.
Leadtools.ImageProcessing.ColorResolutionCommand.InitAlpha Indicates whether to initialize the alpha channel values when converting to 32 or 64-bit images.

New Events

The following Events have been added to LEADTOOLS for .NET v16.5:

Event Description
Leadtools.RasterImage.Disposed Occurs when the image is disposed by a call to the Leadtools.RasterImage.Dispose method.

New Structures

The following Structures have been added to LEADTOOLS for .NET v16.5:

Structure Description
Leadtools.RasterColor16.MaximumComponent Maximum value for the alpha, red, green, blue component.
Leadtools.RasterColor16.MinimumComponent Maximum value for the alpha, red, green, blue component.
Leadtools.RasterColor16.B Gets or sets the blue component of this Leadtools.RasterColor16 structure.
Leadtools.RasterColor16.G Gets or sets the green component of this Leadtools.RasterColor16 structure.
Leadtools.RasterColor16.R Gets or sets the red component of this Leadtools.RasterColor16 structure.
Leadtools.RasterColor16.ToString Overridden. Converts this Leadtools.RasterColor16 structure to a human-readable string.

New Delegates

The following Delegates have been added to LEADTOOLS for .NET v16.5:

Delegate Description
Leadtools.PaintCallbackDelegate The prototype for all the Leadtools.RasterPaintCallbacks.

New Enumerations

The following enumerations have been added in LEADTOOLS for .NET v16.5:

Enumeration Description
Leadtools.RasterImagePaintCallbackFunction Used to identify the callbacks in a Leadtools.RasterPaintCallbacks class.
Leadtools.RasterPaintDibInfoFlags Collection of flags indicating the various options for the bitmap.

Changed Members

The following Members have been changed in LEADTOOLS for .NET v16.5:

Member Changes in v16.5
Leadtools.RasterImageResize.ResizeBuffer Parameter byte changed to Int64.
Leadtools.RasterImage(RasterMemoryFlags flags,int width,int height,int bitsPerPixel,RasterByteOrder order,RasterViewPerspective viewPerspective,RasterColor[] palette,IntPtr userData,long userDataLength) Parameter userDataLength changed to 64 bit signed integer.
Leadtools.RasterImage.SetUserData Parameter size changed to Int64.
Leadtools.RasterNativeBuffer.Length Method return type changed to Int64.
Leadtools.RasterImage.CalculateRegionArea Method return type changed to Int64.
Leadtools.RasterImage.DataSize Method return type changed to Int64.
Leadtools.RasterMemoryThreshold.MaximumConventionalSize Method return type changed to Int64.

Deprecated Types

The following types are being deprecated as of LEADTOOLS for .NET v16.5:

Type Description
RasterImageFormat.Sid Deprecated - No longer supported. MrSid Format (SID)

Leadtools Assembly Changes from Version 15 to Version 16

New Classes

The following classes have been added to LEADTOOLS For .NET v16:

Type Description
RasterImageAnimator Creates an animation playback that references a multi-frame image and the target image.

Type Description
Leadtools.RasterPaintSizeMode enumeration Determines how to fit the image in the destination rectangle
RasterPaintSizeMode enumeration Determines how to align the image in the destination rectangle
RasterCurve class Defines a curve
RasterCurveType enumeration Indicates the type of curve defined
RasterCurveClose enumeration Indicates how the curve is closed
RasterMemoryThreshold structure Holds the memory restrictions used when allocating new RasterImage objects
RasterDefaults class Specifies the default extra values used when creating RasterImage objects.

Leadtools Assembly Changes from Version 14.5 to Version 15

New Members

The following members have been added to existing types in v15:

Member Description
RasterImage.SetUserData Sets the data for the image to the specified unmanaged memory buffer
RasterImage.AddGdiRegionToRegion Creates or updates the image region by adding the specified Windows region handle
RasterImage.AddCurveToRegion Creates or updates the image region by adding a curved region
RasterImage.IsSuperCompressed Determines if the memory allocated for the image data is super-compressed memory
RasterImage.IsGlobalMemory Determines if the memory allocated for the image data is a global Windows handle
RasterImage.Access Provides exclusive access to the image data contained in this Leadtools.RasterImage
RasterImage.Release Releases memory locked with Access back to the system
RasterImage.CopyData Updates the data of this Leadtools.RasterImage
RasterImage.GetPaintHPalette Returns a Windows palette handle corresponding to this Leadtools.RasterImage if painted on the given device context
RasterImage.CalculatePaintModeRectangle Adjusts the given rectangle based on the given paint mode properties
RasterImage.ChangeFromDib Changes a Windows device independent bitmap (DIB) to a LEAD Leadtools.RasterImage object.
RasterImage.ChangeFromEmf Changed in Version 17 Changes a Windows enhanced metafile (EMF) into a LEAD Leadtools.RasterImage object and, if successful, frees the enhanced metafile.
RasterImage.ChangeFromHBitmap Overloaded. Changes a Windows device dependent bitmap (DDB) to a LEAD Leadtools.RasterImage object.
RasterImage.ChangeFromWmf Changes a Windows metafile (WMF) into a LEAD Leadtools.RasterImage object and, if successful, frees the metafile.
RasterImage.ChangeToDib Changes a LEAD Leadtools.RasterImage object to a Windows Device Independent Bitmap (DIB).
RasterImage.ChangeToEmf Changes a LEAD Leadtools.RasterImage object into a Windows enhanced metafile (EMF) and, if successful, frees the image data.
RasterImage.ChangeToHBitmap Changes a LEAD Leadtools.RasterImage object to a Windows Device Dependent Bitmap (DDB).
RasterImage.ChangeToWmf Changes a LEAD Leadtools.RasterImage object into a Windows metafile (WMF) and, if successful, frees the image data.
RasterImage.FromEmf Converts an enhanced Windows metafile (EMF) into a LEAD Leadtools.RasterImage object.
RasterImage.FromWmf Converts a Windows metafile (WMF) into a LEAD RasterImage object.
RasterImage.ToEmf Converts a LEAD Leadtools.RasterImage object into a Windows enhanced metafile (EMF).
RasterImage.ToWmf Converts a LEAD Leadtools.RasterImage object into a Windows metafile (WMF).
RasterExceptionCode.SuccessPartialFailure Method called recursively. A least one call was successful, but some failed
RasterExceptionCode.SuccessDelete Successful. Delete the file before quitting
RasterExceptionCode.InvalidPixBufferDimensions Internal error - call LEAD
RasterExceptionCode.Internal Internal error
RasterExceptionCode.DxfCodecMissing The DXF codec is needed to use this function
RasterExceptionCode.BufferTooSmall The buffer size is too small
RasterExceptionCode.SuccessRetry Successful. Retry doing the failed op
RasterExceptionCode.NitfLocked NITF support is locked
RasterExceptionCode.InvalidTileDimension Internal error - call LEAD
RasterExceptionCode.VectorKernelMissing Vector kernel DLL is needed to use this function
RasterExceptionCode.Gray32Unsupported 32-bit Grayscale images not supported
RasterExceptionCode.CompactAborted The compact method was finished without copying all the pages
RasterExceptionCode.ExtensionsMissing This file does not contain Exif extensions
RasterExceptionCode.SuccessAbort Method successful. You can quit now
RasterExceptionCode.Jb2CodecMissing JB2 (JBIG2) codec is needed to use this function
RasterCompression.Super Image data is compressed in memory using LEAD proprietary compression
RasterConvertBufferFlags.AlphaInit Initialize the alpha values when destination buffer is 32 or 64 bits/pxiel
RasterHsvColor.Empty Represents an RasterHsvColor that is a null reference (Nothing in Visual Basic).
RasterImageChangedFlags.UsePaintLookupTable Use of paint palette lookup table (LUT) changed
RasterImageChangedFlags.Format Format changed
RasterMetadataFlags.All All (Comments, Tags, Markers and GeoKeys)
RasterCommentMetadataType.PatientSex Patient sex (DICOM)
RasterCommentMetadataType.StudyInstance Study instance ID (DICOM)
RasterCommentMetadataType.PatientName Patient name (DICOM)
RasterCommentMetadataType.PatientId Patient ID (DICOM)
RasterCommentMetadataType.SeriesId Series ID (DICOM)
RasterCommentMetadataType.SeriesModality Series modality (DICOM)
RasterCommentMetadataType.StudyTime Study time (DICOM)
RasterCommentMetadataType.StudyReferringPhysician Referring physician (DICOM)
RasterCommentMetadataType.StudyDate Study date (DICOM)
RasterCommentMetadataType.PatientBirthdate Patient birth date (DICOM)
RasterCommentMetadataType.SeriesNumber Series number (DICOM)
CombineFastCommandFlags.None No change
RasterSupportType.Mobile Support for the Compact Framework mobile features
RasterSupportType.Ntif Support for NITF plug in. This feature is not available in LEADTOOLS for .NET
RasterImageFormat.TifxJpeg Xerox Internet Fax File Format
RasterImageFormat.TifxJbigT43Gs Xerox Internet Fax File Format
RasterImageFormat.TifxFaxG31D Xerox Internet Fax File Format
RasterImageFormat.TifxJbig Xerox Internet Fax File Format
RasterImageFormat.TifxFaxG32D Xerox Internet Fax File Format
RasterImageFormat.TifxJbigT43ItuLab Xerox Internet Fax File Format
RasterImageFormat.TifxJbigT43 Xerox Internet Fax File Format
RasterImageFormat.TifxFaxG4 Xerox Internet Fax File Format
RasterImageFormat.Pct Macintosh Pict Format (PCT)
RasterImageFormat.Fpx Kodak Formats (PCD and FPX)
RasterImageFormat.FpxSingleColor Kodak Formats (PCD and FPX)
RasterImageFormat.FpxJpegQFactor Kodak Formats (PCD and FPX)
RasterImageFormat.FpxJpeg Kodak Formats (PCD and FPX)
RasterImageFormat.DicomJ2kGray DICOM Format (DIC)
RasterImageFormat.DicomJ2kColor DICOM Format (DIC)
RasterImageFormat.DicomRleGray DICOM Format (DIC)
RasterImageFormat.DicomRleColor DICOM Format (DIC)
RasterImageFormat.DicomJpegColor DICOM Format (DIC)
RasterImageFormat.DicomGray DICOM Format (DIC)
RasterImageFormat.DicomColor DICOM Format (DIC)
RasterImageFormat.DicomJpegGray DICOM Format (DIC)
RasterImageFormat.Wmz Compressed Windows Metafile Format (WMZ)
RasterImageFormat.Sid Deprecated - No longer supported. MrSid Format (SID)

Event Handlers Delegates

LEADTOOLS For .NET Class Library uses the new .NET 2.0 generic event handler delegate module.

The following shows how to subscribe to an event in LEADTOOLS v.14.5 and LEADTOOLS v.15:

Version 14.5 Version 15
            
             // Subscribe to the Changed event of RasterImage
             myRasterImage.Changed += new RasterImageChangedEventHandler(myRasterImage_Changed)
             void myRasterImage_Changed(object sender, RasterImageChangedEventArgs e)
             {
                // handle the event
             }
             

          
            
             // Subscribe to the Changed event of RasterImage
             myRasterImage.Changed += new EventHandler<RasterImageChangedEventArgs>(myRasterImage_Changed)
             void myRasterImage_Changed(object sender, RasterImageChangedEventArgs e)
             {
                // handle the event
             }
             

          

The following table lists the delegate types that have been removed in v.15:

Version 14.5 Version 15
RasterImageChangedEventHandler EventHandler<Leadtools.RasterImageChangedEventArgs >
RasterImageResizeEventHandler EventHandler<Leadtools.RasterImageResizeEventArgs >
RasterCommandProcessorProgressEventHandler EventHandler<Leadtools.ImageProcessing.RasterCommandProcessorProgressEventArgs >
RasterCommandProgressEventHandler EventHandler<Leadtools.ImageProcessing.RasterCommandProgressEventArgs >
ColorResolutionCommandDataEventHandler EventHandler<Leadtools.ImageProcessing.ColorResolutionCommandDataEventArgs >

Generic Collections

All collection types use the new .NET 2.0 generic collection module. The base RasterCollection class in v.14.5 has been replaced with a Generic RasterCollection class from which all other collection classes in v.15 derive.

The following table lists the collection classes that have been removed in v.15:

Version 14.5 Version 15
RasterCollection RasterCollection<T>
RasterCollectionEventHandler EventHandler< RasterCollectionEventArgs>
RasterCollectionEventArgs RasterCollectionEventArgs<T>
RasterImageCollection RasterCollection<RasterImage >
RasterTagMetadataCollection RasterCollection<RasterTagMetadata >
RasterCommentMetadataCollection RasterCollection<RasterCommentMetadata >
RasterMarkerMetadataCollection RasterCollection<RasterMarkerMetadata >
RasterCommandCollection RasterCollection<>
RasterPointCollection RasterCollection<Point >

Managed Memory Images

Support for creating Leadtools.RasterImage objects with managed data has been removed. The data is now converted to an internal undefined memory allocated by LEADTOOLS. All "Managed" and "Unmanaged" memory models have been renamed "Conventional".

Unmanaged Memory Support

All methods that accept a managed array of primitive types have been overloaded with a version that accepts a native unmanaged memory buffer (System.IntPtr). For example, the RasterImage.GetRow method has the following overloads now:

Method Description
             int GetRow(int row, byte[] buffer, int bufferIndex, int bufferCount)
                                     
Retrieves a row or more of image data from this into a managed memory buffer
             int GetRow(int row, IntPtr buffer, int bufferCount)
                                     
Retrieves a row or more of image data from this into un unmanaged memory buffer

The following table lists all the methods that have been overloaded with a version that accepts a pointer to unmanaged memory:

Class Method
Leadtools.RasterImage RasterImage.PaintBuffer
Leadtools.RasterImage PaintRegionBuffer
Leadtools.RasterImage GetRow
Leadtools.RasterImage SetRow
Leadtools.RasterImage GetRowColumn
Leadtools.RasterImage SetRowColumn
Leadtools.RasterImage GetRowCompressed
Leadtools.RasterImage SetRowCompressed
Leadtools.RasterImage SetPixelData
Leadtools.RasterImage GetPixelData
Leadtools.RasterImage DitherLine
Leadtools.RasterImage AddDataToRegion
Leadtools.RasterRleCompressor CompressRow
Leadtools.RasterRleCompressor CompressRows
Leadtools.RasterRleCompressor ExpandRow
Leadtools.RasterRleCompressor ExpandRows
Leadtools.RasterBufferConverter Convert
Leadtools.RasterBufferResize ResizeBuffer
Leadtools.RasterImageResize ResizeBuffer
Leadtools.RasterColorSpace Convert8
Leadtools.RasterColorSpace Convert16

Windows GDI Support

Some of the methods that accepts a .NET System.Drawing.Graphics object have been overloaded with a version that accepts a Windows GDI handle. The following table lists all these methods:

Class Method
Leadtools.RasterImage RasterImage.Paint
Leadtools.RasterImage RasterImage.PaintBuffer
Leadtools.RasterImage RasterImage.PaintRegionBuffer
Leadtools.RasterImage RasterImage.PaintRegion
Leadtools.RasterImage RasterImage.PaintCmykPlanes
Leadtools.RasterImage RasterImage.PaintOverlay
Leadtools.RasterImage RasterImage.FrameRegion
Leadtools.RasterImage RasterImage.FillRegion

IRasterImage Interface

The IRasterImage interface has been removed. You should use the Leadtools.RasterImage class instead.

Removed Types

The following types have been removed in v.15:

Type Description
IRasterImage interface Use Leadtools.RasterImage instead
RasterImageCreateParameters structure Use Leadtools.RasterImage constructor with Leadtools.RasterDefaults class instead
UnmanagedMemoryStream class This class has been removed
DrawingHelper class This class has been removed

Renamed Types

The following types have been renamed in v.15:

Version 14.5 Version 15
RasterGrayScaleMode enumeration Leadtools.RasterGrayscaleMode
RasterWindowLevelFlags enumeration Leadtools.RasterWindowLevelMode
GrayScaleCommand class GrayscaleCommand
RasterBuffer class Leadtools.RasterNativeBuffer

Removed Members

The following members have been removed in v.15:

Member Description
RasterImage.InternalImage Internal use member removed
RasterImage.GetInternalImageByIndex Internal use member removed
RasterImage.GetInternalImageCollection Internal use member removed
RasterImage.SetInternalFlag Internal use member removed
RasterImage.IsAllocated Internal use member removed
RasterImage.CreateFromInternalData Internal use member removed
RasterImage.ToggleCompression Use RasterImage.ChangeCompression instead
RasterPaintProperties.UseDpi Internal use member removed
RasterPaintProperties.UseClipWithGdiEngine Internal use member removed
RasterExceptionCode.OpeningProfile Internal use member removed
RasterExceptionCode.CrcCheck Internal use member removed
RasterExceptionCode.UnequalTables Internal use member removed
RasterExceptionCode.UnsupportedConversion Internal use member removed
RasterExceptionCode.PrematureEol Internal use member removed
RasterExceptionCode.VideoType Internal use member removed
RasterExceptionCode.InvalidSegmentData Internal use member removed
RasterExceptionCode.G3CodeEof Internal use member removed
RasterExceptionCode.BadTiffTagValue Internal use member removed
RasterExceptionCode.MrcNotAllocated Internal use member removed
RasterExceptionCode.ActionIncomplete Internal use member removed
RasterExceptionCode.PrematureEof Internal use member removed
RasterExceptionCode.EntensionsMissing Internal use member removed
RasterExceptionCode.InvalidString Internal use member removed
RasterExceptionCode.TruncateHeight Internal use member removed
RasterExceptionCode.CuNotSupported Internal use member removed
RasterExceptionCode.PdfBadInitializationFiles Internal use member removed
RasterExceptionCode.NoProfile Internal use member removed
RasterExceptionCode.UndoDisabled Internal use member removed
RasterExceptionCode.IccUnknownTagAndType Internal use member removed
RasterExceptionCode.TiffCommandNotAllowed Internal use member removed
RasterExceptionCode.InvalidColorProfile Internal use member removed
RasterExceptionCode.PdfInvalidPassword Internal use member removed
RasterExceptionCode.DecodingProfile Internal use member removed
RasterExceptionCode.CorruptProfile Internal use member removed
RasterExceptionCode.TruncateWidthAndHeight Internal use member removed
RasterExceptionCode.Printer Internal use member removed
RasterExceptionCode.InvalidPixelBufferDimensions Internal use member removed
RasterExceptionCode.PaintNotEnabled Internal use member removed
RasterExceptionCode.IccImageNotSupported Internal use member removed
RasterExceptionCode.UndoStackEmpty Internal use member removed
RasterExceptionCode.PdfJpegNotEnabled Internal use member removed
RasterExceptionCode.InvalidVariantType Internal use member removed
RasterExceptionCode.G3CodeEol Internal use member removed
RasterExceptionCode.IccUnknownTag Internal use member removed
RasterExceptionCode.PdfFontsDirectoryNotFound Internal use member removed
RasterExceptionCode.InvalidSegmentHandle Internal use member removed
RasterExceptionCode.InternetNotEnabled Internal use member removed
RasterExceptionCode.PdfCannotEditFile Internal use member removed
RasterExceptionCode.TruncateWidth Internal use member removed
RasterExceptionCode.TargaInstall Internal use member removed
RasterExceptionCode.InvalidTileDimensions Internal use member removed
RasterExceptionCode.InvalidMinimumSegment Internal use member removed
RasterExceptionCode.UnsupportedMethod Internal use member removed
RasterExceptionCode.AnnotationLocked Internal use member removed
RasterExceptionCode.G3CodeInvalid Internal use member removed
RasterExceptionCode.IccUnknownType Internal use member removed
RasterExceptionCode.NotMultiPageTiffFile Internal use member removed
RasterExceptionCode.UncompleteEof Internal use member removed
RasterExceptionCode.PdFInvalidDocumentStructuringComments Internal use member removed
RasterExceptionCode.BrowseFailed Internal use member removed
RasterExceptionCode.Not256Color Internal use member removed
RasterExceptionCode.InvalidLayerData Internal use member removed
RasterExceptionCode.InvalidTargetFile Internal use member removed
RasterExceptionCode.ColorConversionDllNotLoaded Internal use member removed
RasterExceptionCode.PdfBadContent Internal use member removed
RasterExceptionCode.YOrigin Internal use member removed
RasterExceptionCode.PdfFileEncrypted Internal use member removed
RasterExceptionCode.NoNonplanarVerticalSubsamplingSupported Internal use member removed
RasterExceptionCode.InvalidDispatch Internal use member removed
RasterExceptionCode.SegmentationFailure Internal use member removed
RasterExceptionCode.MrcInvalidPage Internal use member removed
RasterExceptionCode.HeaderDataFailure Internal use member removed
RasterExceptionCode.PlanarAlignmentNotSupported Internal use member removed
RasterExceptionCode.InvalidFormat Internal use member removed
RasterExceptionCode.XOrigin Internal use member removed
RasterExceptionCode.FixedPaletteData Internal use member removed
RasterExceptionCode.InvalidSourceFile Internal use member removed
RasterExceptionCode.NoUndoStack Internal use member removed
RasterExceptionCode.DeleteTiffFileNotAllowed Internal use member removed
RasterExceptionCode.InvalidIccProfile Internal use member removed
RasterExceptionCode.PdfFaxNotEnabled Internal use member removed
RasterExceptionCode.LoadFontData Internal use member removed
RasterExceptionCode.UvNotMultiples Internal use member removed
RasterRegionXForm.InternalXForm Internal use member removed
RasterCommand.InitializeStatusCallback Internal use member removed
RasterException.SetCodeMessage Internal use member removed
RasterException.CheckErrorCode Internal use member removed
RasterSupportType.Pdf Use RasterSupportType.PdfRead or RasterSupportType.PdfSave instead
RasterSupportType.TifLzw LZW compression support has been unlocked in v.15
RasterSupportType.GifLzw LZW compression support has been unlocked in v.15
RasterPaletteWindowLevelFlags.Dicom Use the other flags of Leadtools.RasterPaletteWindowLevelFlags instead.
RasterPaletteWindowLevelFlags.Unsigned Use the other flags of Leadtools.RasterPaletteWindowLevelFlags instead.

Renamed Members

The following members have been renamed in v.15:

Version 14.5 Version 15
RasterExceptionCode.InvalidAcCodeTable RasterExceptionCode.InvalidACCodeTable
RasterExceptionCode.TooManyDcCodeTables RasterExceptionCode.TooManyDCCodeTables
RasterExceptionCode.InvalidDcCodeTable RasterExceptionCode.InvalidDCCodeTable
RasterExceptionCode.TooManyAcCodeTables RasterExceptionCode.TooManyACCodeTables
RasterExceptionCode.EextensionsMissing RasterExceptionCode.ExtensionsMissing
RasterExceptionCode.CuBusy RasterExceptionCode.CUBusy
RasterExceptionCode.CuFailure RasterExceptionCode.CUFailure
RasterExceptionCode.InvalidAcCodeTable RasterExceptionCode.InvalidACCodeTable
RasterImageUnderlayFlags.Tile RasterImageUnderlayFlags.None
RasterConvertBufferFlags.DestUseBits RasterConvertBufferFlags.DestinationUseBits
RasterConvertBufferFlags.DestGray RasterConvertBufferFlags.DestinationGray
RasterConvertBufferFlags.SrcUseBits RasterConvertBufferFlags.SourceUseBits
RasterConvertBufferFlags.SrcGray RasterConvertBufferFlags.SourceGray
RasterImageInformationFlags.ManagedTiles RasterImageInformationFlags.ConventionalTiles
RasterSizeFlags.Normal RasterSizeFlags.None
RasterImageChangedFlags.UseLookupTablePalette UseLookupTablePalette.UseLookupTable
RasterCommentMetadataType.GpsDestLongitudeRef RasterCommentMetadataType.GpsDestinationLongitudeRef
RasterCommentMetadataType.FocalLengthin35MmFilm RasterCommentMetadataType.FocalLengthIn35MMFilm
RasterCommentMetadataType.GpsDestLongitude RasterCommentMetadataType.GpsDestinationLongitude
RasterCommentMetadataType.GpsDestBearingRef RasterCommentMetadataType.GpsDestinationBearingRef
RasterCommentMetadataType.GpsTimeStamp RasterCommentMetadataType.GpsTimestamp
RasterCommentMetadataType.OptoelectricCoefficient RasterCommentMetadataType.OptoElectricCoefficient
RasterCommentMetadataType.GpsDestLatitudeRef RasterCommentMetadataType.GpsDestinationLatitudeRef
RasterCommentMetadataType.GpsDestLatitude RasterCommentMetadataType.GpsDestinationLatitude
RasterCommentMetadataType.GpsDestDistance RasterCommentMetadataType.GpsDestinationDistance
RasterCommentMetadataType.GpsDestDistanceRef RasterCommentMetadataType.GpsDestinationDistanceRef
RasterCommentMetadataType.SubsecTimeOriginal RasterCommentMetadataType.SubSecTimeOriginal
RasterCommentMetadataType.GpsDestBearing RasterCommentMetadataType.GpsDestinationBearing
RasterCommentMetadataType.SubsecTimeDigitized RasterCommentMetadataType.SubSecTimeDigitized
RasterCommentMetadataType.SubsecTime RasterCommentMetadataType.SubSecTime
RasterSupportType.BarcodesQrWrite RasterSupportType.BarcodesQRWrite
RasterSupportType.Barcodes2dWrite RasterSupportType.BarcodesQRWrite
RasterSupportType.Barcodes1dSilver RasterSupportType.Barcodes1DSilver
RasterSupportType.Barcodes1d RasterSupportType.Barcodes1D
RasterSupportType.BarcodesDatamatrixRead RasterSupportType.BarcodesDataMatrixRead
RasterSupportType.BarcodesDatamatrixWrite RasterSupportType.BarcodesDataMatrixWrite
RasterSupportType.BarcodesQrRead RasterSupportType.BarcodesQRRead
RasterSupportType.Barcodes2dRead RasterSupportType.Barcodes2DRead
RasterImageMemoryInformation.ManagedTiles RasterImageMemoryInformation.ConventionalTiles
RasterOverlayAttributes.ROIArea RasterOverlayAttributes.RoiArea
RasterOverlayAttributes.ROIMean RasterOverlayAttributes.RoiMean
RasterOverlayAttributes.ROIStandardDeviation RasterOverlayAttributes.RoiStandardDeviation
RasterOverlayAttributes.NumFramesInOverlay RasterOverlayAttributes.FramesInOverlay
RasterImageFormat.CcittGroup4 RasterImageFormat.CcittGroup4
RasterImageFormat.Ccitt RasterImageFormat.Ccitt
RasterImageFormat.CcittGroup31Dim RasterImageFormat.CcittGroup31Dim
RasterImageFormat.CcittGroup32Dim RasterImageFormat.CcittGroup32Dim
RasterImageFormat.PostScript RasterImageFormat.Postscript
RasterImageFormat.EpsPostScript RasterImageFormat.EpsPostscript
RasterImageFormat.JpegLab444 RasterImageFormat.JpegLab
CombineFastCommandFlags.OperationAnd CombineFastCommandFlags.None
CombineFastCommandFlags.ResultNop CombineFastCommandFlags.None
CombineFastCommandFlags.SourceNop CombineFastCommandFlags.None
CombineFastCommandFlags.DestinationNop CombineFastCommandFlags.None
RasterImage.IsManagedMemory RasterImage.IsConventionalMemory
RasterImage.IsUnmanagedMemory RasterImage.IsConventionalMemory
RasterImage.IsSigned RasterImage.Signed
RasterImage.GrayScaleMode RasterImage.GrayscaleMode
RasterImage.SetOverlayAttributes RasterImage.UpdateOverlayAttributes
RasterImage.FromHbitmap RasterImage.FromHBitmap Changed in Version 17
RasterImage.ToHbitmap RasterImage.ToHBitmap
RasterMemoryFlags.Managed RasterMemoryFlags.Conventional
RasterMemoryFlags.Unmanaged RasterMemoryFlags.Conventional

Properties Changed into Methods

The following properties have changed into methods in v.15:

Version 14.5 Version 15
RasterImage.Palette RasterImage.GetPalette and RasterImage.SetPalette
RasterImage.LookupPalette RasterImage.GetLookupTable and RasterImage.SetLookupTable
RasterImage.PaintLookupTable RasterImage.GetPaintLookupTable and RasterImage.SetPaintLookupTable
RasterPalette.Netscape RasterPalette.Netscape
RasterCommentMetadata.Data RasterCommentMetadata.GetData and RasterCommentMetadata.SetData
RasterMarkerMetadata.Data RasterMarkerMetadata.GetData and RasterMarkerMetadata.SetData
ColorResolutionCommand.Palette ColorResolutionCommand.GetPalette and ColorResolutionCommand.SetPalette
RasterTagMetadata.Data RasterTagMetadata.GetData and RasterTagMetadata.SetData
CombineWarpCommand.DestinationPoints CombineWarpCommand.GetDestinationPoints and CombineWarpCommand.SetDestinationPoints

Methods Changed into Properties

The following methods have changed into properties in v.15:

Version 14.5 Version 15
RasterImage.GetOverlayCount RasterImage.OverlayCount

Types Moved into Different Namespace

The following types have been moved into a different namespace:

Version 14.5 Version 15
Leadtools.Helpers.Transformer Leadtools.Transformer
Leadtools.RasterUserMatchTable Leadtools.ImageProcessing.RasterUserMatchTable