From RAD Studio API Documentation
Jump to: navigation, search



TFilterSmoothMagnify = class(TFilterBaseFilter)


class PASCALIMPLEMENTATION TFilterSmoothMagnify : public TFilterBaseFilter


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


TFilterSmoothMagnify is a wrapper for TSmoothMagnifyEffect.

FMX.Filter.Effects.TFilterSmoothMagnify inherits from FMX.Filter.Effects.TSmoothMagnifyEffect. All content below this line refers to FMX.Filter.Effects.TSmoothMagnifyEffect.

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