You are here: GdPicture.NET > Documentation > Classes > GdPictureImaging Class > GdPictureImaging Methods > TWAIN Features > TwainSetYScaling Method
logo.gif
ContentsIndexHome
PreviousUpNext
GdPictureImaging.TwainSetYScaling Method

Tries to set the current image vertical scaling factor for the selected twain source.

C#
public Boolean TwainSetYScaling(
    Double YScaling
);
Visual Basic
Public Function TwainSetYScaling(
    ByVal YScaling As Double
) As Boolean
Parameters
Parameters 
Description 
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. 
Returns

TRUE if success, FALSE otherwise -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() functions for diagnosing the error.

Before using this function check that the TWAIN state is TWAIN_SOURCE_OPEN (4) 

To get the TWAIN state, use the TwainGetState() function.

What do you think about this topic? Send feedback!
Copyright (c) 2009-2011 www.gdpicture.com. All rights reserved.