void GlobalToLocal (float *x, float *y)
Converts the given coordinates from view coordinates (usually canvas coordinates) to buffer location coordinates.
Only valid when the buffer is viewed.