public class BitmapPacker
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
BitmapPacker.GuillotineStrategy
Does bin packing by inserting to the right or below previously packed rectangles.
|
static class |
BitmapPacker.PackerAtlasItem |
static interface |
BitmapPacker.PackStrategy |
static class |
BitmapPacker.SkylineStrategy
Does bin packing by inserting in rows.
|
| Constructor and Description |
|---|
BitmapPacker(int atlasWidth,
int atlasHeight,
int padding,
BitmapPacker.PackStrategy packStrategy,
boolean flipY) |
BitmapPacker(int atlasWidth,
int atlasHeight,
int padding,
boolean flipY) |
| Modifier and Type | Method and Description |
|---|---|
org.oscim.utils.BitmapPacker.Rect |
add(java.lang.Object key,
Bitmap image) |
int |
getAtlasCount() |
BitmapPacker.PackerAtlasItem |
getAtlasItem(int index) |
public BitmapPacker(int atlasWidth,
int atlasHeight,
int padding,
boolean flipY)
public BitmapPacker(int atlasWidth,
int atlasHeight,
int padding,
BitmapPacker.PackStrategy packStrategy,
boolean flipY)
public org.oscim.utils.BitmapPacker.Rect add(java.lang.Object key,
Bitmap image)
public BitmapPacker.PackerAtlasItem getAtlasItem(int index)
public int getAtlasCount()