Fix the bug that watchOS sd_rotatedImageWithAngle does not works
This commit is contained in:
parent
8da50c4a8d
commit
48fe948b8f
|
@ -270,7 +270,7 @@ static inline UIColor * SDGetColorFromPixel(Pixel_8888 pixel, CGBitmapInfo bitma
|
|||
CGContextSetAllowsAntialiasing(context, true);
|
||||
CGContextSetInterpolationQuality(context, kCGInterpolationHigh);
|
||||
CGContextTranslateCTM(context, +(newRect.size.width * 0.5), +(newRect.size.height * 0.5));
|
||||
#if SD_UIKIT
|
||||
#if SD_UIKIT || SD_WATCH
|
||||
// Use UIKit coordinate system counterclockwise (⟲)
|
||||
CGContextRotateCTM(context, -angle);
|
||||
#else
|
||||
|
|
Loading…
Reference in New Issue