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!

Cursor.DrawStretched

Draws this image to a graphics object. The drawing command originates on the graphics object, but a graphics object generally has no idea how to render a given image. So, it passes the call to the actual image. This version stretches the image to the given dimensions and allows the user to specify a rectangle within the image to draw.

[Visual Basic]
Public Sub DrawStretched( _
   ByVal g As Graphics, _
   ByVal targetRect As Rectangle _
)
[C#]
public void DrawStretched(
   Graphics g,
   Rectangle targetRect
);
[C++]
public: void DrawStretched(
   Graphics* g,
   Rectangle targetRect
);
[JScript]
public function DrawStretched(
   g : Graphics,
   targetRect : Rectangle
);

Parameters

g
The graphics object to render to.
targetRect
The rectangle to stretch the image to.

See Also

Cursor Class | Cursor Members | System.Drawing Namespace