Fix rounded corner bug which leads to image upside down

This commit is contained in:
zhongwuzw 2019-04-03 11:03:00 +08:00
parent 555ed7b983
commit b7ee2336c1
1 changed files with 1 additions and 1 deletions

View File

@ -228,7 +228,7 @@ static inline UIColor * SDGetColorFromPixel(Pixel_8888 pixel, CGBitmapInfo bitma
CGContextSaveGState(context);
[path addClip];
CGContextDrawImage(context, rect, self.CGImage);
[self drawInRect:rect];
CGContextRestoreGState(context);
}