I’m making a Objective-C class that can apply lots of effects on images.
I would like to implement a shear effect on an image (like you’d see in a tool within something like Adobe Illustrator), but I’m not sure how to proceed. I already have a method within this image manipulation class that can rotate the object. I believe that I need something similar to shear this image, but I’m not sure how to achieve this.
How can I shear an image within Cocoa?
Read about affine transformations and transformation matrices. Shearing an image in Quartz is as simple as applying an appropriate transformation matrix.
Here’s another nice introduction to affine transformations.