FMX.Filter.Effects.TFilterWrap

From RAD Studio API Documentation
Jump to: navigation, search

Error: Image is invalid or non-existent.

Delphi

TFilterWrap = class(TFilterBaseFilter)

C++

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

TFilterWrap is a wrapper for TWrapEffect.

FMX.Filter.Effects.TFilterWrap inherits from FMX.Filter.Effects.TWrapEffect. All content below this line refers to FMX.Filter.Effects.TWrapEffect.

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
Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination

See Also

Code Examples