void SetGray(double grayscale,int par)
{
    if ( par == STROKING ) {
        sprintf(outputbuffer," %12.3f G",grayscale);
    }
    else {
        sprintf(outputbuffer," %12.3f g",grayscale);
    }
    sendClean(outputbuffer);
}