GetUniqueOptionsSupported() example
- bool PluginMain::GetUniqueOptionsSupported(CString DeviceId, CString & XML)
- {
- PluginCallLogger LogCall("PluginMain::GetUniqueOptionsSupported(\"%s\", ...)", (LPCSTR)DeviceId);
- //if our base class is not happy with this call...
- if (PluginBase::GetUniqueOptionsSupported(DeviceId, XML) != true)
- return false;
-
- XmlFileInfo XmlWriter;
- CString XmlPathTop;
- CString XmlSectionPath;
- CString XmlValuePath;
-
- XmlWriter.Clear(); //clear values
- XmlWriter.AddContainer("/UniqueOptions", XmlPathTop);
-
- XmlWriter.AddContainer(XmlPathTop + "/Imaging", XmlSectionPath); //add image option section
-
- XmlWriter.AddContainer(XmlSectionPath + "/GrayscaleAndColorResolution", XmlValuePath); //value name
- XmlWriter.AddValue(XmlValuePath, "DisplayName", "Grayscale/Color Resolution");
- XmlWriter.AddValue(XmlValuePath, "ValueType", "List");
- XmlWriter.AddValue(XmlValuePath, "Values", "100,200,240,300");
-
XmlWriter.AddValue(XmlValuePath, "DefaultValue", "100"); //the
default resolution for grayscale and color images should be 100 dpi
- XmlWriter.AddValue(XmlValuePath, "Help", "Resolution for both grayscale and color images in dots per inch.");
- XmlWriter.AddContainer(XmlSectionPath + "/Brightness", XmlValuePath); //value name
- XmlWriter.AddValue(XmlValuePath, "DisplayName", "Image Brightness");
- XmlWriter.AddValue(XmlValuePath, "ValueType", "Range");
- XmlWriter.AddValue(XmlValuePath, "Values", "0-255,1"); //0 to 255, increment = 1
- XmlWriter.AddValue(XmlValuePath, "DefaultValue", "128");
- XmlWriter.AddValue(XmlValuePath, "Help", "Brightness of the image. Higher values make the image lighter.");
-
- XmlWriter.AddContainer(XmlSectionPath + "/FrontJpegQuality", XmlValuePath); //value name
- XmlWriter.AddValue(XmlValuePath, "DisplayName", "Front JPEG Quality");
- XmlWriter.AddValue(XmlValuePath, "ValueType", "Range");
- XmlWriter.AddValue(XmlValuePath, "Values", "5-95,1"); //5 to 95, increment = 1
- XmlWriter.AddValue(XmlValuePath, "DefaultValue", "75");
- XmlWriter.AddValue(XmlValuePath, "Help", "Higher values yield a higher image quality.");
-
- XmlWriter.AddContainer(XmlSectionPath + "/RearJpegQuality", XmlValuePath); //value name
- XmlWriter.AddValue(XmlValuePath, "DisplayName", "Rear JPEG Quality");
- XmlWriter.AddValue(XmlValuePath, "ValueType", "Range");
- XmlWriter.AddValue(XmlValuePath, "Values", "5-95,1"); //5 to 95, increment = 1
- XmlWriter.AddValue(XmlValuePath, "DefaultValue", "75");
- XmlWriter.AddValue(XmlValuePath, "Help", "Higher values yield a higher image quality.");
-
- XmlWriter.Write(XML);
- return true;
- }
Related Articles
Should Ranger call my GetUniqueOptionsSupported() function?
No, Ranger does not call GetUniqueOptionsSupported(). However, applications such as RangerFlex may call this function to determine which unique options are available. Ranger® - The universal check scanner interface Copyright © 2023 Silver Bullet ...
Local Network Access Permission: Browser Requirements for Ranger Remote (2026)
A number of browsers, including Chrome, Edge, Firefox are gradually introducing stricter permission requirements for web applications and websites that access the local network and user devices. Going forward, users may be prompted by their browser ...
How can I install Ranger Remote using the Command Prompt?
You have the option of installing Ranger Remote through the Command Prompt with the following options: To install silently, use the option "/S" To install with WebSocket Secure (WSS) enabled, use the option "/WSS" To install with auto-start on PC ...
Can you provide a Ranger portability overview?
Ranger provides a common ActiveX control and/or DLL interface for all scanners that we support. See: Production versions of Ranger After the scanner powers up, Ranger creates an INI file that describes the features of the attached check scanner. For ...
Why can I not view tiff images from Ranger in the Windows XP operating system?
The image viewer in Windows XP will not display JPEG (in TIFF) images. Options for working around this issue include the use of another image viewer that supports this image type or changing the image format used for grayscale images. IrfanView is an ...