Skip to content
ECMGS edited this page Oct 22, 2019 · 1 revision

jBMP

jBMP is the perfect library library for loading and using BMP files into your program or game.


Documentation

ecmgs.jbmp.Jbm: The main class for jBMP

public Jbmo(String path)

(Constructor) Loads the file and gets basic information from the file

public int[][][] getImage()

Returns a 3D array with the pixels of the file with the following structure

pixel[x][y][rgb]

          x: the x coordinate
          y: the y coordinate
          rgb: is for getting the color of the pixel, 0 would get the green, 1 would get the red and 2 would get tge blue
Clone this wiki locally