Hi all,
using a Canvas on a Bitmap mutable, I'd like to draw a line that is 22.85mm long and 0.33mm thick.
Beforehand I should define an ImageView large enough to hold the desidered bitmap (let's say a 30x30mm ImageView) then precisely draw my line and have the bitmap as the imageview background.
My problem is that I don't understand how to exactly render that measures irrespective of devices densities and dimensions (in pixel).
Umberto
using a Canvas on a Bitmap mutable, I'd like to draw a line that is 22.85mm long and 0.33mm thick.
Beforehand I should define an ImageView large enough to hold the desidered bitmap (let's say a 30x30mm ImageView) then precisely draw my line and have the bitmap as the imageview background.
My problem is that I don't understand how to exactly render that measures irrespective of devices densities and dimensions (in pixel).
Umberto