Package org.oscim.utils
Class BitmapPacker.GuillotineStrategy
java.lang.Object
org.oscim.utils.BitmapPacker.GuillotineStrategy
- All Implemented Interfaces:
BitmapPacker.PackStrategy
- Enclosing class:
- BitmapPacker
public static class BitmapPacker.GuillotineStrategy
extends Object
implements BitmapPacker.PackStrategy
Does bin packing by inserting to the right or below previously packed rectangles.
This is good at packing arbitrarily sized images.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionpack(BitmapPacker packer, Object key, org.oscim.utils.BitmapPacker.Rect rect) void
-
Constructor Details
-
GuillotineStrategy
public GuillotineStrategy()
-
-
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
-