FMX.Effects.TRasterEffect

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Effects.TEffectFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTRasterEffect

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.

See Also