Add implementation for Graphics.GetNearestColor