Marblecore Imaging Library Documentation

Documentation Introduction
Documentation / Marblecore Imaging / Methods / EffectButton

EffectButton method

Applies a button effect on the image.


Boolean EffectButton(nSize As Number, bSunken As Boolean, bSmooth As Boolean, nLightColor As Number, nLightOpacity As Number, nDarkColor As Number, nDarkOpacity As Number)

Return value

Returns true if the function succeeded.


nSizeNumberNoSize of the button border.
bSunkenBooleanNoOptional parameter which enables or disables a sunken (inverted border). Disabled by default.
bSmoothBooleanNoOptional parameter which enables or disables the smooth border effect. Enabled by default.
nLightColorNumberNoOptional parameter which specifies the light color of the border.
nLightOpacityNumberNoOptional parameter containing the opacity percentage (where 0% is completely transparent) for the light color.
nDarkColorNumberNoOptional parameter which specifies the dark color of the border.
nDarkOpacityNumberNoOptional parameter containing the opacity percentage (where 0% is completely transparent) for the dark color.


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 // Load the specified image in memory
2 MarblecoreImaging.LoadFromFile("example-effectbutton-before.jpg");
4 // Execute the operation
5 MarblecoreImaging.EffectButton();
7 // Save the modified image to the specified file
8 MarblecoreImaging.SaveToFile("example-effectbutton-after.jpg");



See also

EffectBorder | EffectColorOverlay | EffectInnerBevel | EffectInnerGlow | EffectMask | EffectOuterGlow | EffectShadow | EffectSoftenBorder