C# Example
image = new ImageSurface ("data/e.png");
pattern = new SurfacePattern (image);
pattern.Extend = Cairo.Extend.Repeat;
matrix = new Matrix ();
matrix.InitScale (w * 5.0, h * 5.0);
pattern.Matrix = matrix;
gr.Pattern = pattern;
| Member Name | Description |
|---|---|
| None | No extend. |
| Pad | pixels outside of the pattern copy the closest pixel from the source |
| Reflect | Reflect a certain Pattern. |
| Repeat | Repeat a certain Pattern. |