Documentation
Table of contents

Enumeration ImageColourMode

ImageColourMode describes the output colour mode of the normalized image.

  • JavaScript
  • Android
  • Swift
  • C++
  • C#
  • Python
enum EnumImageColourMode {
    /** Output image in colour mode. */
    ICM_COLOUR = 0,
    /** Output image in grayscale mode. */
    ICM_GRAYSCALE = 1,
    /** Output image in binary mode. */
    ICM_BINARY = 2
}
@Retention(RetentionPolicy.CLASS)
public @interface EnumImageColourMode {
    /** Output colour image.*/
    public static final int ICM_COLOUR = 0;
    /** Output grayscale image.*/
    public static final int ICM_GRAYSCALE = 1;
    /** Output binary image.*/
    public static final int ICM_BINARY = 2;
    public EnumImageColourMode() {
    }
}
typedef NS_ENUM(NSInteger , DSImageColourMode)
{
    /** Output colour image.*/
    DSImageColourModeColour = 0x01,
    /** Output grayscale image.*/
    DSImageColourModeGrayscale = 0x02,
    /** Output binary image.*/
    DSImageColourModeBinary = 0x04
}NS_SWIFT_NAME(ImageColourMode);
typedef enum ImageColourMode
{
    /** Output image in colour mode. */
    ICM_COLOUR = 0,    
    /** Output image in grayscale mode. */
    ICM_GRAYSCALE = 1,     
    /** Output image in binary mode. */
    ICM_BINARY = 2
} ImageColourMode;
public enum EnumImageColourMode
{
    ICM_COLOUR = 0,
    ICM_GRAYSCALE = 1,
    ICM_BINARY = 2
}
class EnumImageColourMode(IntEnum):
    ICM_COLOUR = 0
    ICM_GRAYSCALE = 1
    ICM_BINARY = 2

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article: