Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

Twain.SetPixelType

Sets the pixel type requested on next Twain.Acquire command.

Component Version macOS Windows Linux Server iOS SDK
Twain 3.1 ✅ Yes ✅ Yes ❌ No ❌ No ❌ No
MBS( "Twain.SetPixelType"; value )   More

Parameters

Parameter Description Example
value The new pixel type setting. 2

Result

Returns OK.

Description

Sets the pixel type requested on next Twain.Acquire command.
Value can be 0 for BW, 1 for Gray, 2 for RGB, 3 for Palette.
The plugin can request als CMY (4), CMYK (5), YUV (6), YUVK (7) and CIEXYZ (8), but can't currently decode those.

See also

Example Databases

Blog Entries

This function is free to use.

Created 18th August 2014, last changed 18th August 2014


Twain.SetPaperSize - Twain.SetResolutionX