Skip to content

Commit 91d903d

Browse files
committed
Merge commit '0564fc0b8c26b29bdc7e700ab6153635aed2d511'
2 parents fa0c2cb + 0564fc0 commit 91d903d

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

QMUI/QMUIKit/UIKitExtensions/UIImage+QMUI.m

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -424,8 +424,7 @@ + (UIImage *)qmui_imageWithColor:(UIColor *)color size:(CGSize)size cornerRadius
424424
UIImage *resultImage = nil;
425425
color = color ? color : UIColorClear;
426426

427-
BOOL opaque = [color qmui_alpha] == 1.0;// 颜色本身不带透明,就不用创建带透明通道的 image 了
428-
UIGraphicsBeginImageContextWithOptions(size, opaque, 0);
427+
UIGraphicsBeginImageContextWithOptions(size, NO, 0);
429428
CGContextRef context = UIGraphicsGetCurrentContext();
430429
CGContextSetFillColorWithColor(context, color.CGColor);
431430

0 commit comments

Comments
 (0)