public string ToString(ImageSpaceCinematic.Mask <bool>?printMask = null) { var fg = new FileGeneration(); ToString(fg, printMask); return(fg.ToString()); }
public Mask <R> Translate <R>(Func <TItem, R> eval) { var ret = new ImageSpaceCinematic.Mask <R>(); this.Translate_InternalFill(ret, eval); return(ret); }
public void ToString(FileGeneration fg, ImageSpaceCinematic.Mask <bool>?printMask = null) { fg.AppendLine($"{nameof(ImageSpaceCinematic.Mask<TItem>)} =>"); fg.AppendLine("["); using (new DepthWrapper(fg)) { if (printMask?.Saturation ?? true) { fg.AppendItem(Saturation, "Saturation"); } if (printMask?.Brightness ?? true) { fg.AppendItem(Brightness, "Brightness"); } if (printMask?.Contrast ?? true) { fg.AppendItem(Contrast, "Contrast"); } } fg.AppendLine("]"); }