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 crops the image to the given dimensions and allows the user to specify a rectangle within the image to draw.
[Visual Basic] Overloads Public Sub DrawIcon( _ ByVal icon As Icon, _ ByVal targetRect As Rectangle _ ) [C#] public void DrawIcon( Icon icon, Rectangle targetRect ); [C++] public: void DrawIcon( Icon* icon, Rectangle targetRect ); [JScript] public function DrawIcon( icon : Icon, targetRect : Rectangle );
Graphics Class | Graphics Members | System.Drawing Namespace | Graphics.DrawIcon Overload List