Skybound Rebar

RebarButtonRenderer.DrawImage Method 

Draws the image for the button into a specified Graphics object.

[Visual Basic]
Overridable Public Sub DrawImage( _
   ByVal graphics As Graphics _
)
[C#]
public virtual void DrawImage(
   Graphics graphics
);

Parameters

graphics
The Graphics object to draw on.

Remarks

This method draws the image of a rebar button. The position of text in relation to the image is specified with the TextAlign property. You can obtain the bounds in which the image will be drawn by calling GetImageRectangle.

If Image is a null reference (Nothing in Visual Basic), this method has no effect.

See Also

RebarButtonRenderer Class | Skybound.Rebar.Rendering Namespace