These examples demonstrate creating texture-filled and aligned text. We use string alignment to center the text in the image by setting salign.alignment = stringalignment.center and using the TextureBrush (with a source image, "i") to create a bitmap textured fill for the text in example 2.
Example 1 in action
You will see as added little touches we have a graduated tint affect for the background, plus I have added highlights and drop-shadows to lift the text a little and give it a kinda 3d effect.
The background is a simple rectangle, the fill is acheived by using LinearGradientBrush with Points for the gradient start/end X,Y locations and the colours to be used.
The text shadowing is simply a case of drawing the text three times slightly offset.
Example 2 in action
The main difference here (other than being a JPG) is that we have used a photographic image as a fill texture on the text. This is quite a pleasing effect, kinda makes it look like a chrome reflection.
To acheive this effect we need to create a new brush for DrawString to use rather than a solid colour brush that we would ordinarily use. This TextureBrush is supplied a source image (i) which will then be drawn as a pattern.