FMX.Filter.Effects.TMagnifyTransitionEffect

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TMagnifyTransitionEffect = class(TImageFXEffect)

C++

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

TMagnifyTransitionEffect is a class for creating an effect that makes a transition between the texture of visible objects and another texture, using a smooth magnify 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, TMagnifyTransitionEffect also uses the texture of the object to which the effect is applied as the second texture of the transition. TMagnifyTransitionEffect applies a smooth magnify effect on the object's texture, and inserts the Target in the middle of the magnified area. The Target is also distorted when applying the effect. The center of the magnified area is specified by Center.

The progress of the transition between the two textures can be changed by using the Progress property.

The following table shows the result of the TMagnifyTransitionEffect effect on two different images placed on a form (using a TImage object):

  • A .png image with a transparent background
  • A .png image with no transparent areas

The two images are used as the first texture and as the Target.

The Center of the circle area is set in the middle of the images. The used value for the Progress property is the default value (Progress=30%).

No effect (original pictures) No Target specified With Target specified

FireMonkey logo NoEffects.PNG

FireMonkey logo TMagnifyTransitionEffect no texture1.PNG

FireMonkey logo TMagnifyTransitionEffect with texture1.PNG

Filter Effecs texture1.PNG

FireMonkey logo TMagnifyTransitionEffect no texture2.PNG

FireMonkey logo TMagnifyTransitionEffect with texture2.PNG

See Also

Code Examples