Translate arbitrary shape into tile information.

Hi, so I have the image below that shows more or less what I need to accomplish.

The shape in this case is the area between those 2 lines, but it can take a different shape, like circle or a square.

The tiles are not objects in the game, they are just data, logical only, that I use for different purposes.

The idea is to be able to somehow “cast” any image I have in the game into the correspondent tiles. The image can move, and it should be updated every frame if possible.

Is there anything UE can offer to accomplish this result? before I start thinking of a homemade solution?.

Thanks.