uestccokey / EZFilter

A lightweight (<180KB), easy-to-extend Android filter and dynamic sticker framework for adding filters and stickers for camera, video, bitmap and view.(一个轻量级(<180KB)、易扩展的Android滤镜和动态贴纸框架,支持摄像头、视频、图片和视图添加滤镜和贴纸。)
MIT License
208 stars 57 forks source link

can i export in gif format? #52

Open elangosaravanan21 opened 5 years ago

elangosaravanan21 commented 5 years ago

can i export file as gif?

Mouadabdelghafouraitali commented 5 years ago

Try to use TextureFitView and get bitmap using mRenderView.getBitmap(); method.

(e.g 30 frames)

for (int i = 0; i < 30 ; i++) {
                Bitmap bitmap = mRenderView.getBitmap();
                if (bitmap != null) bitmapArrayList.add(bitmap);
}

After filling your bitmapArrayList use AnimatedGifEncoder class to generate GIF file from array bitmap.