Table of Contents ▸ List of Commands ▸ Mathematical Operators ▸ mul | ◀ mmul | neq ▶ |
mul | Built-in command |
Arguments:
- value[%] or
- [image] or
- 'formula' or
- (no arg)
Description:
Multiply selected images by specified value, image or mathematical expression, or compute the pointwise product of selected images.(equivalent to shortcut command *).
See also:
add, sub, div.Examples of use:
• Example #1
<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +mul 2 cut 0,255
• Example #2
<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> (1,2,3,4,5,6,7,8) ri[-1] [0] mul[0] [-1]
• Example #3
<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> mul '1-3*abs(x/w-0.5)' cut 0,255

• Example #4
<a href="image.jpg" class="highslide" onclick="return hs.expand(this)">image.jpg</a> +luminance negate[-1] +mul