Location:
Search - drawingpanel.ja
Search list
Description: java写的画画板,基于Swing的图形开发,虽然看上去简单,但是挺实用.-java write draw board, Swing-based graphical development, although looks simple, but very practical.
Platform: |
Size: 52224 |
Author: 耗子 |
Hits:
Description: Java 写的画图板,通过这个小程序,大家可以了解到:建立输入输出流、按钮数组,存放以下名称的功能按钮、创建基本操作按钮,包括"新建"、"打开"、"保存"等、定义铅笔画,也就是用鼠标拖动着随意绘图、绘制以指定颜色填充的实心矩形、绘制以指定颜色填充的实心椭圆、绘制以指定颜色填充的实心圆角矩形、橡皮擦,可用来擦去已经绘制好的图案、选择颜色按钮,可用来选择需要的颜色、选择线条粗细的按钮,输入需要的数值可以实现绘图线条粗细的变化……
-Java to write the drawing board, through this small program, we can understand: the establishment of input and output streams, the button array, placed the name of the function of the following button to create the basic operation buttons, including the " New" , " open" , " save" , etc. definition of pencil drawing, that is, a random drawing with the mouse to drag and draw a solid color fill the specified rectangle, drawn with the specified solid color fill ellipse, Draw the specified rounded rectangle of solid color fill, eraser, have been used to wipe Drawing a good logo, select the color button can be used to select the color, select the line thickness of the button, enter the required values can change the thickness of drawing lines ... ...
Platform: |
Size: 52224 |
Author: 王辉 |
Hits: