Function
The
Percent Blur Alpha function blurs the image according to
a percentage factor, rather than a pixel size which is done
in the Blur Alpha. Setting 100 percent therefore blurs the
entire image in the blur calculation. The Percent Blur Alpha
preset is set to blur just the alpha channel of the image,
which is the only difference to Shake's Percent Blur.
Parameters
|
Type
|
Defaults
|
Function
|
xPercent |
float
|
0 |
Percent
of the image taken into consideration for the horizontal
blur. 100 = the entire image, or a flat color. Default
is 0. |
yPercent |
float
|
xPercent/Get
DefaultAspect()
/height*width |
Percent
of the image taken into consideration for the vertical
blur. 100 = the entire image, or a flat color. Default
is 0. |
spread |
int
|
0 |
This
tells Shake whether it needs to treat the area outside
of the frame.
0
= Compute within the frame (default)
1 = Compute outside of the frame
Because
the workspace is infinite, it's sometimes handy to
compute outside of the frame as well, for example
if the Blur is placed after a Scale command. Note
that if there is nothing outside of the frame (ie,
black), you will see a black edge.
|
channels |
string
|
"nnna" |
Which
channels Shake should blur. Any or all of rgba. |
Synopsis
image
PercentBlurAlpha(
image In,
float xPercent,
float yPercent,
int spread,
const char * channels
);
Script
image
= PercentBlurAlpha( In, xPercent, yPercent, spread, "channels"
);
Command
Line (Terminal)
shake
-percentbluralpha xPercent yPercent spread etc...
Examples
(Terminal)
shake
/www.CGM-online.com/doc/CGM_Logo.tif -percentbluralpha 10
- adds the PercentBlurAlpha filter to the CGM logo.
The blur amount is set to 10 percent.
The preset values are used for all other parameters.
shake /www.CGM-online.com/doc/CGM_Logo.tif -percentbluralpha"Linear(0,0@1,10@20)"
- adds the PercentBlurAlpha filter to the CGM logo and
animates the amout of blur from 0 to 10 percent
during the frame range of 1 to 20.
shake /www.CGM-online.com/doc/CGM_Logo.tif -percentbluralpha
10 0 0 "rgbn"
- adds the PercentBlurAlpha filter to the CGM logo and blurs
only horizontally all channels instead of the
alpha channel.
Example
(Shake's Command Line)
/www.CGM-online.com/doc/CGM_Logo.tif -percentbluralpha 10
|