Open baseljd opened 8 years ago
Is there a way to change the crop to crop from the top instead of from the center ?
I tried changing
- (SCIOPixelBuffers *)renderIOPixelBuffersWithCI:(SCIOPixelBuffers *)pixelBuffers { .... result = [result imageByCroppingToRect:CGRectMake(result.extent.origin.x, frame.origin.y, _outputBufferSize.width, _outputBufferSize.height)]; //changed to result = [result imageByCroppingToRect:CGRectMake(result.extent.origin.x, frame.origin.y - 200, _outputBufferSize.width, _outputBufferSize.height)]; .... }
I also tried changed
- (CIImage *)renderedCIImageInRect:(CGRect)rect { .... filteredImage = [filteredImage imageByCroppingToRect:CGRectMake(extent.origin.x + xImage, extent.origin.y, extent.size.width, extent.size.height)]; //changed to filteredImage = [filteredImage imageByCroppingToRect:CGRectMake(extent.origin.x + xImage, extent.origin.y -200, extent.size.width, extent.size.height)]; .... }
But it's not working
Is there a way to change the crop to crop from the top instead of from the center ?
I tried changing
I also tried changed
But it's not working