• 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
NSAffineTransform
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

NSAffineTransform


  • Subject: NSAffineTransform
  • From: Eric Smith <email@hidden>
  • Date: Sat, 09 Jan 2010 18:23:06 -0800

I have the following code:

CIFilter* vertFlipFilter   = [CIFilter filterWithName: @"CIAffineTransform"];
NSAffineTransform* vertFlipTransform = [NSAffineTransform transform];
CIImage* theImage = [[CIImage alloc] initWithCGImage:imageOne];
[vertFlipTransform translateXBy:100. yBy:1000];
[vertFlipFilter setDefaults];
[vertFlipFilter setValue:theImage forKey:@"inputImage"];
[vertFlipFilter setValue:vertFlipTransform forKey:@"inputTransform"];
[theImage release];
theImage = [[vertFlipFilter valueForKey:@"outputImage"] retain];


Which produces an output image that's identical to the input image... i.e. not translated.  If I replace the translateXBy:... with rotate or scale, it works just great.  Can someone tell me what's different about the translate transform?

Thanks,
Eric

_______________________________________________

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

  • Prev by Date: Re: NSDatePicker 24 hour clock
  • Next by Date: Re: if statement causing 32 Byte leak?
  • Previous by thread: Re: if statement causing 32 Byte leak?
  • Next by thread: NSURLConnection POST issues
  • Index(es):
    • Date
    • Thread