Hello!
My question is about displaying images with different colorformat. My monitor is running in 1280x1024 32bit mode. I think this means that it has some kind of argb or rgba pixel format. I tried the following to determine this:
GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment();
GraphicsConfiguration gc = ge.getDefaultScreenDevice().getDefaultConfiguration();
ColorModel cm = gc.getColorModel();
System.out.println(cm.toString());
and the result:
DirectColorModel: rmask=ff0000 gmask=ff00 bmask=ff amask=0
hasAlpha returns false too. So it looks like my monitor is running in 24bit mode. How can that be possible? I would like to know this because I decoding MPEG4 video to some kind of pixel format and I think, if the monitor is running in another format then it will be converted before displaying. So if the monitor in 32bit argb mode then I have to decode to 32bit argb which makes the displaying faster(no need for colorspace convert). Is this correct?
Thanks in advance,
Bendeguy