Need help in following code snippet
<p>I am trying to call a static function cropImage here is how it looks.. </p>

<pre><code> public static Image CropImage(Image img, Rectangle cropArea)
 {
        logic goes here..
 }
</code></pre>

<p>I want to call this fuction to crop am image how can i do this,
When i tried like this </p>

<pre><code>Rectangle objRect=new Rectangle(20,10,200,100);
static_className.CropImage(image,objRect);
</code></pre>

<p>I got an error saying invalid argument.</p>
