Tag Archives: TextureBrush

Tile a PictureBox in C#

If you set a form’s BackgroundImageLayout property Tile, then the control fills itself with copies of its background image. Strangely the PictureBox control does not have a corresponding Tile property. This example shows one way you can tile images on … Continue reading

Posted in drawing, graphics, image processing | Tagged , , , , , , , , , , , , | Leave a comment

Draw a curve with more sharply delineated colors in C#

In the post Draw a curve with sharply delineated colors in C# I mentioned that you could achieve even more sharply defined colors if you use a TextureBrush. Naturally I couldn’t let it reset so here’s an example that does … Continue reading

Posted in drawing, graphics | Tagged , , , , , , , , , , , , , , , | 1 Comment

Draw text filled with a picture in C#

This example shows how you can draw text filled with a picture. It uses two images added to the project as resources. (To add resources to the project, open the Project menu and select the Properties command at the very … Continue reading

Posted in drawing, fonts, graphics, strings | Tagged , , , , , , , , , , , , | Leave a comment