From RAD Studio API Documentation
Jump to: navigation, search



TFilterSwipeTransition = class(TFilterBaseFilter)


class PASCALIMPLEMENTATION TFilterSwipeTransition : public TFilterBaseFilter


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


TFilterSwipeTransition is a wrapper for TSwipeTransitionEffect.

FMX.Filter.Effects.TFilterSwipeTransition inherits from FMX.Filter.Effects.TSwipeTransitionEffect. All content below this line refers to FMX.Filter.Effects.TSwipeTransitionEffect.

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



No Back - With Target No Back - No Target



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