how to make save-file using draw-thing on the canvas compent..greenspun.com : LUSENET : Java Programming : One Thread |
hi~~. because i'm korean,,, can't well write english...i made Sketcher Applet use drawLine(), drawRect(), etc.
by the way, please tell me how to make image-file(JPEG, GIF) using the draw-thing on the Canvas Component.
even if simply, tell me what class do i use, or method.
bye.
-- heedo kang (koreawood@hanmir.com), August 21, 2001
i can give u some tips to ur answer , but i have not yet tried it out.create a class which extends the canvas and use the paint method
paint method has Graphics as argument . Graphics has lot of methods to draw images.
refer the documentation for java.awt.Graphics
best of luck
-- yuvaraj (yuva@lycos.com), November 27, 2001.