dibujar un cuadrado con las esquinas redodndeadas java

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

showing results for - "dibujar un cuadrado con las esquinas redodndeadas java"
Alessandra
21 Jan 2019
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);