5
MonoTouch中的CGImageCreateWithImageInRect iOS方法等价于什么?MonoTouch中的CGImageCreateWithImageInRect等效于什么?
我想这个Objective-C的转换线在C#中:
CGImageRef sampleImageRef = CGImageCreateWithImageInRect(self.CGImage, fillRect);
提前感谢!
他们实际上并不相互一致。 CreateWithImageInRect考虑rect的位置,而WithImageInRect(单声道版本)仅考虑rect的大小。 https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGImage/#//apple_ref/c/func/CGImageCreateWithImageInRect – Gandalf458