Exemple #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DrawingContext"/> class.
 /// </summary>
 /// <param name="surface">The target surface.</param>
 public DrawingContext(Cairo.Surface surface)
 {
     this.surface          = surface;
     this.context          = new Cairo.Context(surface);
     this.CurrentTransform = Matrix.Identity;
 }
Exemple #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DrawingContext"/> class.
 /// </summary>
 /// <param name="surface">The target surface.</param>
 public DrawingContext(Cairo.Surface surface)
 {
     this.surface = surface;
     this.context = new Cairo.Context(surface);
     this.CurrentTransform = Matrix.Identity;
 }