Package snap.gfx

Class ImageSet

java.lang.Object
snap.gfx.ImageSet

public class ImageSet extends Object
A class to manage a set of images.
  • Constructor Details

    • ImageSet

      public ImageSet(List<Image> theImages)
      Constructor.
  • Method Details

    • getCount

      public int getCount()
      Returns the number of images.
    • getImage

      public Image getImage(int anIndex)
      Returns the individual image at index.
    • getIndex

      public int getIndex(Image anImage)
      Returns the next image.
    • getNext

      public Image getNext(Image anImage)
      Returns the next image.
    • getImageScaled

      public Image getImageScaled(double aRatio)
      Returns the image set scaled.
    • getSpriteSheetImage

      public Image getSpriteSheetImage()
      Returns a sheet image.