devxoul/SwiftyImage

UIImage operator overload for addition result is incorrect

dsowsy opened this issue · 1 comments

The resultant UIImage is upside down and backwards. This can be fixed if you replace:

CGContextDrawImage(context, lhsRect, lhs.CGImage)
CGContextDrawImage(context, rhsRect, rhs.CGImage)

with this:

lhs.drawInRect(lhsRect)
rhs.drawInRect(rhsRect)

@dsowsy, Thanks for your report!
Could you please test with #6 PR? If it works properly, I'll merge it and make a new release.