FMX.Filter.Effects.TFilterSwipeTransition

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Filter.Effects.TFilterBaseFilterFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTFilterSwipeTransition

Delphi

TFilterSwipeTransition = class(TFilterBaseFilter)

C++

class PASCALIMPLEMENTATION TFilterSwipeTransition : public TFilterBaseFilter

Properties

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

Description

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

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