Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        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;
		}
Exemplo n.º 3
0
		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);
		}