How to tile a bitmap with DirectComposition or Windows.UI.Composition

225 Views Asked by At

How do I create a tiled image background using the compositor API?

D2D bitmap brushes have SetExtendModeX/Y, but CompositionSurfaceBrush don't seem to have an equivalent.

TileEffect is marked "NoComposition".

I'd like to avoid creating screen-sized sufraces and tiling "manually" (i.e. with D2D).

1

There are 1 best solutions below

0
On

BorderEffect is what I was looking for. It works with composition and supports the same extend modes as a D2D bitmap brush.