DTWAIN_IsPixelTypeSupported
The DTWAIN_IsPixelTypeSupported function checks if a Source supports setting the pixel type (number of colors) of an acquired image.
DTWAIN_BOOL DTWAIN_IsPixelTypeSupported (
Parameters Source Specifies an open TWAIN Source.
PixelType Specifies pixel type (number of colors) to test, or DTWAIN_ANYSUPPORT
Return Values If setting the page pixel type (number of colors) is supported for the Source, TRUE is returned. Otherwise FALSE is returned.
Comments The DTWAIN_IsPixelTypeSupported function takes the open Source Source, and checks to see if the pixel type (number of colors) setting PixelType is supported. The PixelType value can be any of the values found in DTWAIN Pixel Constants.
If PixelType is DTWAIN_ANYSUPPORT, DTWAIN_IsPixelTypeSupported returns whether the Source supports setting of the pixel type (except for DTWAIN_PIXELDEFAULT. All Sources are assumed to support this)
TWAIN State Transitions The source must be opened in State 4
Prerequisite Function Call(s)
DTWAIN Source Selection Function
See Also |