Example usage for java.awt GraphicsConfiguration getColorModel

List of usage examples for java.awt GraphicsConfiguration getColorModel

Introduction

In this page you can find the example usage for java.awt GraphicsConfiguration getColorModel.

Prototype

public abstract ColorModel getColorModel(int transparency);

Source Link

Document

Returns the ColorModel associated with this GraphicsConfiguration that supports the specified transparency.

Usage

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));
}