Leadtools TWAIN(Leadtools.Twainアセンブリ)

フレームを表示

TwainRangeCapabilityクラス






メンバ 
型TW_RANGEのコンテナを表します。
オブジェクトモデル
構文
public class TwainRangeCapability 
'Declaration
 
Public Class TwainRangeCapability 
'Usage
 
Dim instance As TwainRangeCapability

            

            
public ref class TwainRangeCapability 
解説
TW_RANGEコンテナの詳細については、「http://www.twain.orgのTWAIN仕様(バージョン2.0)」を参照してください。
詳細については、「コンテナでの操作方法」を参照してください。
サンプル
Copy Code  
Imports Leadtools
 Imports Leadtools.Twain

#If Not LEADTOOLS_V19_OR_LATER Then
      Public Sub TwainRangeCapabilityExample(ByVal parent As IWin32Window)
#Else
      Public Sub TwainRangeCapabilityExample(ByVal parent As IntPtr)
#End If ' #If LEADTOOLS_V19_OR_LATER Then
         Dim session As TwainSession = New TwainSession()
         session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None)
         Dim twCap As TwainCapability = New TwainCapability()

         twCap.Information.ContainerType = TwainContainerType.Range
         twCap.Information.Type = TwainCapabilityType.ImageJpegQuality

         twCap.RangeCapability.ItemType = TwainItemType.Int16
         twCap.RangeCapability.CurrentValue = TwainCapabilityValue.JpegQualityMedium

         twCap.RangeCapability.MinimumValue = 0
         twCap.RangeCapability.MaximumValue = 50

         twCap.RangeCapability.StepSize = 10

         session.SetCapability(twCap, TwainSetCapabilityMode.Set)
         session.Shutdown()
      End Sub
using Leadtools;
      using Leadtools.Twain;

      [TestMethod]
#if !LEADTOOLS_V19_OR_LATER
      public void TwainRangeCapabilityExample(IWin32Window parent)
#else
      public void TwainRangeCapabilityExample(IntPtr parent)
#endif // #if !LEADTOOLS_V19_OR_LATER
      {
         TwainSession session = new TwainSession();
         session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None);
         TwainCapability twCap = new TwainCapability();

         twCap.Information.ContainerType = TwainContainerType.Range;
         twCap.Information.Type = TwainCapabilityType.ImageJpegQuality;

         twCap.RangeCapability.ItemType = TwainItemType.Int16;
         twCap.RangeCapability.CurrentValue = TwainCapabilityValue.JpegQualityMedium;

         twCap.RangeCapability.MinimumValue = 0;
         twCap.RangeCapability.MaximumValue = 50;

         twCap.RangeCapability.StepSize = 10;

         session.SetCapability(twCap, TwainSetCapabilityMode.Set);
         session.Shutdown();
      }
必要条件

ターゲットプラットホーム

参照

参照

TwainRangeCapabilityメンバ
Leadtools.Twain名前空間
TwainCapabilityクラス
TwainArrayCapabilityクラス
TwainEnumerationCapabilityクラス
TwainOneValueCapabilityクラス
TwainCapabilityBaseクラス
GetCapabilityメソッド
SetCapabilityメソッド