AuxiliaryLine.java 文件源码

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

项目:WiCamera3D 作者:
public AuxiliaryLine(Context context, AttributeSet attributeSet) {
    super(context, attributeSet);
    previewwidth = getWidth();
    previewheight = getHeight();
    Log.e("AuxiliaryLine", " 长宽为" + previewwidth + "*" + previewheight);
    type = 0;
    myPaint = new Paint();
    myPaint.setColor(Color.rgb(230, 230, 230));
    myPaint.setStyle(Paint.Style.STROKE);
    myPaint.setStrokeWidth(1);
    myPaint.setAntiAlias(true);
    PathEffect effects = new DashPathEffect(new float[]{8,8,8,8},0.5f);  
    myPaint.setPathEffect(effects);  
}
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号