programme:- some graphic programme that you can used in drawing cartoons.
All are case sensitive so write as written below
g.drawString("String text", int x, int y)
g.drawLine(int x1,int y1,int x2,int y2)
g.drawRect(int x1,int y1,int width, int height)
g.setColor(Color.CYAN)
g.fillRect(int x1,int y1,int width, int height)
g.clearRect(int x1, int y1,int width, int height)
g.draw3DRect(int x1,int y1,int width, int height, boolean raised)
g.drawRoundRect(int x1,int y1,int width, int height,int arcWidth, int arcHeight)
g.fillRoundRect(int x1,int y1,int width, int height,int arcWidth, int arcHeight)
g.drawOval(int x1,int y1,int Width,int Height)
g.fillOval(int x1,int y1,int Width,int Height)
You can used by writing
public void paint(Graphic g)
All are case sensitive so write as written below
g.drawString("String text", int x, int y)
g.drawLine(int x1,int y1,int x2,int y2)
g.drawRect(int x1,int y1,int width, int height)
g.setColor(Color.CYAN)
g.fillRect(int x1,int y1,int width, int height)
g.clearRect(int x1, int y1,int width, int height)
g.draw3DRect(int x1,int y1,int width, int height, boolean raised)
g.drawRoundRect(int x1,int y1,int width, int height,int arcWidth, int arcHeight)
g.fillRoundRect(int x1,int y1,int width, int height,int arcWidth, int arcHeight)
g.drawOval(int x1,int y1,int Width,int Height)
g.fillOval(int x1,int y1,int Width,int Height)
You can used by writing
public void paint(Graphic g)
No comments:
Post a Comment