【问题标题】:Rendering issue with glsurfaceview in GpuImageGpuImage 中 glsurfaceview 的渲染问题
【发布时间】:2016-04-07 12:15:17
【问题描述】:

原图:before processing

glsurfaceview 上处理后的图像:after processing

Java 代码:

mGPUImage = new GPUImage(this);
mGPUImage.setGLSurfaceView((GLSurfaceView) findViewById(R.id.editPicture));
mGPUImage.setImage(uri);

XML:

<android.opengl.GLSurfaceView
    android:id="@+id/editPicture"
    android:layout_width="match_parent"
    android:layout_height="match_parent" />

【问题讨论】:

  • 欢迎来到 SO。请看how to ask。你有什么问题?

标签: java android gpuimage glsurfaceview imagefilter


【解决方案1】:

不要使用

gpuImage.setImage(URI)

使用

gpuImage.setImage(Bitmap)

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-08-14
    • 1970-01-01
    相关资源
    最近更新 更多