I'm looking for a way to find the pixel dimensions of a .gif file in Java.
Will I have to convert one of the images from the gif to a BufferedImage and get it from there or is there a simpler way?
Using ImageIO doesn't work because I need to use ImageIcons to draw a gif using Swing. Here's how I'm drawing it.
attackImage = new ImageIcon("assets/Attacks/EnergyAttack.gif").getImage();
g.drawImage(attackImage, getX() + 20, getY(), null);