←Select platform

AcquirePageOptions Property

Summary
Gets or sets the paper size and paper orientation values to use when transferring images from the current TWAIN source.

Syntax
C#
C++/CLI
Python
public TwainAcquirePageOptions AcquirePageOptions { get; set; } 
public: 
property TwainAcquirePageOptions AcquirePageOptions { 
   TwainAcquirePageOptions get(); 
   void set (    TwainAcquirePageOptions ); 
} 
AcquirePageOptions # get and set (TwainSession) 

Property Value

The paper size and paper orientation values to use when transferring images from the current TWAIN source

Remarks

The AcquirePageOptions property will get and set the paper size and paper orientation values for the current TWAIN source.

Example
C#
using Leadtools; 
using Leadtools.Twain; 
 
 
public void ImageEffectsPropertyExample(IntPtr parent) 
{ 
   TwainSession session = new TwainSession(); 
   session.Startup(parent, "manufacturer", "productFamily", "version", "application", TwainStartupFlags.None); 
 
   TwainImageEffects imgEffects = session.ImageEffects; 
   imgEffects.Flags = TwainImageEffectsFlags.NegotiateBrightness | TwainImageEffectsFlags.NegotiateContrast | TwainImageEffectsFlags.NegotiateHighlight; 
   float contrast = imgEffects.Contrast; 
   float highlight = imgEffects.Highlight; 
   string msg = String.Format("Image Contrst = {0}\nImage Highlight = {1}", contrast, highlight); 
   MessageBox.Show(msg); 
 
   imgEffects.Brightness = 100; 
   session.ImageEffects = imgEffects; 
 
   TwainAcquirePageOptions pageOpts = session.AcquirePageOptions; 
   pageOpts.PaperSize = TwainPaperSize.A4; 
   pageOpts.PaperOrientation = TwainPaperOrientation.Landscape; 
   session.AcquirePageOptions = pageOpts; 
 
   session.Shutdown(); 
} 
Requirements

Target Platforms

Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Twain Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.