FMX.Filter.Effects.TFilterMaskToAlpha

From RAD Studio API Documentation
Jump to: navigation, search

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

Delphi

TFilterMaskToAlpha = class(TFilterBaseFilter)

C++

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

TFilterMaskToAlpha is a wrapper for TMaskToAlphaEffect.

FMX.Filter.Effects.TFilterMaskToAlpha inherits from FMX.Filter.Effects.TMaskToAlphaEffect. All content below this line refers to FMX.Filter.Effects.TMaskToAlphaEffect.

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