4

再会,

我正在尝试在 Monotouch 中为此添加绑定:

- (void)capturePhotoAsImageProcessedUpToFilter:(GPUImageOutput<GPUImageInput> *)finalFilterInChain withCompletionHandler:(void (^)(UIImage *processedImage, NSError *error))block;

我已经走到这一步了:

[BaseType (typeof(GPUImageVideoCamera))]
interface GPUImageStillCamera{
    delegate void [**What should i put here?**](NSData processedJpeg, NSError error);

    [Export ("capturePhotoAsJPEGProcessedUpToFilter:")]
    void CapturePhotoAsJPEGProcessedUpToFilter(GPUImageOutput finalFilterInChain);
}

我已经阅读了作者放置 NSSetEnumerator 的文档,但我无法理解他/她从哪里得到它。

请帮我解决这个问题。

谢谢!

4

1 回答 1

4

你用这个:

  delegate void CaptureCallback (UIImage processedImage, NSError);

  [BaseType (typeof (GPUImageVideoCamera))]
  interface GPUImageStillCamera {
       [Export ("capturePhotoAsJPEGProcessedUpToFilter:withCompletionHandler:")]
       void CapturePhotoAsJpeg (GPUImageoutput finalFilter, 
                                CaptureCallback completionCallback);
  }
于 2012-06-05T02:09:15.773 回答