1. HUGE Androidforums.com UPDATE! Learn what's new (and download the new app!)
    Dismiss Notice

Default unit for setStrokeWidth?

Last Updated:

  1. Babigabe

    Babigabe New Member This Topic's Starter

    May 25, 2009
    Likes Received:
    I always thought the default unit for Paint.setStrokeWidth() (and all the other methods) would be pixels. Now that I've played around with the new SDK 1.6 for a while I think it could also be DIP. For example if I call setStrokeWidth(3) the line is three pixels wide on a HVGA display. However on WVGA800 the line seems to be 4.5 pixels wide (with anti aliasing turned on). I could not find anything about that in the documentation. Who knows more?


Share This Page