| Modifier and Type | Field and Description |
|---|---|
| private final HashMap | |
| private static final BufferedImage | |
| private static Pattern | |
| private final Array | |
| private TexturePacker. | |
| private float | |
| private final TexturePacker. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public TexturePacker. | addImage(File file, String
Used to strip the root directory prefix from image file names, can be null. rootPath)The image won't be kept in-memory during packing if |
| public TexturePacker. | |
| public void | |
| public Array | |
| private int[] | getPads(BufferedImage image, String name, int[] splits)
Returns the pads, or null if the image had no pads or the pads match the splits. |
| public float | |
| public TexturePacker. | |
| private static int | getSplitPoint(WritableRaster raster, String name, int startX, int startY, boolean startPoint, boolean xAxis)
Hunts for the start or end of a sequence of split pixels. |
| private int[] | getSplits(BufferedImage image, String name)
Returns the splits, or null if the image had no splits or the splits were only a single region. |
| private static String | |
| private static void | |
| protected TexturePacker. | processImage(BufferedImage image, String name)
Returns a rect for the image describing the texture region to be packed, or null if the image should not be packed. |
| public void | |
| public void | |
| private static String | |
| protected TexturePacker. | stripWhitespace(String name, BufferedImage source)
Strips whitespace and returns the rect, or null if the image should be ignored. |
| crcs | back to summary |
|---|---|
| private final HashMap<String, TexturePacker. | |
| emptyImage | back to summary |
|---|---|
| private static final BufferedImage emptyImage | |
| indexPattern | back to summary |
|---|---|
| private static Pattern indexPattern | |
| rects | back to summary |
|---|---|
| private final Array<TexturePacker. | |
| resampling | back to summary |
|---|---|
| private TexturePacker. | |
| scale | back to summary |
|---|---|
| private float scale | |
| settings | back to summary |
|---|---|
| private final TexturePacker. | |
| ImageProcessor | back to summary |
|---|---|
| public ImageProcessor(TexturePacker. | |
| addImage | back to summary |
|---|---|
| public TexturePacker. The image won't be kept in-memory during packing if
| |
| addImage | back to summary |
|---|---|
| public TexturePacker. The image will be kept in-memory during packing.
| |
| clear | back to summary |
|---|---|
| public void clear() | |
| getImages | back to summary |
|---|---|
| public Array | |
| getPads | back to summary |
|---|---|
| private int[] getPads(BufferedImage image, String name, int[] splits) Returns the pads, or null if the image had no pads or the pads match the splits. Pads are an int[4] that has left, right, top, bottom. | |
| getScale | back to summary |
|---|---|
| public float getScale() | |
| getSettings | back to summary |
|---|---|
| public TexturePacker. | |
| getSplitPoint | back to summary |
|---|---|
| private static int getSplitPoint(WritableRaster raster, String name, int startX, int startY, boolean startPoint, boolean xAxis) Hunts for the start or end of a sequence of split pixels. Begins searching at (startX, startY) then follows along the x or y axis (depending on value of xAxis) for the first non-transparent pixel if startPoint is true, or the first transparent pixel if startPoint is false. Returns 0 if none found, as 0 is considered an invalid split point being in the outer border which will be stripped. | |
| getSplits | back to summary |
|---|---|
| private int[] getSplits(BufferedImage image, String name) Returns the splits, or null if the image had no splits or the splits were only a single region. Splits are an int[4] that has left, right, top, bottom. | |
| hash | back to summary |
|---|---|
| private static String hash(BufferedImage image) | |
| hash | back to summary |
|---|---|
| private static void hash(MessageDigest digest, int value) | |
| processImage | back to summary |
|---|---|
| protected TexturePacker. Returns a rect for the image describing the texture region to be packed, or null if the image should not be packed. | |
| setResampling | back to summary |
|---|---|
| public void setResampling(TexturePacker. | |
| setScale | back to summary |
|---|---|
| public void setScale(float scale) | |
| splitError | back to summary |
|---|---|
| private static String splitError(int x, int y, int[] rgba, String name) | |
| stripWhitespace | back to summary |
|---|---|
| protected TexturePacker. Strips whitespace and returns the rect, or null if the image should be ignored. | |