UIImage operator overload for addition result is incorrect
dsowsy opened this issue · 1 comments
dsowsy commented
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)