Original Post
Hi What's the smartest to do if I want to save an Image as raw data within the program? I have several small images that I don't want to read from file, when program is executing. Instead I want the raw-data as code. Should I save each R,G,B,A from the BufferedImage into like: int[][] rawdata = { {r,g,b,a}, {r,g,b,a}, // Row 1 {r,g,b,a}, {r,g,b,a}, // Row 2 ... // etc }; And what's the best solution to rebuild the Image-object from raw-data?