Have you ever wanted to save a frame from a Java applet to an image file? In this quick piece of code, I will show you how to save an image produced by an applet to a file. Although it does a different thing, I pretty much wrote this code based on Evo’s reply in StackOverflow. This will be helpful if you want to save a series of frames to images and then animate by making a video, which is what I did to generate this video. I will explain in a later tutorial, how I made that video.
The output file that was saved by the above program:
I think and read about Technology and the Human Mind. I am currently an ML engineer at Google, but the opinions here are my own and do not reflect that of my employer. Read More »