Fix rounded corner bug which leads to image upside down
This commit is contained in:
parent
555ed7b983
commit
b7ee2336c1
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue