List of usage examples for java.awt GraphicsConfiguration getColorModel
public abstract ColorModel getColorModel(int transparency);
From source file:Main.java
public static void main(String[] argv) { GraphicsEnvironment ge = GraphicsEnvironment.getLocalGraphicsEnvironment(); GraphicsDevice gs = ge.getDefaultScreenDevice(); GraphicsConfiguration gc = gs.getDefaultConfiguration(); System.out.println(gc.getColorModel(Transparency.BITMASK)); }