2011-09-20 3 views

답변

11

CoreGrapphics은 의 WithImageInRect 방법의 CGImageCGImageCreateWithImageInRect를 대응 기능. API 서명은 다음과 같습니다

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

그들은 서로 일치 실제로하지 않은 :

public CGImage WithImageInRect (RectangleF rect) 

가되면 소스 코드가 같아야합니다 오브젝티브 -c 번역. CreateWithImageInRect는 rect의 위치를 ​​고려하지만 WithImageInRect (모노 버전)는 rect의 크기 만 고려합니다. https://developer.apple.com/library/ios/documentation/GraphicsImaging/Reference/CGImage/#//apple_ref/c/func/CGImageCreateWithImageInRect – Gandalf458

관련 문제