Giter VIP home page Giter VIP logo

Comments (3)

LillteZheng avatar LillteZheng commented on June 16, 2024

查到的说法是,paint 设置抗锯齿,是把前背景和画线的背景添加透明度柔和画,所以颗粒感变弱,曲线看起来柔顺;而通过 mCanvas.drawPath(),再用canvas.drawBitmap(bitmap,0,0,null) 刷画布时,在move 的时候,锯齿就会变得越来越严重;但直接使用 canvas.drawpath则不会。

from androidnote.

LillteZheng avatar LillteZheng commented on June 16, 2024

google 之后,说道是paint设置了抗锯齿,canvas 在画的时候,其实会清一下画布;而在使用 mCanvas 的时候,由于一直 drawbitmap,并没有清理画布,则导致本该透明柔顺的颗粒,变得越来越明显,所以用 bitmap 去画线锯齿才那么严重

from androidnote.

LillteZheng avatar LillteZheng commented on June 16, 2024

目前,我使用的方法是,move 的path ,直接使用 canvas.drawpath(),直接画,而在 up 的时候,通过 mCanvas.drawpath()把path 画到bitmap上,再用 canvas.drawbitmap();但这种在多指的时候,会出现闪烁问题,请问楼主除了我这样做,还有其他方法吗,万分感谢

from androidnote.

Related Issues (20)

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.