• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Revert Camera Image
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Revert Camera Image (From: Siegfried <email@hidden>)
 >Re: Revert Camera Image (From: Nick Zitzmann <email@hidden>)

  • Prev by Date: Re: Is it possible to traverse dictionaries and arrays using KVC?
  • Next by Date: Re: Is it possible to traverse dictionaries and arrays using KVC?
  • Previous by thread: Re: Revert Camera Image
  • Next by thread: Options to defaults or commandline
  • Index(es):
    • Date
    • Thread