This would be an awesome feature to have. There are several ways that you might approach this. I would start by thinking about how you would use such a component. For example, one way might be:
Entity player = new();
player.AttachComponent(new Position() { X = 50, Y = 50 });
player.AttachComponent(new Sprite2D() { Filename = "imgs/character.png", Width=60, Height=60 });
Would this meet your needs? If so, try implementing it. If not, what would your example have?
This would be an awesome feature to have. There are several ways that you might approach this. I would start by thinking about how you would use such a component. For example, one way might be:
Would this meet your needs? If so, try implementing it. If not, what would your example have?