How to get grayscale bitmap or PNG images with Ranger

Started by nspencer, June 27, 2016, 10:19:56 AM

Previous topic - Next topic

nspencer

As of release 4.3.1.0-2.0.31.0, RangerForSmartPVA supports grayscale bmp or png images.

In the .ini file located at C:\ProgramData\Silver Bullet Technology\Ranger\Scanner Plug-ins\Burroughs-SmartPVA\Burroughs-SmartPVA.ini see the following options:

[Image.FrontGrayscale]
    //
    //Compression type
    //    3 = JPEG
    //    20 = Grayscale Bitmap
    //    21 = Grayscale PNG
    //The default is 3.
COMPRESSIONTYPE=3

[Image.RearGrayscale]
    //
    //Compression type
    //    3 = JPEG
    //    5 = Full Resolution JPEG
    //    20 = Grayscale Bitmap
    //    21 = Grayscale PNG
    //The default is 3.
COMPRESSIONTYPE=3


These options must be set to the appropriate image type.  In addition, the generic options to enable grayscale images must be set.

[OptionalDevices]
NeedFrontImage2 =true
NeedRearImage2 =true

Please see the following code example for enabling these options to get grayscale PNG for front and rear:

SetGenericOption("OptionalDevices", "NeedFrontImage2", "true");
SetGenericOption("OptionalDevices", "NeedRearImage2", "true");
SetDriverOptions("Image.FrontGrayscale", "COMPRESSIONTYPE", "21");
SetDriverOptions("Image.RearGrayscale", "COMPRESSIONTYPE", "21");


Please note that these driver options will not work in conjunction with some other driver options:

The following options must be 0 (default)

[Image.UIMFRONTIMG3]
TREATSNIPPETASIMAGE=0

[Image.FrontColor]
COMPRESSIONTYPE=0

[Image.RearColor]
COMPRESSIONTYPE=0


Ranger® - The universal check scanner interface
Copyright © 2016 Silver Bullet Technology
www.sbullet.com