- 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.
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.