runelite-api: add SpritePixels.toBufferedImage

This commit is contained in:
Adam
2017-11-21 18:58:54 -05:00
parent ac071771b0
commit 1cad0c1504
3 changed files with 66 additions and 15 deletions

View File

@@ -24,6 +24,8 @@
*/
package net.runelite.api;
import java.awt.image.BufferedImage;
public interface SpritePixels
{
int DEFAULT_SHADOW_COLOR = 3153952;
@@ -35,4 +37,11 @@ public interface SpritePixels
int getHeight();
int[] getPixels();
/**
* Covert the SpritePixels to a BufferedImage
*
* @return
*/
BufferedImage toBufferedImage();
}