Convert a full color image to indexed (4bpp, 8bpp) color

JPG PNG TIFF BMP GIF ICO C# VB