public DrawSettings(DrawFormat drawFormat, Font font, Color color, IColorizer colorizer) { DrawFormat = drawFormat; Font = font; Color = color; Colorizer = colorizer; }
public QRAnimationCreator( IQRCodeEncoder qrCodeEncoder, IBinarizer binarizer, ITriparizer triparizer, IColorizer colorizer, IMerger merger, IBitMatrixDrawer bitMatrixDrawer, ITripMatrixDrawer tripMatrixDrawer, Func <IReadOnlyList <IRgb24BitmapFrame>, IRgb24BitmapBase> frameMerger) : base(qrCodeEncoder, binarizer, triparizer, colorizer, merger, bitMatrixDrawer, tripMatrixDrawer) { FrameMerger = frameMerger; }
public Orange(string source, IColorizer colorizer = null, IFileCache fileCache = null, IConsole console = null) { this.source = source.Trim(); this.colorizer = colorizer; this.fileCache = fileCache; this.console = console; verboseText = ""; block = null; }
public static PresentedInfo TryAppendDeclaredElement( [NotNull] this IColorizer colorizer, [CanBeNull] IDeclaredElement element, [CanBeNull] ISubstitution substitution, [NotNull] PresenterOptions options) { if (element == null || substitution == null) { return(new PresentedInfo()); } return(colorizer.AppendDeclaredElement(element, substitution, options)); }
public static PresentedInfo TryAppendDeclaredElement( this IColorizer colorizer, IDeclaredElement?element, ISubstitution?substitution, PresenterOptions options, ITreeNode?contextualNode) { if (element is null || substitution is null) { return(new PresentedInfo()); } return(colorizer.AppendDeclaredElement(element, substitution, options, contextualNode)); }
public Orange(string source, IColorizer colorizer = null, IFileCache fileCache = null, IConsole console = null) { this.source = source.Trim(); this.colorizer = colorizer; this.fileCache = fileCache; this.console = console; verboseText = ""; block = null; Text = ""; ModuleFolders = new string[0]; LastValue = ""; LastType = ""; }
public RichText TryPresent([NotNull] DeclaredElementInstance declaredElementInstance, [NotNull] PresenterOptions options, [NotNull] PsiLanguageType languageType, bool useReSharperColors, [NotNull] out PresentedInfo presentedInfo) { var richText = new RichText(); IColorizer colorizer = TryCreateColorizer(richText, languageType, useReSharperColors); if (colorizer == null) { presentedInfo = new PresentedInfo(); return(null); } presentedInfo = colorizer.AppendDeclaredElement(declaredElementInstance.Element, declaredElementInstance.Substitution, options); return(richText); }
public RichText TryPresent([NotNull] DeclaredElementInstance declaredElementInstance, [NotNull] PresenterOptions options, [NotNull] PsiLanguageType languageType, [CanBeNull] string nameHighlightingAttributeId, [NotNull] out PresentedInfo presentedInfo) { var richText = new RichText(); presentedInfo = new PresentedInfo(); IColorizer colorizer = TryCreateColorizer(richText, options, languageType, presentedInfo); if (colorizer == null) { return(null); } colorizer.AppendDeclaredElement(declaredElementInstance.Element, declaredElementInstance.Substitution, nameHighlightingAttributeId); return(richText); }
public RichText TryPresent( [NotNull] ITreeNode presentableNode, [NotNull] PresenterOptions options, [NotNull] PsiLanguageType languageType, [NotNull] HighlighterIdProvider highlighterIdProvider) { var richText = new RichText(); IColorizer colorizer = TryCreateColorizer(richText, languageType, highlighterIdProvider); if (colorizer == null) { return(null); } colorizer.AppendPresentableNode(presentableNode, options); return(richText); }
public RichText TryPresent( [NotNull] DeclaredElementInstance declaredElementInstance, [NotNull] PresenterOptions options, [NotNull] PsiLanguageType languageType, [NotNull] HighlighterIdProvider highlighterIdProvider, [CanBeNull] ITreeNode contextualNode, [NotNull] out PresentedInfo presentedInfo) { var richText = new RichText(); IColorizer colorizer = TryCreateColorizer(richText, languageType, highlighterIdProvider); if (colorizer == null) { presentedInfo = new PresentedInfo(); return(null); } presentedInfo = colorizer.AppendDeclaredElement(declaredElementInstance.Element, declaredElementInstance.Substitution, options, contextualNode); return(richText); }
public QRArtCreator( IQRCodeEncoder qrCodeEncoder, IBinarizer binarizer, ITriparizer triparizer, IColorizer colorizer, IMerger merger, IBitMatrixDrawer bitMatrixDrawer, ITripMatrixDrawer tripMatrixDrawer) { if (qrCodeEncoder == null) { throw new ArgumentNullException(nameof(qrCodeEncoder)); } if (binarizer == null) { throw new ArgumentNullException(nameof(binarizer)); } if (colorizer == null) { throw new ArgumentNullException(nameof(colorizer)); } if (triparizer == null) { throw new ArgumentNullException(nameof(triparizer)); } if (merger == null) { throw new ArgumentNullException(nameof(merger)); } if (bitMatrixDrawer == null) { throw new ArgumentNullException(nameof(bitMatrixDrawer)); } QRCodeEncoder = qrCodeEncoder; Binarizer = binarizer; Triparizer = triparizer; Colorizer = colorizer; Merger = merger; BitMatrixDrawer = bitMatrixDrawer; TripMatrixDrawer = tripMatrixDrawer; }
public Terrain(HeightMap map, IColorizer colorizer) : base(map) { Colorizer = colorizer; Image = new Image(colorizer.Colorize(this)); }
private void Add(IColorizer item) => List.Add(item);