In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainGetPixelType Method

TwainGetPixelType Method (GdPictureImaging)

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

Return Value

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