Is it possible to create an image using java? The bottom line is that a multidimensional array of numbers will be obtained, i.e. it will be necessary to display the matrix on the screen and paint each field in a certain color.

Or are there other options, for example, using HTML?

    1 answer 1

    Yes, for example, using BufferedImage. He needs to set the required size and color model in the constructor, then use the setRGB method setRGB set the color of each pixel. The resulting image can either be written to a file via ImageIO, or displayed on the screen via Swing or JavaFX.