FMX.Filter.Effects.TWaterTransitionEffect

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Filter.Effects.TImageFXEffectFMX.Effects.TFilterEffectFMX.Effects.TEffectFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTWaterTransitionEffect

Delphi

TWaterTransitionEffect = class(TImageFXEffect)

C++

class PASCALIMPLEMENTATION TWaterTransitionEffect : public TImageFXEffect

Properties

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

Description

TWaterTransitionEffect is a class for creating an effect that makes a transition between the texture of visible objects and another texture, using a troubled water effect.

For further information, go to TImageFXEffect and FireMonkey Image Effects.

The transition is made between the texture of the object to which the effect is applied and the bitmap specified by the Target property. If Target is not specified, TWaterTransitionEffect also uses the texture of the object to which the effect is applied as the second texture of the transition. TWaterTransitionEffect applies the troubled water effect over the second texture, and then overlaps it over the first texture (the texture of the object to which the effect is applied). To change the water troubling, set the RandomSeed property.

The progress of the transition between the two textures can be changed by using the Progress property. A low value for Progress results in the Target texture becoming more visible.

The following table shows the result of the TWaterTransitionEffect effect on a .png picture, with transparent background, placed on a form (using a TImage object). Default values are used for the RandomSeed and Progress properties (RandomSeed=0.3,Progress= 30%).

No effect (original picture) NoTarget specified With Target specified

FireMonkey logo NoEffects.PNG

FireMonkey logo TWaterTransitionEffect no texture.PNG

FireMonkey logo TWaterTransitionEffect with texture.PNG

See Also

Code Examples