From e3ff5dd487172eed6601bc4a7bbebb209ba4de3f Mon Sep 17 00:00:00 2001 From: Ron Young Date: Wed, 28 Oct 2020 07:12:09 -0500 Subject: [PATCH] runelite-api: import SpritePixels methods --- .../java/net/runelite/api/SpritePixels.java | 56 +++++++++++++++++++ 1 file changed, 56 insertions(+) diff --git a/runelite-api/src/main/java/net/runelite/api/SpritePixels.java b/runelite-api/src/main/java/net/runelite/api/SpritePixels.java index 4ebdbdba1c..c5e99a6432 100644 --- a/runelite-api/src/main/java/net/runelite/api/SpritePixels.java +++ b/runelite-api/src/main/java/net/runelite/api/SpritePixels.java @@ -56,6 +56,62 @@ public interface SpritePixels */ int getHeight(); + /** + * Gets the max width of the sprite image in pixels. + * + * @return the width + */ + int getMaxWidth(); + + /** + * Gets the max height of the sprite image in pixels. + * + * @return the height + */ + int getMaxHeight(); + + /** + * Gets the x offset of the sprite image in pixels. + * + * @return the offset + */ + int getOffsetX(); + + /** + * Gets the y offset of the sprite image in pixels. + * + * @return the offset + */ + int getOffsetY(); + + /** + * Sets the max width of the sprite image in pixels. + * + * @param maxWidth the width + */ + void setMaxWidth(int maxWidth); + + /** + * Sets the max height of the sprite image in pixels. + * + * @param maxHeight the height + */ + void setMaxHeight(int maxHeight); + + /** + * Sets the x offset of the sprite image in pixels. + * + * @param offsetX the offset + */ + void setOffsetX(int offsetX); + + /** + * Sets the y offset of the sprite image in pixels. + * + * @param offsetY the offset + */ + void setOffsetY(int offsetY); + /** * Gets an array of all pixels data in the sprite. *