×
MENU
Resource Base
Table of contents

Thanks for downloading Dynamsoft Barcode Reader Package!

Your download will start shortly. If your download does not begin, click here to retry.

ImageParameter Object | GrayscaleTransformationModes

GrayscaleTransformationModes

Mode Properties

GrayscaleTransformationModes is a parameter for setting the mode for the grayscale image conversion. It consisits of one or more GrayscaleTransformationMode items. The array index represents the priority of the item. The smaller index is, the higher priority is.

Value Type Value Range Default Value
string array or GrayscaleTransformationMode array “GTM_SKIP”
“GTM_INVERTED”
“GTM_ORIGINAL”
[“GTM_ORIGINAL”, “GTM_SKIP”, “GTM_SKIP”, “GTM_SKIP”, “GTM_SKIP”, “GTM_SKIP”, “GTM_SKIP”, “GTM_SKIP”]

Mode Arguments

LibraryFileName

Sets the file name of the library to load dynamically.

Value Type Value Range Default Value Valid For
string A string value representing file name. ”” All GrayscaleTransformationMode items except GTM_SKIP
  • Remarks
    The library must be in the same place with Dynamsoft Barcode Reader Library.
LibraryParameters

Sets the parameters passed to the library to load dynamically.

Value Type Value Range Default Value Valid For
string A string value representing parameters. ”” All GrayscaleTransformationMode items except GTM_SKIP

Setting Methods

As JSON Parameter

GrayscaleTransformationModes as a JSON parameter is a JSON Object array. ach JSON Object has a key Mode for setting the mode, and the array index decides the priority of the mode for the grayscale image conversion. Default values will be used if there is no manual setting.

Json Object Json Parameter Name Value Type
ImageParameter GrayscaleTransformationModes JSON Object Array

Json Parameter Example

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

 

As PublicRuntimeSettings Member

GrayscaleTransformationModes is a GrayscaleTransformationMode array defines in furtherModes which is a struct member of PublicRuntimeSettings. It is used for setting the modes and the priority for the grayscale image conversion. Default value will be used if there is no manual setting.

Struct Struct Member Name Value Type
PublicRuntimeSettings->furtherModes grayscaleTransformationModes GrayscaleTransformationMode[8]

See Also

This page is compatible for:

Version 7.5

Is this page helpful?

YesYes NoNo

latest version

  • Latest Version
  • version 8.1.2
  • version 8.0
  • version 7.6
  • version 7.5
Change +
© 2003–2020 Dynamsoft. All rights reserved.
Privacy Statement / Site Map / Home / Purchase / Support