mirror of
https://github.com/soukoku/ntwain.git
synced 2025-09-18 17:47:57 +08:00
more icaps
This commit is contained in:
@@ -397,6 +397,24 @@ namespace NTwain
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A version of Set that uses an enumeration.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">The value.</param>
|
||||||
|
/// <returns></returns>
|
||||||
|
public ReturnCode Set(TWEnumeration value)
|
||||||
|
{
|
||||||
|
ReturnCode rc = ReturnCode.Failure;
|
||||||
|
if (CanSet)
|
||||||
|
{
|
||||||
|
using (var cap = new TWCapability(Capability, value))
|
||||||
|
{
|
||||||
|
rc = _source.DGControl.Capability.Set(cap);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return rc;
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the constraint value of this capability.
|
/// Sets the constraint value of this capability.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -166,8 +166,6 @@ namespace NTwain
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region high-level caps stuff
|
|
||||||
|
|
||||||
#region audio caps
|
#region audio caps
|
||||||
|
|
||||||
private CapWrapper<XferMech> _audXferMech;
|
private CapWrapper<XferMech> _audXferMech;
|
||||||
@@ -347,7 +345,26 @@ namespace NTwain
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: add ICapCustHalftone
|
private CapWrapper<byte> _custHalftone;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image square-cell halftone for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image square-cell halftone.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<byte> ICapCustHalftone
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _custHalftone ?? (_custHalftone = new CapWrapper<byte>(this, CapabilityId.ICapCustHalftone, ValueExtensions.ConvertToEnum<byte>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = value,
|
||||||
|
ItemType = ItemType.UInt8
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private CapWrapper<TWFix32> _exposureTime;
|
private CapWrapper<TWFix32> _exposureTime;
|
||||||
|
|
||||||
@@ -1697,6 +1714,227 @@ namespace NTwain
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private CapWrapper<BoolType> _cropUseFrame;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image auto crop flag for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image auto crop flag.
|
||||||
|
/// </value>
|
||||||
|
public IReadOnlyCapWrapper<BoolType> ICapAutomaticCropUsesFrame
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _cropUseFrame ?? (_cropUseFrame = new CapWrapper<BoolType>(this, CapabilityId.ICapAutomaticCropUsesFrame, ValueExtensions.ConvertToEnum<BoolType>));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<BoolType> _lengthDetect;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image auto length detection flag for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image auto length detection flag.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<BoolType> ICapAutomaticLengthDetection
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _lengthDetect ?? (_lengthDetect = new CapWrapper<BoolType>(this, CapabilityId.ICapAutomaticLengthDetection, ValueExtensions.ConvertToEnum<BoolType>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,
|
||||||
|
ItemType = ItemType.Bool
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<BoolType> _autoColor;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image auto color detection flag for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image auto color detection flag.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<BoolType> ICapAutomaticColorEnabled
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _autoColor ?? (_autoColor = new CapWrapper<BoolType>(this, CapabilityId.ICapAutomaticColorEnabled, ValueExtensions.ConvertToEnum<BoolType>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,
|
||||||
|
ItemType = ItemType.Bool
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<PixelType> _autoColorNonPixel;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image auto non-color pixel type for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image auto non-color pixel type.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<PixelType> ICapAutomaticColorNonColorPixelType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _autoColorNonPixel ?? (_autoColorNonPixel = new CapWrapper<PixelType>(this, CapabilityId.ICapAutomaticColorNonColorPixelType, ValueExtensions.ConvertToEnum<PixelType>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,
|
||||||
|
ItemType = ItemType.UInt16
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<BoolType> _colorMgmt;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image color management flag for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image color management flag.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<BoolType> ICapColorManagementEnabled
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _colorMgmt ?? (_colorMgmt = new CapWrapper<BoolType>(this, CapabilityId.ICapColorManagementEnabled, ValueExtensions.ConvertToEnum<BoolType>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,
|
||||||
|
ItemType = ItemType.Bool
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<ImageMerge> _imgMerge;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image merge option for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image merge option.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<ImageMerge> ICapImageMerge
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _imgMerge ?? (_imgMerge = new CapWrapper<ImageMerge>(this, CapabilityId.ICapImageMerge, ValueExtensions.ConvertToEnum<ImageMerge>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,
|
||||||
|
ItemType = ItemType.UInt16
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<TWFix32> _mergeHeight;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image merge height threshold for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image merge height threshold.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<TWFix32> ICapImageMergeHeightThreshold
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _mergeHeight ?? (_mergeHeight = new CapWrapper<TWFix32>(this, CapabilityId.ICapImageMergeHeightThreshold, ValueExtensions.ConvertToFix32,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,// ((uint)dpi) << 16;
|
||||||
|
ItemType = ItemType.Fix32
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<ExtendedImageInfo> _supportedExtInfo;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to get supported ext image info for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The supported ext image info.
|
||||||
|
/// </value>
|
||||||
|
public IReadOnlyCapWrapper<ExtendedImageInfo> ICapSupportedExtImageInfo
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _supportedExtInfo ?? (_supportedExtInfo = new CapWrapper<ExtendedImageInfo>(this, CapabilityId.ICapSupportedExtImageInfo, ValueExtensions.ConvertToEnum<ExtendedImageInfo>));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<FilmType> _filmType;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image film type for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image film type.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<FilmType> ICapFilmType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _filmType ?? (_filmType = new CapWrapper<FilmType>(this, CapabilityId.ICapFilmType, ValueExtensions.ConvertToEnum<FilmType>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,
|
||||||
|
ItemType = ItemType.UInt16
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<Mirror> _mirror;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image mirror option for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image mirror option.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<Mirror> ICapMirror
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _mirror ?? (_mirror = new CapWrapper<Mirror>(this, CapabilityId.ICapMirror, ValueExtensions.ConvertToEnum<Mirror>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,
|
||||||
|
ItemType = ItemType.UInt16
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private CapWrapper<JpegSubsampling> _jpegSubSampling;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the property to work with image jpeg sub sampling for the current source.
|
||||||
|
/// </summary>
|
||||||
|
/// <value>
|
||||||
|
/// The image jpeg sub sampling.
|
||||||
|
/// </value>
|
||||||
|
public ICapWrapper<JpegSubsampling> ICapJpegSubsampling
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return _jpegSubSampling ?? (_jpegSubSampling = new CapWrapper<JpegSubsampling>(this, CapabilityId.ICapJpegSubsampling, ValueExtensions.ConvertToEnum<JpegSubsampling>,
|
||||||
|
value => new TWOneValue
|
||||||
|
{
|
||||||
|
Item = (uint)value,
|
||||||
|
ItemType = ItemType.UInt16
|
||||||
|
}));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region general caps
|
#region general caps
|
||||||
@@ -2085,7 +2323,5 @@ namespace NTwain
|
|||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -169,6 +169,13 @@ namespace NTwain
|
|||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
ReturnCode Set(TWArray value);
|
ReturnCode Set(TWArray value);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A version of Set that uses an enumeration.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="value">The value.</param>
|
||||||
|
/// <returns></returns>
|
||||||
|
ReturnCode Set(TWEnumeration value);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the constraint value of this capability.
|
/// Sets the constraint value of this capability.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@@ -366,19 +366,19 @@ namespace Tester.WPF
|
|||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticBorderDetection.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticBorderDetection.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapAutomaticColorEnabled:
|
case CapabilityId.ICapAutomaticColorEnabled:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap);
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticColorEnabled.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapAutomaticColorNonColorPixelType:
|
case CapabilityId.ICapAutomaticColorNonColorPixelType:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap).CastToEnum<PixelType>();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticColorNonColorPixelType.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapAutomaticCropUsesFrame:
|
case CapabilityId.ICapAutomaticCropUsesFrame:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap);
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticCropUsesFrame.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapAutomaticDeskew:
|
case CapabilityId.ICapAutomaticDeskew:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticDeskew.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticDeskew.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapAutomaticLengthDetection:
|
case CapabilityId.ICapAutomaticLengthDetection:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap);
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticLengthDetection.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapAutomaticRotate:
|
case CapabilityId.ICapAutomaticRotate:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticRotate.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapAutomaticRotate.Get();
|
||||||
@@ -423,7 +423,7 @@ namespace Tester.WPF
|
|||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapCCITTKFactor.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapCCITTKFactor.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapColorManagementEnabled:
|
case CapabilityId.ICapColorManagementEnabled:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap);
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapColorManagementEnabled.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapCompression:
|
case CapabilityId.ICapCompression:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapCompression.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapCompression.Get();
|
||||||
@@ -432,7 +432,7 @@ namespace Tester.WPF
|
|||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapContrast.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapContrast.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapCustHalftone:
|
case CapabilityId.ICapCustHalftone:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap);
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapCustHalftone.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapExposureTime:
|
case CapabilityId.ICapExposureTime:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapExposureTime.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapExposureTime.Get();
|
||||||
@@ -441,10 +441,10 @@ namespace Tester.WPF
|
|||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapExtImageInfo.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapExtImageInfo.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapFeederType:
|
case CapabilityId.ICapFeederType:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap).CastToEnum<FeederType>();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapFeederType.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapFilmType:
|
case CapabilityId.ICapFilmType:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap).CastToEnum<FilmType>();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapFilmType.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapFilter:
|
case CapabilityId.ICapFilter:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapFilter.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapFilter.Get();
|
||||||
@@ -480,13 +480,13 @@ namespace Tester.WPF
|
|||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapImageFileFormat.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapImageFileFormat.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapImageFilter:
|
case CapabilityId.ICapImageFilter:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap);
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapImageFilter.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapImageMerge:
|
case CapabilityId.ICapImageMerge:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap).CastToEnum<ImageMerge>();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapImageMerge.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapImageMergeHeightThreshold:
|
case CapabilityId.ICapImageMergeHeightThreshold:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap);
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapImageMergeHeightThreshold.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapJpegPixelType:
|
case CapabilityId.ICapJpegPixelType:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapJpegPixelType.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapJpegPixelType.Get();
|
||||||
@@ -495,7 +495,7 @@ namespace Tester.WPF
|
|||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapJpegQuality.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapJpegQuality.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapJpegSubsampling:
|
case CapabilityId.ICapJpegSubsampling:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap).CastToEnum<JpegSubsampling>();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapJpegSubsampling.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapLampState:
|
case CapabilityId.ICapLampState:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapLampState.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapLampState.Get();
|
||||||
@@ -516,7 +516,7 @@ namespace Tester.WPF
|
|||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapMinimumWidth.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapMinimumWidth.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapMirror:
|
case CapabilityId.ICapMirror:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap).CastToEnum<Mirror>();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapMirror.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapNoiseFilter:
|
case CapabilityId.ICapNoiseFilter:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapNoiseFilter.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapNoiseFilter.Get();
|
||||||
@@ -574,7 +574,7 @@ namespace Tester.WPF
|
|||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapSupportedBarcodeTypes.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapSupportedBarcodeTypes.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapSupportedExtImageInfo:
|
case CapabilityId.ICapSupportedExtImageInfo:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.CapGet(cap).CastToEnum<ExtendedImageInfo>();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapSupportedExtImageInfo.Get();
|
||||||
break;
|
break;
|
||||||
case CapabilityId.ICapSupportedPatchCodeTypes:
|
case CapabilityId.ICapSupportedPatchCodeTypes:
|
||||||
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapSupportedPatchCodeTypes.Get();
|
CapDetailList.ItemsSource = _twainVM.CurrentSource.ICapSupportedPatchCodeTypes.Get();
|
||||||
|
Reference in New Issue
Block a user