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

Version 16.5 changes

Version 16 changes

Version 15 changes

Leadtools.Twain Assembly Changes from Version 16 to Version 16.5

New Members

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

MemberDescription
Leadtools.Twain.TwainSession.Startup2Initializes the TWAIN session.
Leadtools.Twain.TwainSession.SaveCustomDSDataSaves the custom data source data to a file.
Leadtools.Twain.TwainSession.UpdateCustomDSDataUpdate the custom data source.

New Enumerations

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

EnumerationDescription
Leadtools.Twain.TwainLanguage The TwainLanguage enumerated type represents the possible values to be used in Startup2.
Leadtools.Twain.TwainCapabilityType Indicates the capability that is being retrieved or set.
Leadtools.Twain.TwainCountry The TwainCountry enumerated type represents the possible values to be used in Startup2.
Leadtools.Twain.TwainConditionCode The condition code constants for retrieving the extended image information.
Leadtools.Twain.TwainExtendedImage The extended image information ID constants.
Leadtools.Twain.TwainCapabilityValue
Leadtools.Twain.TwainExceptionCode Used as a value for TwainException.Code property.

Leadtools.Twain Assembly Changes from Version 15 to Version 16

Version 16 has not changed from Version 15

Leadtools.Twain Assembly Changes from Version 14.5 to Version 15

New Types

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

TypeDescription
TwainColorSchemeRepresents color scheme for Twain.
TwainFileFormatRepresents Twain file format.
TwainImageResolutionPropertiesProvides image resolution information for the current selected data source.
TwainTransferModeRepresents the possible Twain transfer modes.
TwainImageEffectsFlagsRepresents specific Twain image effects.
TwainPaperOrientationRepresents TWAIN paper orientation.
TwainAcquirePageOptionsProvides acquire page options for the current selected data source.
TwainFileSystemMessagerepresents the possible messages will be used in Twain File System.
TwainDuplexScanningModeRepresents TWAIN duplex scanning mode.
TwainImageEffectsPropertiesProvides image effects information for the current selected data source.
TwainImageUnitRepresents Twain image unit.
TwainDataTransferFillOrderRepresents the TWAIN data transfer fill order.
TwainDataTransferPropertiesProvides data transfer information for the current selected data source.
TwainTransferOptionsProvides transfer options for the current selected data source.
TwainMemoryDataFlags Represents the possible values to be used in TwainMemoryData.Flags property.
TwainPropertiesProvides TWAIN properties for the current selected data source.
TwainPaperSizeRepresents TWAIN paper size.
TwainImagePixelFlavorRepresents TWAIN image pixel flavor.
TwainCompressionModeRepresents TWAIN compress mode.

New Members

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

TypeDescription
TwainSession.AcquireToImageAcquires one image from a TWAIN source.
TwainSession.AcquirePageOptionsGets or sets the paper size and paper orientation values to use when transferring images from the current TWAIN source.
TwainRgbResponseFlags.NoneNo options.
TwainFrame.Empty Initializes a new TwainFrame object with default values.
TwainCapabilityValue.BarcodeTypeMaxiCodeTWBT_MAXICODE
TwainCapabilityValue.CountryHongKongTWCY_HONDURAS
TwainCapabilityValue.CountryDominicanRepTWCY_DOMINCANREP
TwainCapabilityValue.BarcodeRotationXTWBCOR_ROTX

Event Handlers Delegates

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

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

Version 14.5Version 15
TwainTemplateEventHandlerEventHandler<TwainTemplateEventArgs>
TwainAcquireMultiPageEventHandlerEventHandler<TwainAcquireMultiPageEventArgs>
TwainAcquirePageEventHandlerEventHandler<TwainAcquirePageEventArgs>
TwainSetPropertyEventHandlerEventHandler<TwainSetPropertyEventArgs>
TwainFastConfigurationEventHandlerEventHandler<TwainFastConfigurationEventArgs>

Removed Types

The following types have been removed in v.15:

TypeDescription
JpegCompressionSet Use TwainJpegCompression instead.
JpegCompressionRetrieve Use TwainJpegCompression instead.

Renamed Types

The following types have been renamed in v.15:

Version 14.5Version 15
TwainSession.SetAcquireSourceNameSelectSource
TwainDataTransferTwainDataTransferProperties
FileSystemMsTwainFileSystemMessage
TwainTransferModeTwainTransferMode
ImageEffectsFlagTwainImageEffectsFlags
TwainMemoryFlagTwainMemoryDataFlags
TwainImageEffectTwainImageEffectsProperties
TwainImageResolutioTwainImageResolutionProperties

Removed Members

The following members have been removed in v.15:

MemberDescription
TwainSession.StartupFlags Now a parameter to TwainSession.Startup.
TwainSession.FastImageFormat Now a parameter to TwainSession.AcquireFast.
TwainSession.FastBitsPerPixel Now a parameter to TwainSession.AcquireFast.
TwainSession.FastBufferSize Now a parameter to TwainSession.AcquireFast.
TwainSession.SelectedSourceName Get with TwainSession.SelectedSourceName and set through a parameter to TwainSession.SelectSource.
TwainSession.FileTransferName Use TwainSession.TransferOptions instead.
TwainSession.FastTransferMechanism Use TwainSession.TransferOptions instead.
TwainSession.DataTransfer Use TwainSession.TransferOptions instead.
TwainSession.SetTransferOptions Use TwainSession.TransferOptions instead
TwainSession.GetTransferOptions Use TwainSession.TransferOptions instead.
TwainSession.TransferMode Use TwainSession.TransferOptions instead.
TwainSession.TransferFileName Use TwainSession.TransferOptions instead.
TwainSession.TransferFileFormat Use TwainSession.TransferOptions instead.
TwainSession.TransferCompressionType Use TwainSession.TransferOptions instead.
TwainSession.MemoryBufferSize Use TwainDataTransferProperties.MemoryBufferSize instead.
TwainSession.ImageResolution Use TwainProperties.ImageResolution instead.
TwainSession.EnableAutoFeed Use TwainProperties.EnableAutoFeed instead.
TwainSession.MaxPagesNumber Use TwainProperties.MaximumNumberOfPages instead.
TwainSession.SetImageEffects Use TwainImageEffectsProperties.Halftone, TwainImageEffectsProperties.PixelFlavor, TwainImageEffectsProperties.ColorScheme and TwainImageEffectsProperties.Shadow instead.
TwainSession.GetImageEffects Use TwainImageEffectsProperties.Halftone, TwainImageEffectsProperties.PixelFlavor, TwainImageEffectsProperties.ColorScheme and TwainImageEffectsProperties.Shadow instead.
TwainSession.ImageBrightness Use TwainImageEffectsProperties.Brightness instead.
TwainSession.ImageContrast Use TwainImageEffectsProperties.Contrast instead.
TwainSession.ImageHighlight Use TwainImageEffectsProperties.Highlight instead.
TwainSession.PaperSize Use TwainAcquirePageOptions.PaperSize instead.
TwainSession.PaperDirection Use TwainAcquirePageOptions.PaperOrientation instead.
TwainException.CheckErrorCode Internal use method removed.
TwainFileSystem.Empty Use TwainFileSystem constructor instead.
TwainExceptionCode.NotAvailable Internal use member removed.
TwainExceptionCode.BadDestination Internal use member removed
TwainExceptionCode.Canceled Internal use member removed.
TwainExceptionCode.BadCapability Internal use member removed.
TwainExceptionCode.CapabilityUnsupported Internal use member removed.
TwainExceptionCode.SequenceError Internal use member removed.
TwainExceptionCode.FileXferUnsupported Internal use member removed.
TwainFrame.Clone Type changed to structure and "Clone" is no longer required.

Changed Types

The following types have been changed in v.15:

Version 14.5Version 15
TwainFileSystemChanged from a structure to a class.
TwainFrameChanged from a class to a structure.

Renamed Members

The following members have been renamed in v.15:

Version 14.5Version 15
TwainSession.SupportedCapabilities TwainSession.QuerySupportedCapabilities.
TwainSession.FileSystem TwainSession.QueryFileSystem.
TwainSession.SourceInformation TwainSession.QuerySourceInformation.
TwainSession.ShowProgress TwainSession.ShowProgressIndicator.
TwainSession.EnableDuplex TwainSession.EnableDuplexScanning.
TwainSession.DuplexMode TwainSession.DuplexScanningMode.
TwainSession.MaxXferCount TwainSession.MaximumTransferCount.
TwainSession.ShowTemplateDlg TwainSession.ShowTemplateDialog.
TwainSession.IsFileTransferAvailable TwainSession.IsTransferModeAvailable.
TwainSession.IsNativeTransferAvailable TwainSession.IsTransferModeAvailable.
TwainSession.XResolution TwainSession.Resolution.
TwainSession.YResolution TwainSession.Resolution.
TwainSession.ShowProgress TwainSession.ShowProgressIndicator.
TwainSession.DuplexScanning TwainSession.DuplexScanningMode.
TwainSession.DuplexMode TwainSession.DuplexScanningMode.
TwainSession.EnableDuplex TwainSession.EnableDuplexScanning.
TwainSession.SetPropertyEvent TwainSession.SetProperty.
TwainSession.GetJPEGCompression TwainSession.GetJpegCompression.
TwainSession.SetJPEGCompression TwainSession.SetJpegCompression.
TwainSession.MaxXferCount TwainSession.MaximumTransferCount.
TwainSession.ModifyRGBResponse TwainSession.ModifyRgbResponse.
TwainFastConfigurationEventArgs.FastConfig TwainFastConfigurationEventArgs.FastConfiguration.
TwainStartupFlags.InitializeMultiThreaded TwainStartupFlags.InitializeMultithreaded.
TwainConditionCode.CapSeqeEror TwainConditionCode.CapSeqError.
TwainDataTransfer.TransferModeTwainDataTransferProperties.TransferMechanism.
TwainDataTransfer.EnableSaveMultipageFileTwainDataTransferProperties.SaveToOneFile.
TwainDataTransfer.EnableAppendToFileTwainDataTransferProperties.AppendToFile.
TwainDataTransfer.EnableDumpMemoryBuffersToFileTwainDataTransferProperties.DumpMemoryBuffersToFile.
TwainExtendedImage.HorzlineXcoord TwainExtendedImage.HorzlineXCoord.
TwainExtendedImage.Formhorzdocoffset TwainExtendedImage.FormHorzDocOffset.
TwainExtendedImage.DeshadeWhiteRlMin TwainExtendedImage.DeshadeWhiteRLMin.
TwainExtendedImage.DeshadeBlackRlMin TwainExtendedImage.DeshadeBlackRLMin.
TwainExtendedImage.VertLineYcoord TwainExtendedImage.VertLineYCoord.
TwainExtendedImage.DeshadeBlackRlMax TwainExtendedImage.DeshadeBlackRLMax.
TwainExtendedImage.VertLineXcoord TwainExtendedImage.VertLineXCoord.
TwainExtendedImage.Deshadecount TwainExtendedImage.DeshadeCount.
TwainExtendedImage.HorzlineYcoord TwainExtendedImage.HorzlineYCoord.
TwainExtendedImage.DeshadeWhiteRlMax TwainExtendedImage.DeshadeWhiteRLMax.
TwainExtendedImage.DeshadeWhiteRlAve TwainExtendedImage.DeshadeWhiteRLAve.
TwainCapability.OneValue TwainCapability.OneValueCapability.
TwainCapability.Enumeration TwainCapability.EnumerationCapability.
TwainCapability.Array TwainCapability.ArrayCapability.
TwainCapability.Range TwainCapability.RangeCapability.
TwainAcquireMultiPageEventArgs.Page TwainAcquireMultiPageEventArgs.PageNumber.
TwainJpegCompression.ColorSpace TwainJpegCompression.ColorScheme.
TwainJpegCompression.NumComponents TwainJpegCompression.ColorComponentCount.
TwainJpegCompression.GetQuantMap TwainJpegCompression.GetQuantizationMap.
TwainJpegCompression.SetQuantMap TwainJpegCompression.SetQuantizationMap.
TwainJpegCompression.GetQuantTable TwainJpegCompression.GetQuantizationTable.
TwainJpegCompression.SetQuantTable TwainJpegCompression.SetQuantizationTable.
TwainFastConfiguration.Empty TwainFastConfiguration.Default.
TwainImageEffects.PixelFlavor TwainImageEffects.Flags.
TwainImageEffects.ColorScheme TwainImageEffects.Flags.
TwainImageEffects.Shadow TwainImageEffects.Flags.
TwainImageEffects.HalfTone TwainImageEffects.Flags.
TwainImageEffects.HighLight TwainImageEffects.Highlight.
TwainFileSystem.FileType TwainFileSystem.FileFormat.
TwainCapabilityValue.BarCodeSearchModeHorz TwainCapabilityValue.BarcodeSearchModeHorzVert.
TwainCapabilityValue.CountryPhillippines TwainCapabilityValue.CountryPhilippines.
TwainCapabilityValue.CountryCostarica TwainCapabilityValue.CountryCostaRica.
TwainCapabilityValue.CountrySrilanka TwainCapabilityValue.CountrySriLanka.
TwainCapabilityValue.LightSourceIr TwainCapabilityValue.LightSourceIR.
TwainCapabilityValue.AudioFormatAu TwainCapabilityValue.AudioFormatAU.
TwainCapabilityValue.CountryFrPolyneisa TwainCapabilityValue.CountryFrPolynesia.
TwainCapabilityValue.BarCodeTypeEan8 TwainCapabilityValue.BarcodeTypeEan8.
TwainCapabilityValue.BarCodeSearchModeVert TwainCapabilityValue.BarcodeSearchModeVertHorz.
TwainCapabilityValue.PixelTypeBw TwainCapabilityValue.PixelTypeBW.
TwainCapabilityValue.BarCodeType3Of9 TwainCapabilityValue.BarcodeType3Of9.
TwainCapabilityValue.BarCodeType2Of5Iata TwainCapabilityValue.BarcodeType2Of5Iata.
TwainCapabilityValue.BarCodeType3Of9FullAscii TwainCapabilityValue.BarcodeType3Of9FullAscii.
TwainCapabilityValue.CountryCamaroon TwainCapabilityValue.CountryCameroon.
TwainCapabilityValue.BarCodeTypeUpce TwainCapabilityValue.BarcodeTypeUpce.
TwainCapabilityValue.FlipRotationFanFold TwainCapabilityValue.FlipRotationFanfold.
TwainCapabilityValue.BarCodeTypePdf417 TwainCapabilityValue.BarcodeTypePdf417.
TwainCapabilityValue.BarCodeType2Of5Interleaved TwainCapabilityValue.BarcodeType2Of5Interleaved.
TwainCapabilityValue.LanguageEnglishUk TwainCapabilityValue.LanguageEnglishUK.
TwainCapabilityValue.CountryCentralAfRep TwainCapabilityValue.CountryCentralAfricaRepublic.
TwainCapabilityValue.BarCodeTypeCode93 TwainCapabilityValue.BarcodeTypeCode93.
TwainCapabilityValue.BarCodeRotation90 TwainCapabilityValue.BarcodeRotation90.
TwainCapabilityValue.CountryUaEmirates TwainCapabilityValue.CountryUAEmirates.
TwainCapabilityValue.BarCodeTypeCodabarWithStartStop TwainCapabilityValue.BarcodeTypeCodaBarWithStartStop.
TwainCapabilityValue.LightSourceUv TwainCapabilityValue.LightSourceUV.
TwainCapabilityValue.LanguageArabicSaudiarabia TwainCapabilityValue.LanguageArabicSaudiArabia.
TwainCapabilityValue.BarCodeTypeUcc128 TwainCapabilityValue.BarcodeTypeUcc128.
TwainCapabilityValue.BarCodeTypeEan13 TwainCapabilityValue.BarcodeTypeEan13.
TwainCapabilityValue.CountryGuantanamobay TwainCapabilityValue.CountryGuantanamoBay.
TwainCapabilityValue.BarCodeRotation270 TwainCapabilityValue.BarcodeRotation270.
TwainCapabilityValue.BitDepthReductionCustHalftone TwainCapabilityValue.BitDepthReductionCustomHalftone.
TwainCapabilityValue.BarCodeType2Of5DataLogic TwainCapabilityValue.BarcodeType2Of5DataLogic.
TwainCapabilityValue.BarCodeType2Of5Industrial TwainCapabilityValue.BarcodeType2Of5Industrial.
TwainCapabilityValue.CountryGibralter TwainCapabilityValue.CountryGibraltar.
TwainCapabilityValue.BarCodeType2Of5Noninterleaved TwainCapabilityValue.BarcodeType2Of5NonInterleaved.
TwainCapabilityValue.BarCodeTypeCodabar TwainCapabilityValue.BarcodeTypeCodaBar.
TwainCapabilityValue.CountryGrenedines TwainCapabilityValue.CountryGrenadines.
TwainCapabilityValue.BarCodeTypeUpca TwainCapabilityValue.BarcodeTypeUpca.
TwainCapabilityValue.CountryLuxenbourg TwainCapabilityValue.CountryLuxembourg.
TwainCapabilityValue.BarCodeRotation180 TwainCapabilityValue.BarcodeRotation180.
TwainCapabilityValue.BarCodeTypeCode128 TwainCapabilityValue.BarcodeTypeCode128.
TwainCapabilityValue.BarCodeType2Of5Matrix TwainCapabilityValue.BarcodeType2Of5Matrix.
TwainCapabilityValue.BarCodeTypePostnet TwainCapabilityValue.BarcodeTypePostNet.
TwainCapabilityValue.BarCodeRotation0 TwainCapabilityValue.BarcodeRotation0.
TwainCapabilityType.CameraPreviewUi TwainCapabilityType.CameraPreviewUI
TwainCapabilityType.CustomDsData TwainCapabilityType.CustomDSData.
TwainCapabilityType.EndOrser TwainCapabilityType.Endorser.
TwainCapabilityType.UiControllable TwainCapabilityType.UIControllable.
TwainCapabilityType.ReAcquireAllowed TwainCapabilityType.ReacquireAllowed.
TwainCapabilityType.ImageCustHalftone TwainCapabilityType.ImageCustomHalftone.
TwainCapabilityType.ImageHighLight TwainCapabilityType.ImageHighlight.

Changed Members

The following members have been changed in v.15:

MemberDescription
TwainSession.StartupNew parameters added.
TwainSession.AcquireFastNew parameters added.
TwainSession.QueryFileSystemNew parameters added.
TwainFindFastConfigurationResult.Tested

Property value changed to RasterCollection < TwainFastConfiguration>

TwainSetPropertyEventArgs.CapabilityProperty changed to readonly.
TwainSetPropertyEventArgs.StatusProperty changed to readonly.
TwainExtraImageInformation.CountProperty changed to readonly.
TwainDataTransferProperties.FillOrder Property value changed to TwainDataTransferFillOrder
TwainDataTransferProperties.BufferedMemoryCompression Property value changed to TwainCompressionMode
TwainDataTransferProperties.TransferMechanism Property value changed to TwainTransferMechanism
TwainDataTransferProperties.ScanFileFormat Property value changed to TwainFileFormat
TwainJpegCompression.GetHuffmanMapMethod returns an array of integers instead.
TwainJpegCompression.SetHuffmanMapMethod accepts an array of integers instead.
TwainJpegCompression.GetHuffmanDC Method returns an array of TwainMemoryData instead.
TwainJpegCompression.SetHuffmanDC Method accepts an array of TwainMemoryData instead.
TwainJpegCompression.GetHuffmanAC Method returns an array of TwainMemoryData instead.
TwainJpegCompression.SetHuffmanAC Method accepts an array of TwainMemoryData instead.
TwainMemoryData.Data Property value changed to IntPtr.

Methods Changed into Properties

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

Version 14.5Version 15
TwainSession.GetProperties TwainSession.Properties
TwainSession.SetProperties TwainSession.Properties