Show: Delphi C++
Display Preferences

FMX.Filter.Effects.TContrastEffect

From XE3 API Documentation
Jump to: navigation, search

FMX.Filter.Effects.TImageFXEffectFMX.Types.TEffectFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObject
TContrastEffect

Delphi

TContrastEffect = class(TImageFXEffect)

C++

class PASCALIMPLEMENTATION TContrastEffect : public TImageFXEffect

Contents

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

FireMonkey logo NoEffects.PNG

FireMonkey logo TContrastEffect.PNG

See Also

Code Examples

Personal tools
Translations