FMX.Filter.Effects.TTilerEffect
Delphi
TTilerEffect = class(TImageFXEffect)
C++
class PASCALIMPLEMENTATION TTilerEffect : 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
TTilerEffect is a class for creating an effect that tiles the texture of visual objects across multiple rows and columns.
For further information, go to TImageFXEffect and FireMonkey Image Effects.
The number of rows and columns can be set through the HorizontalTileCount and VerticalTileCount properties. The vertical and horizontal offsets of each tile can be set through the VerticalOffset and HorizontalOffset properties.
The size of a tile is determined by the number of columns and rows in which the original size of the texture is split. The texture is resized to fit the dimensions of a tile, without preserving the ratio.
The following table shows the result of the TTilerEffect effect on a .png picture, with transparent background, placed on a form (using a TImage object). The default values (HorizontalTileCount=3, VerticalTileCount=4, VerticalOffset=0, HorizontalOffset=0 ) are used for the TTilerEffect properties.
No effect (original picture) | Result |
---|---|