# PixelTextExtensionMethods.DrawPixelText examples

Examples for [DrawPixelText](https://developer.rhino3d.com/api/gh2/type/grasshopper2.extensions.pixeltextextensionmethods/drawpixeltext.md) in Grasshopper2.Extensions.PixelTextExtensionMethods.

## C#

```cs
using Grasshopper2.Extensions;

// As an extension method
graphics.DrawPixelText(text, colour, anchor);

// As a static method
PixelTextExtensionMethods.DrawPixelText(graphics, text, colour, anchor);
```

## Python

```python
import clr
clr.AddReference('Grasshopper2')
import Grasshopper2.Extensions
clr.ImportExtensions(Grasshopper2.Extensions)

# As an extension method
graphics.DrawPixelText(text, colour, anchor)

# As a static method
Grasshopper2.Extensions.PixelTextExtensionMethods.DrawPixelText(graphics, text, colour, anchor)
```
