The image horizontal scaling. A value of ‘1.0’ is equivalent to 100% scaling. Do not use values less than or equal to zero.





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainSetXScaling Method

TwainSetXScaling Method (GdPictureImaging)

In This Topic
Tries to set the current image horizontal scaling factor for the selected twain source.
Syntax
'Declaration
 
Public Function TwainSetXScaling( _
   ByVal XScaling As Double _
) As Boolean
public bool TwainSetXScaling( 
   double XScaling
)
public function TwainSetXScaling( 
    XScaling: Double
): Boolean; 
public function TwainSetXScaling( 
   XScaling : double
) : boolean;
public: bool TwainSetXScaling( 
   double XScaling
) 
public:
bool TwainSetXScaling( 
   double XScaling
) 

Parameters

XScaling
The image horizontal scaling. A value of ‘1.0’ is equivalent to 100% scaling. Do not use values less than or equal to zero.

Return Value

TRUE if success, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
Remarks
Before using this method check that the TWAIN state is TWAIN_SOURCE_OPEN (4) To get the TWAIN state, use the TwainGetState() method.
See Also