dibujar un rectangulo con las esquinas redondeadas java

Solutions on MaxInterview for dibujar un rectangulo con las esquinas redondeadas java by the best coders in the world

showing results for - "dibujar un rectangulo con las esquinas redondeadas java"
Karsten
19 Jul 2017
1/*
2public abstract void drawRoundRect(int x,
3                 int y,
4                 int width,
5                 int height,
6                 int arcWidth,
7                 int arcHeight);
8x - the x coordinate of the rectangle to be drawn.
9y - the y coordinate of the rectangle to be drawn.
10width - the width of the rectangle to be drawn.
11height - the height of the rectangle to be drawn.
12arcWidth - the horizontal diameter of the arc at the four corners.
13arcHeight - the vertical diameter of the arc at the four corners.
14*/
15//Codigo de ejemplo:
16Graphics g;
17g.drawRoundRect(0,0,200,100,10,10);
18g.fillRoundRect(0,0,200,100,10,10);