Class PixmapPacker.GuillotineStrategy

  • All Implemented Interfaces:
    PixmapPacker.PackStrategy
    Enclosing class:
    PixmapPacker

    public static class PixmapPacker.GuillotineStrategy
    extends java.lang.Object
    implements PixmapPacker.PackStrategy
    Does bin packing by inserting to the right or below previously packed rectangles. This is good at packing arbitrarily sized images.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PixmapPacker.Page pack​(PixmapPacker packer, java.lang.String name, Rectangle rect)
      Returns the page the rectangle should be placed in and modifies the specified rectangle position.
      void sort​(Array<Pixmap> pixmaps)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait