Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set background for SurfaceView not working #547

Open
Quangninh-io opened this issue Jul 31, 2023 · 0 comments
Open

Set background for SurfaceView not working #547

Quangninh-io opened this issue Jul 31, 2023 · 0 comments

Comments

@Quangninh-io
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant