示例#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;
 }
示例#2
0
 public DrawEventArgs(Context context, RectangleD clip, SizeD areaSize)
 {
     Context  = context;
     Clip     = clip;
     AreaSize = areaSize;
 }
示例#3
0
 public void AddRectangle(RectangleD rect) => AddRectangle(rect.Location, rect.Size);