Open angBiu opened 7 years ago
Did you have the solution?I have the same question.
Any luck?
That's because GPUImageUIElement is using layer.contentsScale to calculate the size in pixels.
- (CGSize)layerSizeInPixels;
{
CGSize pointSize = layer.bounds.size;
return CGSizeMake(layer.contentsScale * pointSize.width, layer.contentsScale * pointSize.height);
}
so just modify your view.layer.contentsScale
view.layer.contentsScale = [UIScreen mainScreen].scale;
I current use GPUImageUIElement to add watermark.But compare with the original image ,the image is a litter blur in the camera.Can anyone help me.Thanks very much! Code is below.
GPUImageFilter *filter = [[GPUImageFilter alloc] init]; [self.videoCamera addTarget:filter];