MonoTouch 中的 CGImageCreateWithImageInRect 相当于什么?
MonoTouch 中 CGImageCreateWithImageInRect iOS 方法的等效项是什么?
我正在尝试在 C# 中转换此 Objective-C 行:
CGImageRef sampleImageRef = CGImageCreateWithImageInRect(self.CGImage, fillRect);
提前致谢!
What is the equivalent of CGImageCreateWithImageInRect iOS method in MonoTouch?
I'm trying to convert this Objective-C line in C#:
CGImageRef sampleImageRef = CGImageCreateWithImageInRect(self.CGImage, fillRect);
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
![扫码二维码加入Web技术交流群](/public/img/jiaqun_03.jpg)
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
CoreGrapphics函数CGImageCreateWithImageInRect对应于CGImage的WithImageInRect方法。 API 签名是:
从 ObjectiveC 翻译后,您的源代码应如下所示:
The CoreGrapphics function CGImageCreateWithImageInRect correspond to the WithImageInRect method of CGImage. API signature is:
Once translated from ObjectiveC your source code should look like: