Function CoreGrapphics CGImageCreateWithImageInRect corresponds to the method WithImageInRect CGImage . API Signature:
public CGImage WithImageInRect (RectangleF rect)
After translating from ObjectiveC, your source code should look like this:
CGImage sampleImageRef = this.CGImage.WithImageInRect (fillRect);
poupou source
share