Using the Device Context Functions