NSAffineTransform
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