FMX.Filter.Effects.TSwipeTransitionEffect
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 |
---|---|---|
With Back and Target | With Back - No Target | |
No Back - With Target | No Back - No Target | |
Animating the TSwipeTransitionEffect transition results in an effect that simulates the turning of a book page.
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.