I draw like this:

cnvs.drawLine(0, 0, 300, 300, point); 

How to set the width of the drawn line, for example 3 pixels?

  • 2
    point.setStrokeWidth (3); cnvs.drawLine (0, 0, 300, 300, point); - koks_rs

1 answer 1

It is possible to install through the Paint class. So youpaint.setStrokeWidth(число)