private float roundToPixelCenter(double value) {
      double devPixel = 1 / PaintUtil.devValue(1, myScaleContext);
      return (float)(PaintUtil.alignToInt(value, myScaleContext, PaintUtil.RoundingMode.FLOOR, null) + devPixel / 2);
    }
private float roundToPixelCenter(double value)