Resource Base
Table of contents

GrayscaleTransformationModes

GrayscaleTransformationModes helps control the colour mode of the grayscale image.

It consists of one or more of the following modes, each mode representing a way to transform the grayscale image.

Candidate Mode List

  • GTM_ORIGINAL
  • GTM_INVERTED
  • GTM_AUTO

GTM_ORIGINAL

Keeps the original grayscale.

GTM_INVERTED

Transforms the image to inverted grayscale.

GTM_AUTO

Let the library choose an algorithm automatically for grayscale transformation.

Setting Methods

As JSON Parameter

GrayscaleTransformationModes as a JSON parameter is a JSON Object array defined as below.

Parent Json Object Key Name Key Value
ImageParameter GrayscaleTransformationModes A JSON Object array while each Object is defined as below
Key Name Key Value Description
Mode Any one in Candidate Mode List as string (Required) Specifies a mode for grayscale transformation.

Default Value

{
    "GrayscaleTransformationModes":[
        {
            "Mode": "GTM_ORIGINAL"
        }
    ]
}

JSON Parameter Example

{
    "GrayscaleTransformationModes": [
        {
            "Mode": "GTM_ORIGINAL"
        },
        {
            "Mode": "GTM_INVERTED" 
        }
    ]
}

This page is compatible for:

Is this page helpful?

YesYes NoNo

In this article:

latest version

    • Latest version
    • Version 2.x
      • Version 2.2.10
      • Version 2.2.0
      • Version 2.0.21
      • Version 2.0.20
      • Version 2.0.11
      • Version 2.0.10
      • Version 2.0.0
    • Version 1.x
      • Version 1.0.21
      • Version 1.0.20
      • Version 1.0.12
      • Version 1.0.11
      • Version 1.0.10
      • Version 1.0.0
    • Documentation Homepage
    Change +