NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

ButtonBase.DrawImage

Draws an image within the specified bounds alignment.

[Visual Basic]
Protected Sub DrawImage( _
   ByVal g As Graphics, _
   ByVal image As Image, _
   ByVal r As Rectangle, _
   ByVal align As ContentAlignment _
)
[C#]
protected void DrawImage(
   Graphics g,
   Image image,
   Rectangle r,
   ContentAlignment align
);
[C++]
protected: void DrawImage(
   Graphics* g,
   Image* image,
   Rectangle r,
   ContentAlignment align
);
[JScript]
protected function DrawImage(
   g : Graphics,
   image : Image,
   r : Rectangle,
   align : ContentAlignment
);

Parameters

g
The Graphics surface to draw on.
image
the Image to draw.
r
The Rectangle bounds to draw within.
align
The System.WinForms.ContentAlignment to apply to the Image on the button control.

See Also

ButtonBase Class | ButtonBase Members | System.WinForms Namespace | DrawFace | DrawBackground