From RAD Studio API Documentation
Jump to: navigation, search



TFilterAffineTransform = class(TFilterBaseFilter)


class PASCALIMPLEMENTATION TFilterAffineTransform : public TFilterBaseFilter


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


TFilterAffineTransform is a wrapper for TAffineTransformEffect.

FMX.Filter.Effects.TFilterAffineTransform inherits from FMX.Filter.Effects.TAffineTransformEffect. All content below this line refers to FMX.Filter.Effects.TAffineTransformEffect.

TAffineTransformEffect is a class for creating an effect that applies an affine transformation to the texture of visible objects.

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

TAffineTransformEffect offers the possibility to rotate and scale the texture of the object to which the effect is applied. The changes are applied only to the object's texture, and not to the entire object. The object's dimensions and position are not affected.

To apply a rotation transformation, change the Center and Rotation properties.

To scale the object's texture, set the Scale property.

The following table shows the result of an affine transformation effect on a .png picture (with transparent background) placed on a form (using a TImage object).

No effect (original picture)

Rotation=0 |Scale=0.5

Rotation=30 |Scale=0.5

FireMonkey logo NoEffects.PNG

FireMonkey logo TAffineTransformationEffect Scaled.PNG

FireMonkey logo TAffineTransformationEffect Scaled Rotated.PNG.PNG

See Also

Code Examples