diff options
author | Michael Vrhel <michael.vrhel@artifex.com> | 2022-05-03 11:50:20 -0700 |
---|---|---|
committer | Michael Vrhel <michael.vrhel@artifex.com> | 2022-05-03 12:33:09 -0700 |
commit | a524cf9d66f7e11838b0da74fb607e1477ad0e15 (patch) | |
tree | 0eb245a10c6c6ba0b534d532b1c29686173ed2ee /doc | |
parent | 12532548a94c94821da0238b84c04b918659eb4a (diff) | |
download | ghostpdl-a524cf9d66f7e11838b0da74fb607e1477ad0e15.tar.gz |
Add commmand line options for threshold on blacktext and blackvector
Adding in the following command line options to provide more flexibility.
-dBlackThresholdL=float /* Luminance threshold */
-dBlackThresholdC=float /* Chrominance threshold */
Where anything above or equal to a BlackThresholdL in terms of Luminance will
be mapped to white. Everything below will be mapped to black. So if
someone wants all colors to go to black (even white ones) they can set
-dBlackThresholdL=101 since all colors will have an L* less than this. If
they want all the colors to go to white, they can set -dBlackThresholdL=-1
since all colors will have an L* greater than this. If they want only pure
white colors to remain white, a value of 100 should work, but I suspect that
could be fraught with rounding errors.
The BlackThresholdC only comes into play with BlackThresholdL < 100. If for
example you have BlackThresholdL = 95 and dBlackThresholdC=10 then only those
colors that have an L* >= 95 and are within a distance of 10 in terms of a*
AND b* values from the neutral axis will be mapped to white. All others
will be mapped to black. So we have a cuboid cut out in CIELAB space
centered on the neutral axis to which we can specify the L* height and the
chroma width. Colors within this cuboid get mapped to white. All
others are mapped to black.
Diffstat (limited to 'doc')
-rw-r--r-- | doc/Use.htm | 41 |
1 files changed, 40 insertions, 1 deletions
diff --git a/doc/Use.htm b/doc/Use.htm index 68227e5e7..263bc5cef 100644 --- a/doc/Use.htm +++ b/doc/Use.htm @@ -2667,7 +2667,46 @@ processing of PostScript source files. Note: in releases 7.30 and <dd>Forces text to be drawn with black. This occurs for text fill and text stroke operations. PDF output created with this setting will be updated to be drawn with gray values of 0. Type 3 fonts, which are -sometimes used for graphics, are not affected by this parameter. </dd> +sometimes used for graphics, are not affected by this parameter. Note, +works only for fills with gray, rgb, and cmyk. Pattern, +separation, and deviceN fills will not be affected.</dd> +</dl> + +<a name="BlackVector"></a> +<dl> + <dt><code>-dBlackVector</code></dt> +<dd>Forces vector stroke and fills to be drawn with black. PDF output created with this setting will be +updated to be drawn with gray values of 0. Note, works only for fills with gray, rgb, and cmyk. Pattern, +separation, and deviceN fills will not be affected. </dd> +</dl> + +<a name="BlackThresholdL"></a> +<dl> + <dt><code>-dBlackThresholdL=</code><em>float</em></dt> +<dd>Sets the threshold for the luminance value (L*) at which that value +and above will be mapped to white when using the BlackText and BlackVector +option. Default is 90. Pure white has a value of 100. Pure black has a value +of 0. This means that if you set BlackThresholdL=101, all colors will be +mapped to black. If you set BlackThresholdL=75, colors that are below an +L* value of 75 will be mapped to black. Colors at or above an L* of 75 will +be mapped to white, depending upon the setting of BlackThresholdC (see below). </dd> +</dl> + +<a name="BlackThresholdC"></a> +<dl> + <dt><code>-dBlackThresholdC=</code><em>float</em></dt> +<dd>For colors that are at or above the value set by BlackThresholdL +(or the default setting of 90), map colors to white that are within +a distance of BlackThresholdC from the CIELAB neutral axis in terms +of the L1 norm on the a* and b* value. All others are mapped to black. +This has the effect of forcing colors with high luminance and high +chrominance to black (e.g. pure yellow) while those with a lower luminance and less +chrominance to white (e.g. a light gray). Default value is 3. You can +visualize the region that is mapped to white as a cuboid that is centered +on the CIELAB neutral axis with one end tied to the L*=100 value. +The cuboid cross sections across the +neutral axis are squares whose size is set by BlackThresholdC. The cuboid +length is set by BlackThresholdL and is effectively 100-BlackThresholdL. </dd> </dl> <h4><a name="Page_parameters"></a>Page parameters</h4> |