New Types
The following types have been added to LEADTOOLS For .NET v15:
Type | Description |
---|---|
RasterPaintSizeMode enumeration | Determines how to fit the image in the destination rectangle |
RasterPaintAlignMode 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 | Specifes the default extra values used when creating RasterImage objects. |
New Members
The following members have been added to existing types in v15:
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 |
---|---|
|
|
The following table lists the delegate types that have been removed in v.15:
Version 14.5 | Version 15 |
---|---|
RasterImageChangedEventHandler | |
RasterImageResizeEventHandler | |
RasterCommandProcessorProgressEventHandler | |
RasterCommandProgressEventHandler | |
ColorResolutionCommandDataEventHandler |
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 that all other collection classes in v.15 derive from.
The following table lists the collection classes that has been removed in v.15:
Version 14.5 | Version 15 |
---|---|
RasterCollection | RasterCollection<T> |
RasterCollectionEventHandler | |
RasterCollectionEventArgs | RasterCollectionEventArgs<T> |
RasterImageCollection | RasterCollection<RasterImage> |
RasterTagMetadataCollection | RasterCollection<RasterTagMetadata> |
RasterCommentMetadataCollection | RasterCollection<RasterCommentMetadata> |
RasterMarkerMetadataCollection | RasterCollection<RasterMarkerMetadata> |
RasterCommandCollection | RasterCollection<RasterCommand> |
RasterPointCollection | RasterCollection< |
Managed Memory Images
Support for creating 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 (
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:
Windows GDI Support
Some of the methods that accepts a .NET
Class | Method |
---|---|
RasterImage | Paint |
RasterImage | PaintBuffer |
RasterImage | PaintRegionBuffer |
RasterImage | PaintRegion |
RasterImage | PaintCmykPlanes |
RasterImage | PaintOverlay |
RasterImage | FrameRegion |
RasterImage | FillRegion |
IRasterImage Interface
The IRasterImage interface has been removed. You should use the RasterImage class instead.
Removed Types
The following types have been removed in v.15:
Type | Description |
---|---|
IRasterImage interface | Use RasterImage instead |
RasterImageCreateParameters structure | Use RasterImage constructor with 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 | RasterGrayscaleMode |
RasterWindowLevelFlags enumeration | RasterWindowLevelMode |
GrayScaleCommand class | GrayscaleCommand |
RasterBuffer class | 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 RasterPaletteWindowLevelFlags instead. |
RasterPaletteWindowLevelFlags.Unsigned | Use the other flags of 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.TifCcittGroup4 | RasterImageFormat.CcittGroup4 |
RasterImageFormat.TifCcitt | RasterImageFormat.Ccitt |
RasterImageFormat.TifCcittGroup31Dim | RasterImageFormat.CcittGroup31Dim |
RasterImageFormat.TifCcittGroup32Dim | 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 |
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 |