public PaintWithAlpha ( double alpha ) : void | ||
alpha | double | |
return | void |
using Cairo; … using (var cr = new Cairo.Context(surface)) { // draw a rectangle with a source pattern … // set the alpha value for the source pattern cr.PaintWithAlpha(0.5); }
using Cairo; … using (var cr = new Cairo.Context(surface)) { // draw a line with a source pattern … // set the alpha value for the source pattern cr.PaintWithAlpha(0.2); }The package library that provides access to the Cairo graphics library using C# is called "Mono.Cairo". It is part of the Mono project, an open-source implementation of the Microsoft .NET framework.