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