CreateChance / ImageEditor

Image edit library with many effects on android platform, based on opengl es 2.0.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImageEditor

Image edit library on android platform, based on opengl es 2.0.

Demo prebuilt apk

Note

This library is still under developing, so do not use it on you product!

Any contribution is welcome!

Thanks

Part filter shader is from gpuimage: https://github.com/BradLarson/GPUImage

Transitions are from gl-transition: https://gl-transitions.com/

They did a great job!

ImageEditor library use FreeType 2.9.1 to render text to opengl texture, freetype site: https://www.freetype.org

Demo's icon is from: https://icons8.com , it is a good place to find beautiful icons for android and iOS.

Demo's font(chinese and english) is from: https://www.freechinesefont.com/, and they are free!

Demo Screenshot

See This

How to use?

It's easy to use, you just send operators to IEManager instance, and all is done!

For example, add lut filer to image like this:

  1. create an operator
filterOp = new LookupFilterOperator.Builder()
                            .intensity(INTENSITY_VALUE)
                            .lookup(BitmapFactory.decodeStream(LOOK_UP_TABLE_STREAM)
                            .build();
  1. add to IEManager api class
if (opAdded) {
    // you can render it right now.
    IEManager.getInstance().updateOperator(0, filterOp, true);
    // or render it later.
    IEManager.getInstance().updateOperator(0, filterOp, false);
} else {
    IEManager.getInstance().addOperator(0, filterOp, true);
}

That's all you need to do! For more details about usage, See This.

How to build?

To build this library, you need android sdk, ndk and gradle.

About

Image edit library with many effects on android platform, based on opengl es 2.0.

License:Apache License 2.0


Languages

Language:C 66.4%Language:HTML 11.4%Language:Java 10.5%Language:Shell 3.3%Language:C++ 3.1%Language:Python 1.7%Language:Makefile 1.5%Language:GLSL 1.0%Language:M4 0.4%Language:Objective-C 0.3%Language:CMake 0.3%Language:Perl 0.1%Language:Awk 0.0%Language:Roff 0.0%