/// <summary> /// Converts a bitmap to 1-bit monochrome bitmap using a threshold T between [0..255]. /// The function first converts the bitmap to a 8-bit greyscale bitmap. Then, any brightness /// level that is less than T is set to zero, otherwise to 1. For 1-bit input bitmaps, the /// function clones the input bitmap and builds a monochrome palette. /// </summary> /// <param name="range"></param> /// <returns></returns> public FreeImage Threshold(byte range) { int i = FreeImageApi.Threshold(m_Handle, range); return(new FreeImage(i)); }