title: How to Crop Bitmap with RectangleF as bounds
body: <p>I am trying to crop a certain image with the RectangleF bounds I have. 
  The following code works great in iOS (for my needs) using an UIImage as source:</p>
  
  <pre><code>//Crop a certain rectangle of your image
  UIImage CropImage(UIImage srcImage, RectangleF rect)
  {
     using (CGImage cr = srcImage.CGImage.WithImageInRect(rect))
     {
         UIImage cropped = UIImage.FromImage(cr);
         return cropped;
     }
  }
  </code></pre>
  
  <p>I would like to have this same kind of function for Bitmaps in Android.</p>
  
  <p>I tried the following, but not with the expected outcome: </p>
  
  <pre><code>//Crop a certain rectangle of your image
  Bitmap CropImage(Bitmap srcImage, RectangleF rect)
  { 
      return Bitmap.CreateScaledBitmap(srcImage, (int)rect.Width,   
      (int)rect.Height, false);  
  }
  </code></pre>
  
  <p>All ideas are welcome!</p>