Reference Guide
GdPicture14 Namespace / GdPictureImaging Class / TwainGetPixelType Method

In This Topic
    TwainGetPixelType Method (GdPictureImaging)
    In This Topic
    Asks the source for the current pixel type.
    Public Function TwainGetPixelType() As TwainPixelType
    public TwainPixelType TwainGetPixelType()
    public function TwainGetPixelType(): TwainPixelType; 
    public function TwainGetPixelType() : TwainPixelType;
    public: TwainPixelType TwainGetPixelType(); 
    TwainPixelType TwainGetPixelType(); 

    Return Value

    TwainPixelType. A member of the TwainPixelType enumeration. -1 If fail -> Use TwainGetLastResultCode() and TwainGetLastConditionCode() methods for diagnosing the error.
    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