Skip to content

Commit

Permalink
Update IDMPhotoBrowser.m
Browse files Browse the repository at this point in the history
  • Loading branch information
RamNalluri authored Apr 1, 2024
1 parent 1ff1b74 commit 62c92b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Classes/IDMPhotoBrowser.m
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,8 @@ - (CGRect)getToolbarButtonFrame:(UIImage *)image{
}

- (UIImage*)getImageFromView:(UIView *)view {
UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 2);
//UIGraphicsBeginImageContextWithOptions(view.bounds.size, YES, 2);
[[UIGraphicsImageRenderer alloc] initWithSize:view.bounds.size format:UIGraphicsImageRendererFormat.defaultFormat];
[view.layer renderInContext:UIGraphicsGetCurrentContext()];
UIImage *image = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
Expand Down

0 comments on commit 62c92b9

Please sign in to comment.