Default unit for setStrokeWidth?

Discussion in 'Application Development' started by Babigabe, Oct 12, 2009.

  1. Babigabe

    Babigabe New Member
    5

    May 25, 2009
    2
    0
    5
    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?
     

    Advertisement

Share This Page

Loading...