fix(ios): Fix image size when calling getDataURL with bounds. fixes #855

UIGraphicsBeginImageContextWithOptions third argument was incorrect:

https://developer.apple.com/documentation/uikit/1623912-uigraphicsbeginimagecontextwitho
The scale factor to apply to the bitmap. If you specify a value of 0.0,
the scale factor is set to the scale factor of the device’s main screen.
This commit is contained in:
Mikael Sand
2019-11-06 19:34:50 +02:00
parent ea29b02000
commit 45b0859b7f
+1 -1
View File
@@ -268,7 +268,7 @@
- (NSString *)getDataURLwithBounds:(CGRect)bounds
{
UIGraphicsBeginImageContextWithOptions(bounds.size, NO, 0);
UIGraphicsBeginImageContextWithOptions(bounds.size, NO, 1);
[self clearChildCache];
[self drawRect:bounds];
[self clearChildCache];