Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / TwainGetAvailableBrightnessNo Method
Index of the available brightness value. Must be a value between 1 and TwainGetAvailableBrightnessCount() returned value.





In This Topic
    TwainGetAvailableBrightnessNo Method (GdPictureImaging)
    In This Topic
    Returns an available brightness value which can be used by the opened source in its current configuration.
    Syntax
    'Declaration
     
    
    Public Function TwainGetAvailableBrightnessNo( _
       ByVal Number As Integer _
    ) As Double
    public double TwainGetAvailableBrightnessNo( 
       int Number
    )
    public function TwainGetAvailableBrightnessNo( 
        Number: Integer
    ): Double; 
    public function TwainGetAvailableBrightnessNo( 
       Number : int
    ) : double;
    public: double TwainGetAvailableBrightnessNo( 
       int Number
    ) 
    public:
    double TwainGetAvailableBrightnessNo( 
       int Number
    ) 

    Parameters

    Number
    Index of the available brightness value. Must be a value between 1 and TwainGetAvailableBrightnessCount() returned value.

    Return Value

    The selected brightness value. Else 0 if fail.
    Remarks
    Before using this method check that the TWAIN state is >= 4 (TWAIN_SOURCE_OPEN) To get the TWAIN state, use the TwainGetState() method.
    See Also