private IMask load(string path, IBitmap image, bool transparentMeansMasked = false, Color?debugDrawColor = null, string saveMaskToFile = null, string id = null) { var mask = image.CreateMask(_factory, path, transparentMeansMasked, debugDrawColor, saveMaskToFile, id); return(mask); }
private IMask load(string path, IBitmap image, bool transparentMeansMasked = false, Color? debugDrawColor = null, string saveMaskToFile = null, string id = null) { #if DEBUG bool hasColor = debugDrawColor != null; debugDrawColor = debugDrawColor ?? Colors.Blue.WithAlpha(150); //for the debug display list window #endif var mask = image.CreateMask(_factory, path, transparentMeansMasked, debugDrawColor, saveMaskToFile, id); if (mask.DebugDraw != null) mask.DebugDraw.Enabled = false; #if DEBUG if (!hasColor) mask.DebugDraw.Visible = false; #endif return mask; }
private IMask load(string path, IBitmap image, bool transparentMeansMasked = false, Color? debugDrawColor = null, string saveMaskToFile = null, string id = null) { return image.CreateMask(_factory, path, transparentMeansMasked, debugDrawColor, saveMaskToFile, id); }