Fix tint image bug which leads to image upside down
This commit is contained in:
parent
555ed7b983
commit
66d294dbec
|
@ -349,7 +349,7 @@ static inline UIColor * SDGetColorFromPixel(Pixel_8888 pixel, CGBitmapInfo bitma
|
|||
|
||||
SDGraphicsBeginImageContextWithOptions(size, NO, scale);
|
||||
CGContextRef context = SDGraphicsGetCurrentContext();
|
||||
CGContextDrawImage(context, rect, self.CGImage);
|
||||
[self drawInRect:rect];
|
||||
CGContextSetBlendMode(context, blendMode);
|
||||
CGContextSetFillColorWithColor(context, tintColor.CGColor);
|
||||
CGContextFillRect(context, rect);
|
||||
|
|
Loading…
Reference in New Issue