From 357fbd8e66e3bee71e69a00af957eafa7ccbe930 Mon Sep 17 00:00:00 2001 From: "pengfei.zhou" Date: Fri, 17 Apr 2020 12:06:00 +0800 Subject: [PATCH] iOS:Base64 image add scale --- doric-iOS/Pod/Classes/Shader/DoricImageNode.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m index 21a9648b..50c5add9 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m @@ -166,7 +166,7 @@ - (void)blendView:(UIImageView *)view forPropName:(NSString *)name propValue:(id } NSData *imageData = [[NSData alloc] initWithBase64EncodedString:base64 options:NSDataBase64DecodingIgnoreUnknownCharacters]; - YYImage *image = [YYImage imageWithData:imageData]; + YYImage *image = [YYImage imageWithData:imageData scale:UIScreen.mainScreen.scale]; view.image = image; } else if ([@"isBlur" isEqualToString:name]) { NSInteger value = [prop intValue];