Bitonal Command

Smartsite 7.8 - ...

The Bitonal command applies a bi-tonal effect to the image, using the two specified colors.

The specified darkcolor replaces the darker colors of the image, and the lightcolor replaces the lighter colors of the image.
The threshold determines which pixels/colors are replaced by which of the two.

Available as of Smartsite 7.8.

Parameters

Shorthand Values
bitonal Set to 1 to apply the bi-tonal effect.
lightcolor The color name or HEX value, e.g. khaki or F0E68C (required).
darkcolor The color name or HEX value, e.g. blue or 0000FF (required).
threshold The threshold value (defaults to 100).

Command definition

XML CopyCode image Copy Code
  <add id="bitonal" type="Smartsite.ImageProcessor.Commands.BitonalCommand, Smartsite.ImageProcessor" enabled="true">
    <parameters>
      <add name="bitonal" shortcut="bitonal" />
      <add name="darkcolor" shortcut="darkcolor" />
      <add name="lightcolor" shortcut="lightcolor" />
      <add name="threshold" shortcut="threshold" />
    </parameters>
  </add>

Examples

Original image
Original image

Example: bi-tone effect
Bi-tonal effect using black and orange-red (?hid=img;bitonal=1;darkcolor=black;lightcolor=orangered;threshold=350;)

Example: bi-tone effect
Bi-tonal effect using blue and khaki (?hid=img;bitonal=1;darkcolor=blue;lightcolor=khaki;threshold=350;)