code: private void load(InputStream in, String ref, boolean flipped, int f, Color transparent) throws SlickException {
  		this.filter = f == FILTER_LINEAR ? SGL.GL_LINEAR : SGL.GL_NEAREST;
  		
  		try {
  			this.ref = ref;
  			int[] trans = null;
  			if (transparent != null) {
  				trans = new int[3];
  				trans[0] = (int) (transparent.r * 255);
  				trans[1] = (int) (transparent.g * 255);
  				trans[2] = (int) (transparent.b * 255);
  			}
  			texture = InternalTextureLoader.get().getTexture(in, ref, flipped, filter, trans);
  		} catch (IOException e) {
  			Log.error(e);
  			throw new SlickException("Failed to load image from: "+ref, e);
  		}
  	}
docs: Load the image
  
  @param in The input stream to read the image from
  @param ref The name that should be assigned to the image
  @param flipped True if the image should be flipped on the y-axis  on load
  @param f The filter to use when scaling this image
  @param transparent The color to treat as transparent
  @throws SlickException Indicates a failure to load the image