FMX.Filter.Effects.TSmoothMagnifyEffect

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TSmoothMagnifyEffect = class(TImageFXEffect)

C++

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

TSmoothMagnifyEffect is a class for creating an effect that smoothly magnifies a circular region of the texture of visual objects.

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

The center of the circular region is specified through the Center property.

The magnified circular area is composed of two concentric zones:

  • The inner circular area, where a simple TMagnifyEffect effect is applied. The InnerRadius property specifies the radius of the centered circular area. In this area, a single magnifying factor is applied.
  • The outer circular area. The OuterRadius property specifies the radius of this area. In this area, the magnifying factor gradually increases until it reaches the magnifying factor of the inner circular area, from the outside radius to the inner radius.

If the OuterRadius value is smaller than or equal to the InnerRadius value, then TSmoothMagnifyEffect has the same effect as TMagnifyEffect.

The aspect of the circular region can be customized through the AspectRatio property. The magnification factor can be set through the Magnification property.

The following table shows the result of the TSmoothMagnifyEffect effect on a .png picture, placed on a form (using a TImage object). The Center of the circular region is set in the middle of the image. The rest of the TSmoothMagnifyEffect properties are used with their default values (AspectRatio=1.5, Magnification=2, OuterRadius=0.4,InnerRadius=0.2).

No effect (original picture) Result

FireMonkey logo NoEffects shadow.PNG

FireMonkey logo TSmoothMagnifyEffect.PNG

See Also

Code Examples