Show: Delphi C++
Display Preferences

FMX.Filter.Effects.TSwipeTransitionEffect

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TSwipeTransitionEffect = class(TImageFXEffect)

C++

class PASCALIMPLEMENTATION TSwipeTransitionEffect : 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

TSwipeTransitionEffect is a class for creating an effect that applies a transition between the texture of visible objects and another texture, by swiping the two textures.

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, TSwipeTransitionEffect also uses the texture of the object to which the effect is applied as the second texture of the transition.

The transition between the original picture and the Target is represented by the Back property.

TSwipeTransitionEffect swipes the texture of the object, folding itself. The amount of folding can be set through the Deep property. The swiping center is in one of the corners of the texture.

The following table shows the result of the TSwipeTransitionEffect effect on a .png picture, placed on a form (using a TImage object). Default values are used for the Deep, CornerPoint, and MousePoint properties (Deep= 50, CornerPoint=(0,0), MousePoint=(210,60)).

No effect (original picture) Target Back

FireMonkey logo NoEffects full.PNG

Filter Effecs texture.PNG

Filter Effecs transparent texture.PNG

With Back and Target With Back - No Target

TSwipeTransitionEffectBackAndTarget.PNG

TSwipeTransitionEffectBackAndNoTarget.PNG

No Back - With Target No Back - No Target

TSwipeTransitionEffectNoBackAndTarget.PNG

TSwipeTransitionEffectNoBackAndNoTarget.PNG

Animating the TSwipeTransitionEffect transition results in an effect that simulates the turning of a book page.

TSwipeTransitionEffect Animation.gif

To animate a TSwipeTransitionEffect transition, use a TPathAnimation to move the MousePoint on a path. An example of how to animate a TSwipeTransitionEffect is described in the FMX.TSwipeTransitionEffect Animation example.

See Also

Code Examples

Personal tools
In Other Languages
Previous Versions
Assistance