How to display a simple RGB buffer ?
Hi all,
I would like to display a byte[] containing RGB values created with a native graphic library (i take a video snapshot).
I've tryed to create an ImageIcon with its constructor :
public ImageIcon(byte[] imageData) but imageData is normally created by reading an image using Class.getResourceAsStream(), as described in doc.
Is it possible to use ImageIcon class to display RGB values or must I use a BufferedImage ?
I'm reading BufferedImage constructors and it seems to be a bit difficult : you have to indicate colorModel, SampleModel, DataBuffer, DataType, etc...
If I must create a BufferedImage, please how do I do ?
Thanks in advance

