/// <exception cref="ArgumentNullException"><paramref name="eplTransformer" /> is <see langword="null" />.</exception> /// <exception cref="ArgumentNullException"><paramref name="eplCommands" /> is <see langword="null" />.</exception> public SvgImageTranslator([NotNull] EplTransformer eplTransformer, [NotNull] EplCommands eplCommands) : base(eplTransformer) { this.EplTransformer = eplTransformer ?? throw new ArgumentNullException(nameof(eplTransformer)); this.EplCommands = eplCommands ?? throw new ArgumentNullException(nameof(eplCommands)); }
/// <exception cref="ArgumentNullException"><paramref name="eplCommands" /> is <see langword="null" />.</exception> public EplRenderer([NotNull] EplCommands eplCommands, PrinterCodepage printerCodepage = PrinterCodepage.Dos850, int countryCode = 850) { this.EplCommands = eplCommands ?? throw new ArgumentNullException(nameof(eplCommands)); this.PrinterCodepage = printerCodepage; this.CountryCode = countryCode; }
/// <exception cref="ArgumentNullException"><paramref name="eplTransformer" /> is <see langword="null" />.</exception> /// <exception cref="ArgumentNullException"><paramref name="eplCommands" /> is <see langword="null" />.</exception> /// <exception cref="ArgumentNullException"><paramref name="svgUnitReader" /> is <see langword="null" />.</exception> public SvgRectangleTranslator([NotNull] EplTransformer eplTransformer, [NotNull] EplCommands eplCommands, [NotNull] SvgUnitReader svgUnitReader) { this.EplTransformer = eplTransformer ?? throw new ArgumentNullException(nameof(eplTransformer)); this.EplCommands = eplCommands ?? throw new ArgumentNullException(nameof(eplCommands)); this.SvgUnitReader = svgUnitReader ?? throw new ArgumentNullException(nameof(svgUnitReader)); }
protected virtual EplRenderer CreateEplRenderer([NotNull] EplCommands eplCommands, PrinterCodepage printerCodepage = PrinterCodepage.Dos850, int countryCode = 850) { if (eplCommands == null) { throw new ArgumentNullException(nameof(eplCommands)); } var eplRenderer = new EplRenderer(eplCommands, printerCodepage, countryCode); return(eplRenderer); }
protected virtual SvgLineTranslator CreateSvgLineTranslator([NotNull] EplTransformer eplTransformer, [NotNull] EplCommands eplCommands) { if (eplTransformer == null) { throw new ArgumentNullException(nameof(eplTransformer)); } if (eplCommands == null) { throw new ArgumentNullException(nameof(eplCommands)); } var svgLineTranslator = new SvgLineTranslator(eplTransformer, eplCommands); return(svgLineTranslator); }