BradLarson / GPUImage

An open source iOS framework for GPU-based image and video processing
http://www.sunsetlakesoftware.com/2012/02/12/introducing-gpuimage-framework
BSD 3-Clause "New" or "Revised" License
20.23k stars 4.61k forks source link

GPUImageUIElement 添加的水印模糊不清晰 #2449

Closed OrangeFLJ closed 7 years ago

OrangeFLJ commented 7 years ago

GPUImageUIElement 添加的水印模糊不清晰, 而且 UIView subView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, size.width, size.height)]; ThemeData theme = [[[NSBundle mainBundle] loadNibNamed:@"ThemeData" owner:nil options:nil] firstObject]; theme.frame = CGRectMake(0, 0, 30, 30); theme.center = subView.center; [subView addSubview:theme]; GPUImageUIElement *uielement = [[GPUImageUIElement alloc] initWithView:subView]; 这样添加水印的话 会不现实我们自定义的themeData

hezhk3 commented 5 years ago

subview.layer.contentsScale = [UIScreen mainScreen].scale;