SmartArtPathBuilder.java 文件源码

java
阅读 19 收藏 0 点赞 0 评论 0

项目:iOffice 作者:
private static Path getFunnelPath(AutoShape shape, Rect rect)
{
    float width = 716f;
    float height = 536f;
    path.addOval(new RectF(28, 22, 688, 238), Direction.CCW);

    path.moveTo(0, 130);            
    path.arcTo(new RectF(0, 0, 716, 260), 180, 180);
    path.arcTo(new RectF(258, 444, 458, 536), 30, 150);
    path.close();

    sm.reset();
    sm.postScale(rect.width() / width, rect.height() / height);
    path.transform(sm);

    path.offset(rect.left, rect.top);

    return path;
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号