FMX.Effects.TRasterEffect
Delphi
TRasterEffect = class(TEffect)
C++
class PASCALIMPLEMENTATION TRasterEffect : public TEffect
Properties
Type | Visibility | Source | Unit | Parent |
---|---|---|---|---|
class | public | FMX.Effects.pas FMX.Effects.hpp |
FMX.Effects | FMX.Effects |
Description
TRasterEffect class increases the speed of rendering immutable parts of the interface.
Remember that once a form starts a common rendering cycle, each control renders itself on the passed form’s canvas and moves the rendering request to the children. When the mass requests are not redrawn, all components draw themselves anew each time, affecting performance.
TRasterEffect avoids this behavior, forcing the component and all its children to draw their mapping to the buffer first. And then, only the finished image from the buffer is drawn entirely.
Note: The use of effects often requires a manual call to invalidate such a buffer.