This method of the DirectDraw Class retrieves the scan line that is currently being drawn on the monitor.
public int getScanLine();
Returns the scan line.
getVerticalBlankStatus, waitForVerticalBlank