Fix tint image bug which leads to image upside down

This commit is contained in:
zhongwuzw 2019-04-03 12:24:41 +08:00
parent 555ed7b983
commit 66d294dbec
1 changed files with 1 additions and 1 deletions

View File

@ -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);