CGImageCreateWithImageInRect

CGImageCreateWithImageInRect

本文介绍了MonoTouch中的CGImageCreateWithImageInRect等效于什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

MonoTouch中CGImageCreateWithImageInRect iOS方法的等效功能是什么?

What is the equivalent of CGImageCreateWithImageInRect iOS method in MonoTouch?

我正在尝试在C#中转换此Objective-C行:

I'm trying to convert this Objective-C line in C#:

CGImageRef sampleImageRef = CGImageCreateWithImageInRect(self.CGImage, fillRect);

提前谢谢!

推荐答案

CoreGrapphics函数 CGImageCreateWithImageInRect CGImage WithImageInRect 方法相对应.API签名为:

The CoreGrapphics function CGImageCreateWithImageInRect correspond to the WithImageInRect method of CGImage. API signature is:

public CGImage WithImageInRect (RectangleF rect)

从ObjectiveC转换后,您的源代码应如下所示:

Once translated from ObjectiveC your source code should look like:

 CGImage sampleImageRef = this.CGImage.WithImageInRect (fillRect);

这篇关于MonoTouch中的CGImageCreateWithImageInRect等效于什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-07 18:40