The image vertical 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 / TwainSetYScaling Method

TwainSetYScaling Method (GdPictureImaging)

In This Topic
Tries to set the current image vertical scaling factor for the selected twain source.
Syntax
'Declaration

 

Public Function TwainSetYScaling( _

   ByVal YScaling As Double _

) As Boolean
public bool TwainSetYScaling( 

   double YScaling

)
public function TwainSetYScaling( 

    YScaling: Double

): Boolean; 
public function TwainSetYScaling( 

   YScaling : double

) : boolean;
public: bool TwainSetYScaling( 

   double YScaling

) 
public:

bool TwainSetYScaling( 

   double YScaling

) 

Parameters

YScaling
The image vertical 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