It depends on which program/framework you are using. In general though, you import the image into the program, and import it as a tile/sprite sheet.