Re: Revert Camera Image
Re: Revert Camera Image
- Subject: Re: Revert Camera Image
- From: Siegfried <email@hidden>
- Date: Tue, 16 Aug 2011 19:51:42 -0300
On 16/08/2011, at 17:37, Nick Zitzmann wrote:
> On Aug 16, 2011, at 12:44 PM, Siegfried wrote:
>
>> If not, how can I revert (mirror) the image coming from the camera?
>
> You have to implement that delegate method, and in the method, you can use a CoreImage filter to transform the image & return the output. You probably want to use the CIAffineTransform filter.
I don't know how to thank you. Impressive, it was quite easy, eh?
- (CIImage *)view:(QTCaptureView *)view willDisplayImage:(CGImage *)image
{
return [image imageByApplyingTransform:CGAffineTransformMakeScale(-1.0, 1.0)];
}
Thanks a lot Mr. Zitzmann,
Best wishes,
Siegfried_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden