Skip to content

Commit

Permalink
Add get dimensions for sprites
Browse files Browse the repository at this point in the history
  • Loading branch information
cfogrady committed Feb 20, 2023
1 parent 617e171 commit bcf24bd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit bcf24bd

Please sign in to comment.