@@ -0,0 +1,895 @@
+package me.hugmanrique.pokedata.utils;%0A%0Aimport me.hugmanrique.pokedata.compression.Lz77;%0Aimport me.hugmanrique.pokedata.graphics.ImageType;%0Aimport me.hugmanrique.pokedata.graphics.Palette;%0Aimport me.hugmanrique.pokedata.graphics.ROMImage;%0Aimport me.hugmanrique.pokedata.roms.ROM;%0A%0A/**%0A * @author Hugmanrique%0A * @since 01/06/2017%0A */%0Apublic class ImageUtils %7B%0A    public static Palette getPalette(ROM rom, long pointer, ImageType type) %7B%0A        int%5B%5D data = Lz77.decompress(rom, (int) pointer);%0A%0A        return new Palette(type, data);%0A    %7D%0A%0A    public static Palette getPalette(ROM rom, long pointer) %7B%0A        return getPalette(rom, pointer, ImageType.C16);%0A    %7D%0A%0A    public static ROMImage getImage(ROM rom, long pointer, Palette palette, int width, int height) %7B%0A        int%5B%5D data = Lz77.decompress(rom, (int) pointer);%0A%0A        return new ROMImage(palette, data, width, height);%0A    %7D%0A%7D%0A

Add ImageUtils, palette and ROMImage helpers