wanghaihui / PaintView

An Android View with Gesture Supported for Painting

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PaintView

中文README

Library Release MIT License Android API

PaintView aims to painting on image(or not) with zooming and graging surpported, and the painting result can be shared.

Click the icon to download demo apk.

ICON

Gradle Dependency

Add this in your root build.gradle file (not your module build.gradle file):

allprojects {
    repositories {
        ...
        jcenter()
    }
}

Then, add the library to your module build.gradle:

dependencies {
    compile 'com.lht:paintview:{latest.release.version}'
}

Screenshot & Feature

screenshot

  • Clear All
  • Adding Text by Code
  • API for whole bitmap in original scale and transition, or just content in the view
  • Zooming and Draging
  • Background Image Setting
  • Setting Color and Width of Stroke
  • Undo
  • Getting Painting Result

TODO

  • Text with Better Solution
  • Canvas Rotation
  • Boundary Limitation of Gesture
  • Comment and Translation
  • Eraser

Demo Description

  • Set web screenshot as background image to paint
  • Share after painting
  • The web screenshot bitmap can be transferred by Intent, but it will crash if the bitmap is too big, so the Demo transfer bitmap by saving it as a file.

About

An Android View with Gesture Supported for Painting

License:MIT License


Languages

Language:Java 100.0%