|
Hi to all I am designing an symbol drawer application that draws engineering symbols where they are complex symbols so that the drawing screen of my application panel is large to paint detailed. Well when user draws on the screen after every mouse relase action happened, the drawing in the screen is painted to a buffered image.
My question is. there are saave and load buttons. When user clicks the save button I want user to enter the file name and i want to save the big buffered image to a gif file where the size is 64 X 64 which should be fixed so that it will be used in another application.
Any suggestions and solutions are highly appriciated.
Thanx
metan
|
|
|
I thought i should use a gif encoder but dont know how to do it.
best regards
metan.
|
|
|
These exist and you can find out where to buy them by searching on google. An alternative is to save the drawing as a "png" image. There are no copyright problems with "png" and you can read/load them from and write/save them to file with the ImageIO class. Also, you can use a JFileChooser to allow the user to navigate to a desired folder and to enter a file name for saving the image.
|
|
|
|
|
|
|
|
|