static extern bool gimp_image_convert_indexed(Int32 image_ID, ConvertDitherType dither_type, ConvertPaletteType palette_type, int num_cols, bool alpha_dither, bool remove_unused, string palette);
public void ConvertIndexed(ConvertDitherType dither_type, ConvertPaletteType palette_type, int num_cols, bool alpha_dither, bool remove_unused, string palette) { if (!gimp_image_convert_indexed(ID, dither_type, palette_type, num_cols, alpha_dither, remove_unused, palette)) { // throw new GimpSharpException(); } }