FMX.Filter.Effects.TMaskToAlphaEffect

From RAD Studio API Documentation
Jump to: navigation, search

FMX.Filter.Effects.TImageFXEffectFMX.Effects.TFilterEffectFMX.Effects.TEffectFMX.Types.TFmxObjectSystem.Classes.TComponentSystem.Classes.TPersistentSystem.TObjectTMaskToAlphaEffect

Delphi

TMaskToAlphaEffect = class(TImageFXEffect)

C++

class PASCALIMPLEMENTATION TMaskToAlphaEffect : 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

TMaskToAlphaEffect is a class for creating an effect that converts a grayscale image to a white image that is masked by alpha.

TMaskToAlphaEffect affects the textures of visual objects. For further information, go to TImageFXEffect and FireMonkey Image Effects.

The following table shows the result of the TMaskToAlphaEffect effect on a grayscale .png picture, with transparent background and a color .png picture, with transparent background, placed on a form (using a TImage object).

No effect (original pictures) Result

FireMonkey logo NoEffects.PNG

FireMonkey logo TMaskToAlphaEffect color.PNG

FireMonkey logo TMonochromeEffect.PNG

FireMonkey logo TMaskToAlphaEffect gray.PNG

See Also

Code Examples