Documentation / Marblecore Imaging / Methods / EffectOuterGlow
EffectOuterGlow method
Creates an outer glow behind the image canvas.
Syntax
Boolean EffectOuterGlow(nSize As Number, nBlur As Number, nColor As Number, nOpacity As Number, bKeepSize As Boolean)
Return value
Returns true if the function succeeded.
Parameters
Parameter | Type | Required | Description |
nSize | Number | No | Optional parameter which specifies the size of the glow. |
nBlur | Number | No | Optional parameter which specifies the blur of the glow. |
nColor | Number | No | Optional parameter which specifies the glow color. |
nOpacity | Number | No | Optional parameter which specifies the opacity of the glow. |
bKeepSize | Boolean | No | Optional parameter which enables or disables automatic resizing of the image. If this parameter is true, the orginial image width and height are retained. |
Example
The example below shows the effect of this method and how to use it. You can slide the marker in the before/after picture to see the difference. If you take a look at the example code, assume there is a reference to the Marblecore Imaging object with the name 'MarblecoreImaging'. Transparent parts of the image are displayed using a checkerboard pattern.
1
2 MarblecoreImaging.LoadFromFile("example-effectouterglow-before.jpg");
3
4
5 MarblecoreImaging.EffectOuterGlow(10, 25, 0, 50);
6
7
8 MarblecoreImaging.SaveToFile("example-effectouterglow-after.jpg");
Category
Effects
See also
EffectBorder |
EffectButton |
EffectColorOverlay |
EffectInnerBevel |
EffectInnerGlow |
EffectMask |
EffectShadow |
EffectSoftenBorder