private static void SetupExtractor(int envMode, float leftRatio, float rightRatio, float topRatio, float bottomRatio, int minFaceWidth, float maxFaceWidthRatio, Rectangle SearchRectangle) { NativeIconExtractor.SetExRatio(topRatio, bottomRatio, leftRatio, rightRatio); NativeIconExtractor.SetROI(SearchRectangle.Left, SearchRectangle.Top, SearchRectangle.Width - 1, SearchRectangle.Height - 1); NativeIconExtractor.SetFaceParas(minFaceWidth, maxFaceWidthRatio); NativeIconExtractor.SetLightMode(envMode); }