Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用一个名为 ImageTouchView 的库来在我的应用程序中提供缩放缩放功能。但是每当我使用 Canvas 在上面画一条线时,绘制的线不会放大/缩小,它只是保持相同的大小。我如何能够缩放绘制的线?
我已经解决了。为此,我必须获得 Canvas 绘图(包含我想要的所有线条)并将其转换为位图。然后我将此位图设置为 ImageView 位图。奇迹般有效!