android-gpuimage icon indicating copy to clipboard operation
android-gpuimage copied to clipboard

Set background for SurfaceView not working

Open Quangninh-io opened this issue 2 years ago • 0 comments

Bug Reporting

When set value ` gpuImage = GPUImage(requireContext()) gpuImage.setGLSurfaceView(bindingActivity.ivGpu) gpuImage.setBackgroundColor(0f,255f,255f) gpuImage.setScaleType(GPUImage.ScaleType.CENTER_INSIDE) gpuImage.setImage(originBitmap)

    val filter = GPUImageGaussianBlurFilter()
    gpuImage.setFilter(filter)`

The background is always black, when no filter is used, GLSurfaceView automatically crop the image for it, but when any filter is set, GLSurfaceView will replace the blank color as black

Quangninh-io avatar Jul 31 '23 04:07 Quangninh-io