Does anyone know of or have an example of using System.Drawing.Imaging.ColorPalette

Does anyone know what the equivalent to GetNearestPaletteIndex API call is in .NET and know of an example of using it.

or could anyone transpose this vb6 code to .net http://www.vbforums.com/showthread.p...1&goto=newpost