private void build ( String ref , int filter , int tileSize ) throws SlickException { try { final LoadableImageData data = ImageDataFactory . getImageDataFor ( ref ) ; final ByteBuffer imageBuffer = data . loadImage ( ResourceLoader . getResourceAsStream ( ref ) , false , null ) ; build ( data , imageBuffer , filter , tileSize ) ; } catch ( IOException e ) { throw new SlickException ( "Failed to load: " + ref , e ) ; } }
Create a new big image by loading it from the specified reference