Java 是否可以使用libgdx将水波应用于GIF?

Java 是否可以使用libgdx将水波应用于GIF?,java,android,libgdx,Java,Android,Libgdx,我正在使用它向simple.png/.jpg文件添加涟漪效果。现在我想向.gif文件添加涟漪。但我不能这样做 我的GIF渲染代码: SpriteBatch batch = new SpriteBatch(); batch.begin(); Object[] objects = mAnimation.getKeyFrames(); Array<TextureRegion> textureRegionArray = (Ar

我正在使用它向simple.png/.jpg文件添加涟漪效果。现在我想向.gif文件添加涟漪。但我不能这样做

我的GIF渲染代码:

SpriteBatch batch = new SpriteBatch();
           batch.begin();
           Object[] objects = mAnimation.getKeyFrames();
           Array<TextureRegion> textureRegionArray = (Array<TextureRegion>) objects[0];
           if (gifFrameRenderCounter == textureRegionArray.size) {
               gifFrameRenderCounter = 0;
           }
           Log.d("GDX_LIB", "ripple draw frame with ripple... " + gifFrameRenderCounter);
           batch.draw(textureRegionArray.get(gifFrameRenderCounter), 0, 0, Gdx.graphics.getWidth(), Gdx.graphics.getHeight());
           batch.end();
SpriteBatch批处理=新SpriteBatch();
batch.begin();
Object[]objects=mAnimation.getKeyFrames();
数组textureRegionArray=(数组)对象[0];
if(gifFrameRenderCounter==textureRegionArray.size){
gifFrameRenderCounter=0;
}
Log.d(“GDX_LIB”,“带涟漪的涟漪画框…”+gifFrameRenderCounter);
batch.draw(textureRegionArray.get(gifFrameRenderCounter)、0、0、Gdx.graphics.getWidth()、Gdx.graphics.getHeight());
batch.end();
我正在使用生成动画对象

由于waterripple.java正在修改顶点以实现涟漪,如何在GIF上渲染水涟漪效果