Beispiel #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="DrawEventArgs"/> class with the specified event data.
 /// </summary>
 /// <param name="context">The drawing context.</param>
 /// <param name="clip">The rectangle that has been requested to be redrawn.</param>
 /// <param name="surfaceSize">The current size of the surface.</param>
 public DrawEventArgs(Context context, RectangleD clip, SizeD surfaceSize)
 {
     Context     = context;
     Clip        = clip;
     SurfaceSize = surfaceSize;
 }
Beispiel #2
0
 public DrawEventArgs(Context context, RectangleD clip, SizeD areaSize)
 {
     Context  = context;
     Clip     = clip;
     AreaSize = areaSize;
 }
Beispiel #3
0
 public void AddRectangle(RectangleD rect) => AddRectangle(rect.Location, rect.Size);