/// <summary> /// Setups the shading pattern from the specified brush. /// </summary> public void SetupFromBrush(XLinearGradientBrush brush, XMatrix matrix) { if (brush == null) throw new ArgumentNullException("brush"); PdfShading shading = new PdfShading(this.document); shading.SetupFromBrush(brush); Elements[Keys.Shading] = shading; Elements[Keys.Matrix] = new PdfLiteral("[" + PdfEncoders.ToString(matrix) + "]"); }
/// <summary> /// Setups the shading pattern from the specified brush. /// </summary> internal void SetupFromBrush(XLinearGradientBrush brush, XMatrix matrix, XGraphicsPdfRenderer renderer) { if (brush == null) throw new ArgumentNullException("brush"); PdfShading shading = new PdfShading(_document); shading.SetupFromBrush(brush, renderer); Elements[Keys.Shading] = shading; //Elements[Keys.Matrix] = new PdfLiteral("[" + PdfEncoders.ToString(matrix) + "]"); Elements.SetMatrix(Keys.Matrix, matrix); }
/// <summary> /// Setups the shading pattern from the specified brush. /// </summary> internal void SetupFromBrush(XLinearGradientBrush brush, XMatrix matrix, XGraphicsPdfRenderer renderer) { if (brush == null) { throw new ArgumentNullException("brush"); } PdfShading shading = new PdfShading(_document); shading.SetupFromBrush(brush, renderer); Elements[Keys.Shading] = shading; //Elements[Keys.Matrix] = new PdfLiteral("[" + PdfEncoders.ToString(matrix) + "]"); Elements.SetMatrix(Keys.Matrix, matrix); }
/// <summary> /// Setups the shading pattern from the specified brush. /// </summary> public void SetupFromBrush(XLinearGradientBrush brush, XMatrix matrix) { if (brush == null) { throw new ArgumentNullException("brush"); } PdfShading shading = new PdfShading(this.document); shading.SetupFromBrush(brush); Elements[Keys.Shading] = shading; //Elements[Keys.Matrix] = new PdfLiteral("[" + PdfEncoders.ToString(matrix) + "]"); Elements.SetMatrix(Keys.Matrix, matrix); }