Go back to Efl.Gfx.Filter.

Fill modes

Similar to Evas.Fill_Mode, the Efl.Gfx.Filter fill modes specify how to use an input buffer to paint in a buffer of different size, by stretching or repeating the image.

Here is the list of all accepted fill modes that can be passed as value for fillmode arguments (in mask, blend, etc…).

Value Meaning Effect
'none' Does not stretch or tile
'stretch_x' Stretch horizontally only
'stretch_y' Stretch vertically only
'stretch'
'stretch_xy'
Stretch in both directions
'repeat_x' Tile horizontally only
'repeat_y' Tile vertically only
'repeat'
'repeat_xy'
Tile in both directions
'stretch_x_repeat_y'
'repeat_y_stretch_x'
Stretch horizontally, repeat vertically
'repeat_x_stretch_y'
'stretch_y_repeat_x'
Stretch vertically, repeat horizontally
Example

The above images have been generated with the following filter code:

b = buffer{ src = 'image2' }
padding_set(20)
fill { color = white }
blend { src = b, fillmode = 'none' }