Skip to content

Set background for SurfaceView not working #547

Description

@Quangninh-io

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions