Package org.oscim.utils
Class BitmapPacker
java.lang.Object
org.oscim.utils.BitmapPacker
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDoes bin packing by inserting to the right or below previously packed rectangles.static classstatic interfacestatic classDoes bin packing by inserting in rows. -
Constructor Summary
ConstructorsConstructorDescriptionBitmapPacker(int atlasWidth, int atlasHeight, int padding, boolean flipY) BitmapPacker(int atlasWidth, int atlasHeight, int padding, BitmapPacker.PackStrategy packStrategy, boolean flipY) -
Method Summary
-
Constructor Details
-
BitmapPacker
public BitmapPacker(int atlasWidth, int atlasHeight, int padding, boolean flipY) -
BitmapPacker
public BitmapPacker(int atlasWidth, int atlasHeight, int padding, BitmapPacker.PackStrategy packStrategy, boolean flipY)
-
-
Method Details
-
add
-
getAtlasItem
-
getAtlasCount
public int getAtlasCount()
-