From bcf24bdabdbe77da95406d5a0ad70f66702e74b8 Mon Sep 17 00:00:00 2001 From: Christopher Milne-O'Grady Date: Sun, 19 Feb 2023 21:13:37 -0500 Subject: [PATCH] Add get dimensions for sprites --- .../java/com/github/cfogrady/vb/dim/sprite/SpriteData.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/github/cfogrady/vb/dim/sprite/SpriteData.java b/src/main/java/com/github/cfogrady/vb/dim/sprite/SpriteData.java index f5fa428..0721965 100644 --- a/src/main/java/com/github/cfogrady/vb/dim/sprite/SpriteData.java +++ b/src/main/java/com/github/cfogrady/vb/dim/sprite/SpriteData.java @@ -81,6 +81,10 @@ public byte[] getBGRA() { } return bgra; } + + public SpriteDimensions getSpriteDimensions() { + return SpriteDimensions.builder().width(width).height(height).build(); + } } private static int scaleTo24BitColor(int color, int fromBits) {