FMX.Filter.Effects.TWrapEffect

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TWrapEffect = class(TImageFXEffect)

C++

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

TWrapEffect is a class for creating an effect that wraps the texture of visual objects, following two curves.

For further information, go to TImageFXEffect and FireMonkey Image Effects.

TWrapEffect uses Bezier curves. A Bezier curve is defined by four points.

The TWrapEffect properties define, for each of the curves, the end and start points, and two control points. The wrapping is applied by curving the image, starting from the left and right edges. The LeftControl1, LeftControl2, LeftEnd, and LeftStart properties specify the points that define the curve used at the left side of the texture. The RightControl1, RightControl2, RightEnd, and RightStart properties specify the points that define the curve used at the right side of the texture.

The following table shows the result of the TWrapEffect effect on a .png picture, placed on a form (using a TImage object). Default values are used for the TWrapEffect properties.

No effect (original picture) Result

FireMonkey logo NoEffects shadow.PNG

FireMonkey logo TWrapEffect.PNG

See Also

Code Examples