Skip to content

Chen/ProMosaic

 
 

Repository files navigation

ProMosaic

===

Make mosaic for image on android.

Features

=== Select Mode

  • Follow finger
  • Select rectangle

Effect Mode

  • Grid color based on original image
  • Blur Image
  • Pure grey color

Usage

=== Use MosaicView as normal android view:

<me.dawson.promosaic.MosaicView
        android:id="@+id/iv_content"
        android:layout_width="match_parent"
        android:layout_height="match_parent"
        android:layout_below="@+id/ll_options"
        android:background="@color/grey_3"
        android:contentDescription="@string/app_name" />

Set properties in java code

mvImage.setSrcPath(filePath);
mvImage.clear();
mvImage.setEffect(Effect.BLUR);
mvImage.setMosaicColor(0xFF4D4D4D);
mvImage.setMode(Mode.PATH);

Demo

===

Contact me

=== Any further question?

email me please!

About

Make mosaic effect on android

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published