FMX.Filter.Effects.TFilterContrast

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Filter.Effects.TFilterBaseFilterFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTFilterContrast

Delphi

TFilterContrast = class(TFilterBaseFilter)

C++

class PASCALIMPLEMENTATION TFilterContrast : public TFilterBaseFilter

Properties

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

Description

TFilterContrast is a wrapper for TContrastEffect.

FMX.Filter.Effects.TFilterContrast inherits from FMX.Filter.Effects.TContrastEffect. All content below this line refers to FMX.Filter.Effects.TContrastEffect.

TContrastEffect is a class for creating an effect that changes the brightness and contrast of the source pixels.

TContrastEffect affects the textures of visual objects.

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

To modify the brightness, use the Brightness property. To increase the contrast, use the Contrast property.

The following table shows the result of the TContrastEffect effect on a grayscale .png picture, with transparent background placed on a form (using a TImage object). Default values are used for the Brightness and Contrast properties (Brightness=0, Contrast=1.5).

No effect (original pictures) Result

FireMonkey logo NoEffects.PNG

FireMonkey logo TContrastEffect.PNG

See Also

Code Examples