Skip to content

Mosaic library made in java with love <3

License

Notifications You must be signed in to change notification settings

Zentae/mosaic-library

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mosaic-library

Lightweight library made in java with love <3

How to use it

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();

Some examples

alt text 373ko alt text 477ko alt text 75Ko

About

Mosaic library made in java with love <3

Resources

License

Stars

Watchers

Forks

Languages