title: RGB Macro c# equivalent
body: <p>Is there an equivalent function in c# for the rgb macro in c++? I am trying to convert a managed c++ file to c#.
  Is there a workaround for the getrvalue , getgvalue methods etc.?</p>