This sample demonstrates creating thumbnails. When an image is opened, the thumbnail is created. You can open multiple images and view all thumbnails at once. When you click the thumbnail, the image appears in its original size. You can find the samples in the
Listed below are the methods used in this sample:
IMG_decompress_bitmap(String, int)reads in a document in any format and converts it to a valid Snowbound image.
IMG_display_bitmap_aspect(java.awt.Graphics,java.awt.Container, int, int, int, int, int)displays the current image, corrected for aspect ratio, at the current X andY coordinates.
IMG_resize_bitmap_bicubic(int, int)scales down images using a bicubic interpolation algorithm.
IMG_resize_to_gray(int, int)resizes a 1-bit black and white image to a (smaller) 8-bit grayscale image.
Have questions, corrections, or concerns about this topic? Please let us know!