PrimitiveBaseDrawContent Method

Abstract method, which has to been implemented in derived classes, which provides the actual drawing of the primitive.

Definition

Namespace: BeeMobile.TransparentControls.Primitives
Assembly: BeeMobile.TransparentControls.NET48 (in BeeMobile.TransparentControls.NET48.dll) Version: 4.8.8.20
C#
protected abstract void DrawContent(
	Graphics graphics,
	Rectangle actualGfxBounds
)

Parameters

graphics  Graphics
The graphics object to draw on, clipped to the bounds of the primitve.
actualGfxBounds  Rectangle
The bound in which the primitive should be drawn.

Remarks

This method is called from the Draw(Graphics, Point) method to draw the actual content of the primitive. Implement your drawing logic in this method. Please draw into the actualGfxBounds rectangle and use the color parameter as the color of the object. The graphics parameter is clipped to the actualGfxBounds by the calling method and reset after drawing.

See Also