Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.12.21
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 resoultion information for the current selected data source
TwainTransferModeRepresents the possible Twain transfer modes
TwainImageEffectsFlagsRepresents specific Twain image effects
TwainPaperOrientationRepresents TWAIN paper orientation
TwainAcquirePageOptionsProvides acquitre 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
TwainMemoryDataFlagsRepresents 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 or more images from a TWAIN source
TwainSession.AcquirePageOptionsGets or sets the paper size and paper orinetation values to use when transferring images from the current TWAIN source
TwainRgbResponseFlags.NoneNo options
TwainFrame.EmptyInitializes 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
JpegCompressionSetUse TwainJpegCompression instead
JpegCompressionRetrieveUse TwainJpegCompression instead

Renamed Types

The following types have been renamed in v.15:

Version 14.5Version 15
TwainDataTransferTwainDataTransferProperties
FileSystemMsTwainFileSystemMessage
TwainTransferModeTwainTransferMode
ImageEffectsFlagTwainImageEffectsFlags
TwainMemoryFlagTwainMemoryDataFlags
TwainImageEffectTwainImageEffectsProperties
TwainImageResolutioTwainImageResolutionProperties

Removed Members

The following members have been removed in v.15:

MemberDescription
TwainSession.StartupFlagsNow a parameter to TwainSession.Startup
TwainSession.FastImageFormatNow a parameter to TwainSession.AcquireFast
TwainSession.FastBitsPerPixelNow a parameter to TwainSession.AcquireFast
TwainSession.FastBufferSizeNow a parameter to TwainSession.AcquireFast
TwainSession.SelectedSourceNameGet with TwainSession.SelectedSourceName and set through a parameter to TwainSession.SelectSource
TwainSession.FileTransferNameUse TwainSession.TransferOptions instead
TwainSession.FastTransferMechanismUse TwainSession.TransferOptions instead
TwainSession.DataTransferUse TwainSession.TransferOptions instead
TwainSession.SetTransferOptionsUse TwainSession.TransferOptions instead
TwainSession.GetTransferOptionsUse TwainSession.TransferOptions instead
TwainSession.TransferModeUse TwainSession.TransferOptions instead
TwainSession.TransferFileNameUse TwainSession.TransferOptions instead
TwainSession.TransferFileFormatUse TwainSession.TransferOptions instead
TwainSession.TransferCompressionTypeUse TwainSession.TransferOptions instead
TwainSession.MemoryBufferSizeUse TwainDataTransferProperties.MemoryBufferSize instead
TwainSession.ImageResolutionUse TwainProperties.ImageResolution instead
TwainSession.EnableAutoFeedUse TwainProperties.EnableAutoFeed instead
TwainSession.MaxPagesNumberUse TwainProperties.MaximumNumberOfPages instead
TwainSession.SetImageEffectsUse TwainImageEffectsProperties.Halftone, TwainImageEffectsProperties.PixelFlavor, TwainImageEffectsProperties.ColorScheme and TwainImageEffectsProperties.Shadow instead
TwainSession.GetImageEffectsUse TwainImageEffectsProperties.Halftone, TwainImageEffectsProperties.PixelFlavor, TwainImageEffectsProperties.ColorScheme and TwainImageEffectsProperties.Shadow instead
TwainSession.ImageBrightnessUse TwainImageEffectsProperties.Brightness instead
TwainSession.ImageContrastUse TwainImageEffectsProperties.Contrast instead
TwainSession.ImageHighlightUse TwainImageEffectsProperties.Highlight instead
TwainSession.PaperSizeUse TwainAcquirePageOptions.PaperSize instead
TwainSession.PaperDirectionUse TwainAcquirePageOptions.PaperOrientation instead
TwainException.CheckErrorCodeInternal use method removed
TwainFileSystem.EmptyUse TwainFileSystem constructor instead
TwainExceptionCode.NotAvailableInternal use member removed
TwainExceptionCode.BadDestinationInternal use member removed
TwainExceptionCode.CanceledInternal use member removed
TwainExceptionCode.BadCapabilityInternal use member removed
TwainExceptionCode.CapabilityUnsupportedInternal use member removed
TwainExceptionCode.SequenceErrorInternal use member removed
TwainExceptionCode.FileXferUnsupportedInternal use member removed
TwainFrame.CloneType 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.SupportedCapabilitiesTwainSession.QuerySupportedCapabilities
TwainSession.FileSystemTwainSession.QueryFileSystem
TwainSession.SourceInformationTwainSession.QuerySourceInformation
TwainSession.ShowProgressTwainSession.ShowProgressIndicator
TwainSession.EnableDuplexTwainSession.EnableDuplexScanning
TwainSession.DuplexModeTwainSession.DuplexScanningMode
TwainSession.MaxXferCountTwainSession.MaximumTransferCount
TwainSession.ShowTemplateDlgTwainSession.ShowTemplateDialog
TwainSession.IsFileTransferAvailableTwainSession.IsTransferModeAvailable
TwainSession.IsNativeTransferAvailableTwainSession.IsTransferModeAvailable
TwainSession.XResolutionTwainSession.Resolution
TwainSession.YResolutionTwainSession.Resolution
TwainSession.ShowProgressTwainSession.ShowProgressIndicator
TwainSession.DuplexScanningTwainSession.DuplexScanningMode
TwainSession.DuplexModeTwainSession.DuplexScanningMode
TwainSession.EnableDuplexTwainSession.EnableDuplexScanning
TwainSession.SetPropertyEventTwainSession.SetProperty
TwainSession.GetJPEGCompressionTwainSession.GetJpegCompression
TwainSession.SetJPEGCompressionTwainSession.SetJpegCompression
TwainSession.MaxXferCountTwainSession.MaximumTransferCount
TwainSession.ModifyRGBResponseTwainSession.ModifyRgbResponse
TwainFastConfigurationEventArgs.FastConfigTwainFastConfigurationEventArgs.FastConfiguration
TwainStartupFlags.InitializeMultiThreadedTwainStartupFlags.InitializeMultithreaded
TwainConditionCode.CapSeqeErorTwainConditionCode.CapSeqError
TwainDataTransfer.TransferModeTwainDataTransferProperties.TransferMechanism
TwainDataTransfer.EnableSaveMultipageFileTwainDataTransferProperties.SaveToOneFile
TwainDataTransfer.EnableAppendToFileTwainDataTransferProperties.AppendToFile
TwainDataTransfer.EnableDumpMemoryBuffersToFileTwainDataTransferProperties.DumpMemoryBuffersToFile
TwainExtendedImage.HorzlineXcoordTwainExtendedImage.HorzlineXCoord
TwainExtendedImage.FormhorzdocoffsetTwainExtendedImage.FormHorzDocOffset
TwainExtendedImage.DeshadeWhiteRlMinTwainExtendedImage.DeshadeWhiteRLMin
TwainExtendedImage.DeshadeBlackRlMinTwainExtendedImage.DeshadeBlackRLMin
TwainExtendedImage.VertLineYcoordTwainExtendedImage.VertLineYCoord
TwainExtendedImage.DeshadeBlackRlMaxTwainExtendedImage.DeshadeBlackRLMax
TwainExtendedImage.VertLineXcoordTwainExtendedImage.VertLineXCoord
TwainExtendedImage.DeshadecountTwainExtendedImage.DeshadeCount
TwainExtendedImage.HorzlineYcoordTwainExtendedImage.HorzlineYCoord
TwainExtendedImage.DeshadeWhiteRlMaxTwainExtendedImage.DeshadeWhiteRLMax
TwainExtendedImage.DeshadeWhiteRlAveTwainExtendedImage.DeshadeWhiteRLAve
TwainCapability.OneValueTwainCapability.OneValueCapability
TwainCapability.EnumerationTwainCapability.EnumerationCapability
TwainCapability.ArrayTwainCapability.ArrayCapability
TwainCapability.RangeTwainCapability.RangeCapability
TwainAcquireMultiPageEventArgs.PageTwainAcquireMultiPageEventArgs.PageNumber
TwainJpegCompression.ColorSpaceTwainJpegCompression.ColorScheme
TwainJpegCompression.NumComponentsTwainJpegCompression.ColorComponentCount
TwainJpegCompression.GetQuantMapTwainJpegCompression.GetQuantizationMap
TwainJpegCompression.SetQuantMapTwainJpegCompression.SetQuantizationMap
TwainJpegCompression.GetQuantTableTwainJpegCompression.GetQuantizationTable
TwainJpegCompression.SetQuantTableTwainJpegCompression.SetQuantizationTable
TwainFastConfiguration.EmptyTwainFastConfiguration.Default
TwainImageEffects.PixelFlavorTwainImageEffects.Flags
TwainImageEffects.ColorSchemeTwainImageEffects.Flags
TwainImageEffects.ShadowTwainImageEffects.Flags
TwainImageEffects.HalfToneTwainImageEffects.Flags
TwainImageEffects.HighLightTwainImageEffects.Highlight
TwainFileSystem.FileTypeTwainFileSystem.FileFormat
TwainCapabilityValue.BarCodeSearchModeHorzTwainCapabilityValue.BarcodeSearchModeHorzVert
TwainCapabilityValue.CountryPhillippinesTwainCapabilityValue.CountryPhilippines
TwainCapabilityValue.CountryCostaricaTwainCapabilityValue.CountryCostaRica
TwainCapabilityValue.CountrySrilankaTwainCapabilityValue.CountrySriLanka
TwainCapabilityValue.LightSourceIrTwainCapabilityValue.LightSourceIR
TwainCapabilityValue.AudioFormatAuTwainCapabilityValue.AudioFormatAU
TwainCapabilityValue.CountryFrPolyneisaTwainCapabilityValue.CountryFrPolynesia
TwainCapabilityValue.BarCodeTypeEan8TwainCapabilityValue.BarcodeTypeEan8
TwainCapabilityValue.BarCodeSearchModeVertTwainCapabilityValue.BarcodeSearchModeVertHorz
TwainCapabilityValue.PixelTypeBwTwainCapabilityValue.PixelTypeBW
TwainCapabilityValue.BarCodeType3Of9TwainCapabilityValue.BarcodeType3Of9
TwainCapabilityValue.BarCodeType2Of5IataTwainCapabilityValue.BarcodeType2Of5Iata
TwainCapabilityValue.BarCodeType3Of9FullAsciiTwainCapabilityValue.BarcodeType3Of9FullAscii
TwainCapabilityValue.CountryCamaroonTwainCapabilityValue.CountryCameroon
TwainCapabilityValue.BarCodeTypeUpceTwainCapabilityValue.BarcodeTypeUpce
TwainCapabilityValue.FlipRotationFanFoldTwainCapabilityValue.FlipRotationFanfold
TwainCapabilityValue.BarCodeTypePdf417TwainCapabilityValue.BarcodeTypePdf417
TwainCapabilityValue.BarCodeType2Of5InterleavedTwainCapabilityValue.BarcodeType2Of5Interleaved
TwainCapabilityValue.LanguageEnglishUkTwainCapabilityValue.LanguageEnglishUK
TwainCapabilityValue.CountryCentralAfRepTwainCapabilityValue.CountryCentralAfricaRepublic
TwainCapabilityValue.BarCodeTypeCode93TwainCapabilityValue.BarcodeTypeCode93
TwainCapabilityValue.BarCodeRotation90TwainCapabilityValue.BarcodeRotation90
TwainCapabilityValue.CountryUaEmiratesTwainCapabilityValue.CountryUAEmirates
TwainCapabilityValue.BarCodeTypeCodabarWithStartStopTwainCapabilityValue.BarcodeTypeCodaBarWithStartStop
TwainCapabilityValue.LightSourceUvTwainCapabilityValue.LightSourceUV
TwainCapabilityValue.LanguageArabicSaudiarabiaTwainCapabilityValue.LanguageArabicSaudiArabia
TwainCapabilityValue.BarCodeTypeUcc128TwainCapabilityValue.BarcodeTypeUcc128
TwainCapabilityValue.BarCodeTypeEan13TwainCapabilityValue.BarcodeTypeEan13
TwainCapabilityValue.CountryGuantanamobayTwainCapabilityValue.CountryGuantanamoBay
TwainCapabilityValue.BarCodeRotation270TwainCapabilityValue.BarcodeRotation270
TwainCapabilityValue.BitDepthReductionCustHalftoneTwainCapabilityValue.BitDepthReductionCustomHalftone
TwainCapabilityValue.BarCodeType2Of5DataLogicTwainCapabilityValue.BarcodeType2Of5DataLogic
TwainCapabilityValue.BarCodeType2Of5IndustrialTwainCapabilityValue.BarcodeType2Of5Industrial
TwainCapabilityValue.CountryGibralterTwainCapabilityValue.CountryGibraltar
TwainCapabilityValue.BarCodeType2Of5NoninterleavedTwainCapabilityValue.BarcodeType2Of5NonInterleaved
TwainCapabilityValue.BarCodeTypeCodabarTwainCapabilityValue.BarcodeTypeCodaBar
TwainCapabilityValue.CountryGrenedinesTwainCapabilityValue.CountryGrenadines
TwainCapabilityValue.BarCodeTypeUpcaTwainCapabilityValue.BarcodeTypeUpca
TwainCapabilityValue.CountryLuxenbourgTwainCapabilityValue.CountryLuxembourg
TwainCapabilityValue.BarCodeRotation180TwainCapabilityValue.BarcodeRotation180
TwainCapabilityValue.BarCodeTypeCode128TwainCapabilityValue.BarcodeTypeCode128
TwainCapabilityValue.BarCodeType2Of5MatrixTwainCapabilityValue.BarcodeType2Of5Matrix
TwainCapabilityValue.BarCodeTypePostnetTwainCapabilityValue.BarcodeTypePostNet
TwainCapabilityValue.BarCodeRotation0TwainCapabilityValue.BarcodeRotation0
TwainCapabilityType.CameraPreviewUiTwainCapabilityType.CameraPreviewUI
TwainCapabilityType.CustomDsDataTwainCapabilityType.CustomDSData
TwainCapabilityType.EndOrserTwainCapabilityType.Endorser
TwainCapabilityType.UiControllableTwainCapabilityType.UIControllable
TwainCapabilityType.ReAcquireAllowedTwainCapabilityType.ReacquireAllowed
TwainCapabilityType.ImageCustHalftoneTwainCapabilityType.ImageCustomHalftone
TwainCapabilityType.ImageHighLightTwainCapabilityType.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.TestedProperty value changed to RasterCollection<TwainFastConfiguration>
TwainSetPropertyEventArgs.CapabilityProperty changed to readonly
TwainSetPropertyEventArgs.StatusProperty changed to readonly
TwainExtraImageInformation.CountProperty changed to readonly
TwainDataTransferProperties.FillOrderProperty value changed to TwainDataTransferFillOrder
TwainDataTransferProperties.BufferedMemoryCompressionProperty value changed to TwainCompressionMode
TwainDataTransferProperties.TransferMechanismProperty value changed to TwainTransferMechanism
TwainDataTransferProperties.ScanFileFormatProperty value changed to TwainFileFormat
TwainJpegCompression.GetHuffmanMapMethod returns an array of integer instead
TwainJpegCompression.SetHuffmanMapMethod accepts an array of integer instead
TwainJpegCompression.GetHuffmanDCMethod returns an array of TwainMemoryData instead
TwainJpegCompression.SetHuffmanDCMethod accepts an array of TwainMemoryData instead
TwainJpegCompression.GetHuffmanACMethod returns an array of TwainMemoryData instead
TwainJpegCompression.SetHuffmanACMethod accepts an array of TwainMemoryData instead
TwainMemoryData.DataProperty value changed to IntPtr

Methods Changed into Properties

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

Version 14.5Version 15
TwainSession.GetPropertiesTwainSession.Properties
TwainSession.SetPropertiesTwainSession.Properties