Giter Club home page Giter Club logo

paintimageview's Introduction

Android 可以在ViewPager中使用的可以画线,放大,保存,点击删除线条的自定义图片显示控件

详情请查看

http://blog.csdn.net/baidu_33546245/article/details/71963834

DrawPaintView 调用api

setScale(float scale) //设置当前图片在自适应控件后的放大倍数,尚不能使用

setCurrentColor(int color) //设置当前画笔颜色,下一笔生效

clear() //清空画布

undo() //撤销上一笔

setImagePath(File file); //给自定义控件设置要显示的图片

setIsScale(boolean isScaleState) //设置当前是放大状态还是批注状态

rotate() //在当前状态的基础上向右旋转90度,控件会记住旋转状态并叠加(第二次点击就会在旋转90的基础上再旋转90)

setRotate(int rotate) //设置旋转到某个角度,暂时会清空之前的放大状态,待优化.

setDrawInfo(ArrayList lineInfos) //将之前的图片绘制信息重新设置给图片..

public ArrayList getDrawInfo() //获得当前图片绘制的详情,可用于将批注的线条信息暂时保存在内存中.

paintimageview's People

Contributors

textview10 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

crazyman106

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.