Lightweight library made in java with love <3
Draw the thumbnails.
int thumbnailsLength = 20;
// Thumbnails.
Image[][] thumbnails = new Image[thumbnailsLength][thumbnailsLength];
// Thumbnail's dimension.
Dimension thumbnailDimension = new Dimension(20, 20);
// Create the mosaic's drawer.
Drawer thumbnailDrawer = new ThumbnailsDrawer(image, thumbnailDimension);
// Draw the thumbnail.
Image thumbnail = thumbnailDrawer.draw();
Draw the mosaic.
//...
Dimension mosaicDimension = new Dimension(20, 20);
// Create the mosaic's drawer.
Drawer mosaicDrawer = new MosaicDrawer(image, thumbnails, mosaicDimension);
// Draw the picture.
Image mosaic = mosaicDrawer.draw();