FMX.Effects.TShadowEffect

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Effects.TFilterEffectFMX.Effects.TEffectFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTShadowEffect

Delphi

TShadowEffect = class(TFilterEffect)

C++

class PASCALIMPLEMENTATION TShadowEffect : public TFilterEffect

Properties

Type Visibility Source Unit Parent
class public
FMX.Effects.pas
FMX.Effects.hpp
FMX.Effects FMX.Effects

Description

TShadowEffect is a class for creating a shadow effect for visible objects.

TShadowEffect is an implementation of TEffect. For further information, go to TEffect and FireMonkey Image Effects.

Beside the properties provided by TEffect, TShadowEffect provides five specific properties: Direction, Distance, Opacity, ShadowColor, and Softness.

For example, the following table shows the result of TShadowEffect on a .png picture (with transparent background) placed on a form (using a TImage object) and on a TRectangle object. For both objects, Direction is set to 60, Distance, to 3, Opacity, to 0,6, ShadowColor, to Black, and Softness, to 0,3.


Original TShadowEffect

FireMonkey logo NoEffects.PNG

FireMonkey logo TShadowEffect.PNG

Rectangle1 FMX NoEffect.PNG

Rectangle1 FMX TShadowEffect.PNG

See Also

Code Examples