---
title: "Art text"
canonical: https://www.graphicsmill.com/samples/Text/TextLayout/ArtTexts_cs
product: "Graphics Mill"
source: "Text/TextLayout/ArtTexts.cs"
---

# Art text

Shows different types of art texts.

## Instruction

This code demonstrates how to create and apply different text effects (Bridge, Bulge, Pinch, Roof, Valley, Wedge, Round) using the GraphicsMill library.
Each text effect modifies the text shape or appearance based on the specified parameters such as center position, bend, scaling, tilt, and additional effects like shadow and glow.

## Usings

```csharp
using Aurigma.GraphicsMill.Drawing;
using Aurigma.GraphicsMill.Drawing.Art;
using Aurigma.GraphicsMill.Drawing.Effects;
```

## Code Snippet

```csharp
using (var bitmap = new Bitmap(600, 400, PixelFormat.Format24bppRgb, new RgbColor(0xff, 0xff, 0xff, 0xff)))
using (var graphics = bitmap.GetGraphics())
{
    var font = graphics.CreateFont("Arial", 48);
    var brush = new SolidBrush(new RgbColor(0x41, 0x41, 0x41));

    var texts = new Aurigma.GraphicsMill.Drawing.Text[]
    {
        new BridgeText("Bridge Text", font, brush)
        {
            Center = new System.Drawing.PointF(150f, 50f),
            Bend = 0.2f,
        },
        new BulgeText("Bulge Text", font, brush)
        {
            Center = new System.Drawing.PointF(150f, 150f),
            Bend = 0.2f,
        },
        new PinchText("Pinch Text", font, brush)
        {
            Center = new System.Drawing.PointF(150f, 250f),
            Bend = 0.2f,
        },
        new RoofText("Roof Text", font, brush)
        {
            Center = new System.Drawing.PointF(150f, 350f),
            Bend = -0.2f,
        },
        new ValleyText("Valley Text", font)
        {
            Brush = new SolidBrush(RgbColor.Yellow),
            Pen = new Pen(RgbColor.Red, 2f),
            Center = new System.Drawing.PointF(450f, 50f),
            Bend = 0.2f,
        },
        new WedgeText("Wedge Text", font, brush)
        {
            Center = new System.Drawing.PointF(450f, 150f),
            LeftScale = 2.0f,
            RightScale = 0.7f,
            Tilt = -0.3f,
            Effect = new Shadow(new RgbColor(80, 80, 80), 5, 4, 4),
        },
        new RoundText("Round Text", font, brush)
        {
            Center = new System.Drawing.PointF(450f, 300f),
            Bend = 1,
            Effect = new Glow(new RgbColor(0x66, 0xaf, 0xe9), 5),
        },
    };

    foreach (var text in texts)
    {
        graphics.DrawText(text);
    }

    bitmap.Save("ArtText.png");
}
```

## Explanation

The code:

- Creates a 600x400 pixel bitmap with a white background.
- Defines a set of seven different text effects (Bridge, Bulge, Pinch, Roof, Valley, Wedge, Round) using various font and brush styles.
- Each text effect is drawn at a different position on the bitmap with varying parameters (e.g., bend, tilt, shadow, and glow).
- The final result is saved to "ArtText.png".

## Tags

- [Art Text](<https://www.graphicsmill.com/samples/tags/art-text_md>): Creating artistic text
- [Drawing](<https://www.graphicsmill.com/samples/tags/drawing_md>): Drawing vector shapes and text

## Output

- [ArtText.png](<https://www.graphicsmill.com/samples/Text/compiled/Debug/ArtText_png>) (preview)

## Used APIs

- [Aurigma.GraphicsMill.Bitmap.GetGraphics](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Bitmap_GetGraphics.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.ArtText.Center](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_ArtText_Center.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.BridgeText](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Art_BridgeText.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.BridgeText.Bend](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_BridgeText_Bend.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.BulgeText](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Art_BulgeText.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.BulgeText.Bend](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_BulgeText_Bend.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.PinchText](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Art_PinchText.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.PinchText.Bend](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_PinchText_Bend.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.RoofText](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Art_RoofText.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.RoofText.Bend](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_RoofText_Bend.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.RoundText](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Art_RoundText.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.RoundText.Bend](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_RoundText_Bend.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.ValleyText](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Art_ValleyText.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.ValleyText.Bend](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_ValleyText_Bend.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.WedgeText](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Art_WedgeText.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.WedgeText.LeftScale](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_WedgeText_LeftScale.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.WedgeText.RightScale](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_WedgeText_RightScale.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Art.WedgeText.Tilt](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Art_WedgeText_Tilt.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Effects.Glow](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Effects_Glow.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Effects.Shadow](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Effects_Shadow.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Graphics.CreateFont(String,Single)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Graphics_CreateFont_2_1dbfa9fa.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Graphics.DrawText(Text)](<https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Drawing_Graphics_DrawText_1_f576d03f.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Pen](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Pen.htm.md>)
- [Aurigma.GraphicsMill.Drawing.SolidBrush](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_SolidBrush.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Text](<https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Drawing_Text.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Text.Brush](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Text_Brush.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Text.Effect](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Text_Effect.htm.md>)
- [Aurigma.GraphicsMill.Drawing.Text.Pen](<https://www.graphicsmill.com/docs/gm/P_Aurigma_GraphicsMill_Drawing_Text_Pen.htm.md>)
