2D Graphics texture.

Hello,
Can anyone help me with this? I want to apply a custom texture or create a custom texture and apply it to a geometry like, a rectangle or a oval. How am i to do that? Thank you.