FMX.Filter.Effects.TContrastEffect
Delphi
TContrastEffect = class(TImageFXEffect)
C++
class PASCALIMPLEMENTATION TContrastEffect : 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
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 |
---|---|