Search tips
  • Thumbnail.java - Load an image, scale it to thumbnail size and save it as JPEG
    This programm loads an image via java.awt.Toolkit, scales it down to a user-defined resolution and saves it as a JPEG file. The first part, the loading of the original image, is done the same way as in Viewer. So if you don't know yet how loading images with Toolkit works you might want to study that program first. Different from Viewer, this program (Thumbnail) works on the command line. So you won't get any windows or other graphical user interface components. The only visual feedback is the word Done. after the program successfully terminated.
    A small commented Java program that creates a JPEG thumbnail file.
    image java save scale thumbnail
    in Public bookmarks with graphic java sourcecode

« Previous
graphic from all users