Package org.oscim.utils
Class BitmapPacker.SkylineStrategy
java.lang.Object
org.oscim.utils.BitmapPacker.SkylineStrategy
- All Implemented Interfaces:
BitmapPacker.PackStrategy
- Enclosing class:
- BitmapPacker
public static class BitmapPacker.SkylineStrategy
extends Object
implements BitmapPacker.PackStrategy
Does bin packing by inserting in rows. This is good at packing images that have similar heights.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpack(BitmapPacker packer, Object key, org.oscim.utils.BitmapPacker.Rect rect) void
-
Constructor Details
-
SkylineStrategy
public SkylineStrategy()
-
-
Method Details
-
sort
- Specified by:
sortin interfaceBitmapPacker.PackStrategy
-
pack
public BitmapPacker.PackerAtlasItem pack(BitmapPacker packer, Object key, org.oscim.utils.BitmapPacker.Rect rect) - Specified by:
packin interfaceBitmapPacker.PackStrategy
-