Last active
February 16, 2017 03:20
-
-
Save Felipe00/f432c48340f2b84ae55f10362c5a3479 to your computer and use it in GitHub Desktop.
Exemplo de uso de desenho em bitmap
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Canvas c = new Canvas(imageBitmap); | |
| Paint p = new Paint(); | |
| float[] points = { | |
| 10, // start x | |
| 10, // start y | |
| 80, // stop x | |
| 80 // stop x | |
| }; | |
| p.setColor(Color.RED); | |
| c.drawLines(points, p); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment