Make mosaic effect on android

Related tags

Tools ProMosaic
Overview

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!

License

    Copyright 2014 Dawson Dong
    
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at
    
    http://www.apache.org/licenses/LICENSE-2.0
    
    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
You might also like...
Command-line tool to count per-package methods in Android .dex files

dex-method-counts Simple tool to output per-package method counts in an Android DEX executable grouped by package, to aid in getting under the 65,536

View Inspection Toolbar for Android Development
View Inspection Toolbar for Android Development

View Inspector Plugin View inspection toolbar for android development. Features Boundary show outlines show margins show paddings Layer Scalpel featur

🍼Debug Bottle is an Android runtime debug / develop tools written using kotlin language.
🍼Debug Bottle is an Android runtime debug / develop tools written using kotlin language.

🇨🇳 中文 / 🇯🇵 日本語 / 🇬🇧 English 🍼 Debug Bottle An Android debug / develop tools written using Kotlin language. All the features in Debug bottle are

[] Dissect layout traversals on Android
[] Dissect layout traversals on Android

Probe Dissect layout traversals on Android. Features Intercept View methods. onMeasure(int, int) onLayout(boolean, int, int, int, int) draw(Canvas) an

Android Library Finder
Android Library Finder

alfi Android Library Finder Search through thousands of android libraries that can help you scale your projects elegantly Usage Search for something a

Annotation based simple API flavored with AOP to handle new Android runtime permission model

Let Annotation based simple API flavoured with AOP to handle new Android runtime permission model. If you check Google's Samples about the new permiss

Combines tools for fast android app devlopment

Android - Rapid Test Driven Development Combine tools to generate most of the boilerplate code. Examples how to test different aspects of an android a

A set of Android tools that facilitate apps development
A set of Android tools that facilitate apps development

A set of Android tools that facilitate apps development Well, this repo contains pretty much code used internally at Stanfy to develop Android apps. S

A multi platform image density converting tool converting single or batches of images to Android, iOS, Windows or CSS specific formats and density versions given the source scale factor or width/height in dp. It has a graphical and command line interface and supports many image types (svg, psd, 9-patch, etc.) aswell as some lossless compressors like pngcrush.
Comments
  • OutOfMemoryError

    OutOfMemoryError

    Thanks for the library, I found the library is very useful. But I encounter out of memory issue when load image with size 3264x2448 (Photo take from samsung note 2)

    12-23 16:52:28.498: E/AndroidRuntime(9394): FATAL EXCEPTION: main
    12-23 16:52:28.498: E/AndroidRuntime(9394): Process: me.dawson.promosaic, PID: 9394
    12-23 16:52:28.498: E/AndroidRuntime(9394): java.lang.OutOfMemoryError
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.graphics.Bitmap.nativeCreate(Native Method)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.graphics.Bitmap.createBitmap(Bitmap.java:810)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.graphics.Bitmap.createBitmap(Bitmap.java:787)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.graphics.Bitmap.createBitmap(Bitmap.java:754)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at me.dawson.promosaic.MosaicView.getGridMosaic(MosaicView.java:251)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at me.dawson.promosaic.MosaicView.getCoverLayer(MosaicView.java:209)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at me.dawson.promosaic.MosaicView.setSrcPath(MosaicView.java:162)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at me.dawson.promosaic.ProMosaic.onActivityResult(ProMosaic.java:174)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.app.Activity.dispatchActivityResult(Activity.java:5423)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.app.ActivityThread.deliverResults(ActivityThread.java:3378)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.app.ActivityThread.handleSendResult(ActivityThread.java:3425)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.app.ActivityThread.access$1300(ActivityThread.java:144)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1253)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.os.Handler.dispatchMessage(Handler.java:102)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.os.Looper.loop(Looper.java:136)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at android.app.ActivityThread.main(ActivityThread.java:5139)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at java.lang.reflect.Method.invokeNative(Native Method)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at java.lang.reflect.Method.invoke(Method.java:515)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:796)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:612)
    12-23 16:52:28.498: E/AndroidRuntime(9394):     at dalvik.system.NativeStart.main(Native Method)
    
    opened by winsontan520 2
  • load large image would throw

    load large image would throw "Out of Memeory Exception"

    when I load the picture from my camera folder(the picture was taken from my phone camera, almost 3MB), it can be loaded into the frame, but when I touch the screen, it throws the "Out of Memeory Exception".

    opened by qq280948982 2
Owner
dawson
Keep It Simple, Stupid.
dawson
Make Android screenshots of scrollable screen content

scrollscreenshot Make Android screenshots of scrollable screen content - brought to you by PGS Software SA This tool makes a number of screenshots, sc

PGS Software 714 Dec 7, 2022
This Android app adds splash screen slides to make a great intro for an app.

IntroApp This Android app adds splash screen slides to make a great intro for an app. Short description Adding Welcome / Intro screens in your app is

Vaibhav Khulbe 16 Oct 1, 2020
A tool to install components of the Android SDK into a Maven repository or repository manager to use with the Android Maven Plugin, Gradle and other tools.

Maven Android SDK Deployer Original author including numerous fixes and changes: Manfred Moser [email protected] at simpligility technologies i

simpligility 1.4k Dec 27, 2022
A simple utility to remove unused resources in your Android app to lower the size of the APK. It's based on the Android lint tool output.

android-resource-remover android-resource-remover is utility that removes unused resources reported by Android Lint from your project. The goal is to

Keepsafe 1.3k Dec 16, 2022
This is a Android Studio/ IntelliJ IDEA plugin to localize your Android app, translate your string resources automactically.

#Android Localizationer This is a Android Studio/ IntelliJ IDEA plugin to localize your Android app, translate your string resources automactically. T

Wesley Lin 822 Dec 8, 2022
A tool to install components of the Android SDK into a Maven repository or repository manager to use with the Android Maven Plugin, Gradle and other tools.

Maven Android SDK Deployer Original author including numerous fixes and changes: Manfred Moser [email protected] at simpligility technologies i

simpligility 1.4k Dec 27, 2022
Automated-build-android-app-with-github-action - CI/CD Automated Build Android App Bundle / APK / Signed With Github Action

Automated Build Android With Using Github Action Project Github Action Script Us

Faisal Amir 34 Dec 19, 2022
proguard resource for Android by wechat team

AndResGuard Read this in other languages: English, 简体中文. AndResGuard is a tooling for reducing your apk size, it works like the ProGuard for Java sour

shwenzhang 8.1k Jan 9, 2023
A super fast build tool for Android, an alternative to Instant Run

Freeline Freeline is a super fast build tool for Android and an alternative to Instant Run. Caching reusable class files and resource indices, it enab

Alibaba 5.5k Jan 2, 2023