HHHH
HHHH

Reputation: 1197

Rotating and Resizing CIImage

I have two CIImages. I'm trying to apply a CGAffineTransformation to the top image, and then pass it through along with the background image to the CIFilter for blending, but my resulting image seems to show the top image moving around (I just want it rotated on the spot).

I'm also having the same problem when scaling (the position of the top image seems to change).

What am I missing?

Upvotes: 1

Views: 2487

Answers (1)

HHHH
HHHH

Reputation: 1197

So after lots of digging, turns out my problem was due to the rotation point. This question/answer helped a lot.

CGContext rotation

Upvotes: 1

Related Questions