A member of the TwainPixelType enumeration.





In This Topic
GdPicture14 Namespace / GdPictureImaging Class / TwainSetPixelType Method

TwainSetPixelType Method (GdPictureImaging)

In This Topic
Tries to set the current pixel type for the selected twain source.
Syntax
'Declaration

 

Public Function TwainSetPixelType( _

   ByVal PixelType As TwainPixelType _

) As Boolean
public bool TwainSetPixelType( 

   TwainPixelType PixelType

)
public function TwainSetPixelType( 

    PixelType: TwainPixelType

): Boolean; 
public function TwainSetPixelType( 

   PixelType : TwainPixelType

) : boolean;
public: bool TwainSetPixelType( 

   TwainPixelType PixelType

) 
public:

bool TwainSetPixelType( 

   TwainPixelType PixelType

) 

Parameters

PixelType
A member of the TwainPixelType enumeration.

Return Value

True if success, else False -> 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