Code Monkey home page Code Monkey logo

Comments (6)

1993hzw avatar 1993hzw commented on July 19, 2024

没弄明白。可以详细描述下吗

from graffiti.

tulongchao avatar tulongchao commented on July 19, 2024

不好意思,没有描述清楚,有锯齿,除了画矩形外其余的都有锯齿

from graffiti.

1993hzw avatar 1993hzw commented on July 19, 2024

这个跟你导入的图片尺寸有关。如果你的图片大小很小,比如90x90,那么肯定画在上面的图形是有锯齿的,因为图片的像素点少

from graffiti.

tulongchao avatar tulongchao commented on July 19, 2024

我的图片是截屏的, // 关闭硬件加速,因为bitmap的Canvas不支持硬件加速
// if (Build.VERSION.SDK_INT >= 11) {
// setLayerType(LAYER_TYPE_SOFTWARE, null);
// }
我把这句代码注释掉就好了,奇怪。

from graffiti.

1993hzw avatar 1993hzw commented on July 19, 2024

...注释这个后,你试试画矩形

from graffiti.

tulongchao avatar tulongchao commented on July 19, 2024

注释后,画矩形没有问题,不注释掉,除了画矩形外,都有问题

from graffiti.

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.