Package arc.graphics.g2d
Class PixmapPacker.SkylineStrategy
java.lang.Object
arc.graphics.g2d.PixmapPacker.SkylineStrategy
- All Implemented Interfaces:
PixmapPacker.PackStrategy
- Enclosing class:
- PixmapPacker
public static class PixmapPacker.SkylineStrategy
extends Object
implements PixmapPacker.PackStrategy
Does bin packing by inserting in rows. This is good at packing images that have similar heights.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionpack
(PixmapPacker packer, String name, Rect rect) Returns the page the rectangle should be placed in and modifies the specified rectangle position.void
sort
(Seq<PixmapRegion> images)
-
Constructor Details
-
SkylineStrategy
public SkylineStrategy()
-
-
Method Details
-
sort
- Specified by:
sort
in interfacePixmapPacker.PackStrategy
-
pack
Description copied from interface:PixmapPacker.PackStrategy
Returns the page the rectangle should be placed in and modifies the specified rectangle position.- Specified by:
pack
in interfacePixmapPacker.PackStrategy
-