-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
toDataURL不支持, 但是我必须要生成图片, 怎么办呢? #152
Comments
换了一种截图方式可以截图了, // 这种方式不行
// [view.layer renderInContext:UIGraphicsGetCurrentContext()];
// 这种方式可以
[view drawViewHierarchyInRect:view.frame afterScreenUpdates:YES];
|
在weex架构下不去加这块逻辑了。 [view.layer renderInContext:UIGraphicsGetCurrentContext()]; 是用的CoreGraphic Context的上下文 |
@shenguanjiejie , @flyskywhy/react-native-gcanvas@2.2.0 support toDataURL() with png or jpeg on Android and iOS |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
这是一个必备的需求吧, #38 这个问题已经被提了很久了, 但是没有人解决一下, 为什么呢?
The text was updated successfully, but these errors were encountered: