High Level: Gallery
How to Prepare a Collection of Images
4D Systems supplies the free utility Graphic Composer to prepare a collection of images.
Follow the instructions of the user guide:
How to Display the Images with the Library
Declare all the libraries needed, here with an example based on NewSoftSerial library:
begin looks for the files images.dat and images.gci and returns the number of images or 0 in case of an error.
a = myGallery.begin(&myLCD, "images");
index gives the number of the current image, while number gives the total number of images.
showNext goes to the next image and then shows it. When the last image is reached, the next image is the first of the collection.
a = myGallery.showNext();
showPrevious goes to the previous image and then shows it.
When the first image is reached, the previous image is the last of the collection.
a = myGallery.showPrevious();
showImage shows the image which number is specified, provided this number is within the range of the images.
a = myGallery.showImage(1);