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!

Label.DrawImage

Draws an Image within the specified bounds.

[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 on which to draw.
image
The Image to draw.
r
The Rectangle bounds to draw within.
align
The alignment to apply on the Label.

See Also

Label Class | Label Members | System.WinForms Namespace | ContentAlignment | Graphics | Image | Rectangle