FMX.Filter.Effects.TAffineTransformEffect

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TAffineTransformEffect = class(TImageFXEffect)

C++

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

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