Interface Display
- All Known Implementing Classes:
AbstractDisplay, UnixDisplay
Display refers to the information regarding a video source and monitor identified by the EDID standard.
The getEdid() method returns the raw EDID (Extended Display Identification Data) byte array, a 128-byte (or
longer) structure that monitors transmit to describe their capabilities. Use the EdidUtil class to
parse this byte array into human-readable fields such as manufacturer ID, product ID, serial number, display
dimensions, and supported resolutions.
Example: extracting monitor manufacturer and dimensions:
for (Display display : hal.getDisplays()) {
byte[] edid = display.getEdid();
System.out.println("Manufacturer: " + EdidUtil.getManufacturerID(edid));
System.out.println("Product ID: " + EdidUtil.getProductID(edid));
int hCm = EdidUtil.getHcm(edid);
int vCm = EdidUtil.getVcm(edid);
System.out.printf("Size: %d cm x %d cm%n", hCm, vCm);
}
- See Also:
-
Method Summary
-
Method Details
-
getEdid
byte[] getEdid()The EDID byte array.- Returns:
- The original unparsed EDID byte array.
-