Skip to content

JeroenMols/Legofy

Repository files navigation

Legofy Build Status codecov Release

Android library to Legofy any image.

Get it on Google Play

See the application in action:

Legofy in action

Features

  • Convert any Bitmap into a legofied version
  • Upscale low resolution bitmaps
  • Limit output size to 1080px to avoid out of memory exceptions

How to use

  1. Add the Jitpack repository to your project:
          repositories {
              maven { url "https://jitpack.io" }
          }
  1. Add a dependency on the library:
          compile 'com.github.JeroenMols:Legofy:0.0.1-beta'
  1. Legofy a Bitmap
          Bitmap legofiedBitmap = Legofy.with(this).convert(bitmap);
          Bitmap legofiedBitmap = Legofy.with(this).amountOfBricks(40).convert(bitmap);

Next steps

  • Drawable/ImageView with a dissolve effect
  • Support for Picasso
  • Synchronous/Asynchronous API
  • Specify image size
  • High resolution options
  • Library that applies a Lego effect to an existing bitmap (first draft done)

Questions

@molsjeroen

Credits

About

Android library to Legofy any image

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages