Beispiel #1
0
 /// <summary>
 /// Creates a new pen with the specified <paramref name="color"/> and <paramref name="thickness"/>
 /// </summary>
 /// <param name="color">Color for the new pen</param>
 /// <param name="thickness">Thickness of the new pen</param>
 /// <param name="generator">Generator to create the pen for</param>
 public Pen(Color color, float thickness = 1f, Generator generator = null)
 {
     handler       = generator.CreateShared <IPen> ();
     ControlObject = handler.Create(color, thickness);
 }
Beispiel #2
0
		/// <summary>
		/// Creates a new pen with the specified <paramref name="color"/> and <paramref name="thickness"/>
		/// </summary>
		/// <param name="color">Color for the new pen</param>
		/// <param name="thickness">Thickness of the new pen</param>
		/// <param name="generator">Generator to create the pen for</param>
		public Pen (Color color, float thickness = 1f, Generator generator = null)
		{
			handler = generator.CreateShared<IPen> ();
			ControlObject = handler.Create (color, thickness);
		}