System.Windows.Forms.Cursor.DrawStretched Method

Draws the cursor in a stretched format on the specified surface, within the specified bounds.

Syntax

public void DrawStretched (System.Drawing.Graphics g, System.Drawing.Rectangle targetRect)

Parameters

g
The System.Drawing.Graphics surface on which to draw the System.Windows.Forms.Cursor.
targetRect
The System.Drawing.Rectangle that represents the bounds of the System.Windows.Forms.Cursor.

Remarks

The drawing command originates on the graphics surface represented by the g parameter, but a System.Drawing.Graphics object does not contain information about how to render a given image, so it passes the call to the System.Windows.Forms.Cursor object. The Cursor.DrawStretched(System.Drawing.Graphics, System.Drawing.Rectangle) method stretches the image to fill the specified System.Drawing.Rectangle when the cursor is drawn.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0