private static Path getFramePath(AutoShape shape, Rect rect)
{
float x = Math.min(rect.height(), rect.width()) * 0.1f;
Float[] values = shape.getAdjustData();
if (values != null && values.length >= 1)
{
if (values[0] != null)
{
x = Math.min(rect.height(), rect.width()) * values[0];
}
}
rectF.set(rect.left, rect.top, rect.right, rect.bottom);
path.addRect(rectF, Path.Direction.CW);
rectF.set(rect.left + x, rect.top + x, rect.right - x, rect.bottom - x);
path.addRect(rectF, Path.Direction.CCW);
return path;
}
BaseShapePathBuilder.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:iOffice
作者:
评论列表
文章目录