【问题标题】:Distorted image when apply at least on filter GLSurface至少在滤镜 GLSurface 上应用时图像失真
【发布时间】:2020-11-23 09:54:00
【问题描述】:

我在 github 上 fork 这个库:PhotoEditor library 但我没有更改任何与效果过滤器相关的部分。

我的流程是: 使用滑动位图下载,然后我将发送到 PhotoEditor 库。当我选择至少一个滤镜(灰色、旋转、ecc...)时,图像会失真。

我检查了位图的大小,没问题。我检查了 surfaceView 的大小,它在应用第一个过滤器时会发生变化

@override
public void onSurfaceChanged(GL10 gl, int width, int height) {
if (mTexRenderer != null) {
Log.e("ONSURFCHANGED",width+"\nHeight:"+height);
mTexRenderer.updateViewSize(width, height);
}

应用过滤器之前

之后

这是一组过滤器类型:FILTER TYPE 和这个:File where applies filter

【问题讨论】:

    标签: android editor photo photoeditorsdk


    【解决方案1】:

    问题是另一个库以错误的比例裁剪图像! 谢谢

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-27
      • 2021-06-27
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多