Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to Draw a hollow rectangle #24

Open
wangchengyan opened this issue Nov 7, 2017 · 0 comments
Open

how to Draw a hollow rectangle #24

wangchengyan opened this issue Nov 7, 2017 · 0 comments

Comments

@wangchengyan
Copy link

wangchengyan commented Nov 7, 2017

how to Draw a hollow rectangle

    this.canvas.setMode(CanvasView.Mode.DRAW);    // for drawing
    this.canvas.setBaseColor(Color.BLUE);
    this.canvas.setPaintStyle(Paint.Style.STROKE);
    this.canvas.setPaintStrokeWidth(20F);
    this.canvas.setPaintStrokeColor(Color.RED);
    this.canvas.setDrawer(CanvasView.Drawer.RECTANGLE);         // Draw Rectangle
    this.canvas.setLineCap(Paint.Cap.SQUARE);
    this.canvas.setBlur(5F);

I try this,but no used

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant