PrimitiveBaseDrawContent Method
Abstract method, which has to been implemented in derived classes, which provides the actual drawing of the primitive.
Namespace: BeeMobile.TransparentControls.PrimitivesAssembly: BeeMobile.TransparentControls.NET48 (in BeeMobile.TransparentControls.NET48.dll) Version: 4.8.8.20
protected abstract void DrawContent(
Graphics graphics,
Rectangle actualGfxBounds
)
Protected MustOverride Sub DrawContent (
graphics As Graphics,
actualGfxBounds As Rectangle
)
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.
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.