iTextSharp.text.pdf.PdfContentByte.SetGrayFill C# (CSharp) Method

SetGrayFill() public method

public SetGrayFill ( float value ) : void
value float
return void
        public virtual void SetGrayFill(float value)
        {
            content.Append(value).Append(" g").Append_i(separator);
        }

Usage Example

Exemplo n.º 1
1
// ---------------------------------------------------------------------------    
    /**
     * Draws three rectangles
     * @param canvas
     */
    public void DrawRectangles(PdfContentByte canvas) {
      canvas.SaveState();
      canvas.SetGrayFill(0.9f);
      canvas.Rectangle(33, 592, 72, 72);
      canvas.Rectangle(263, 406, 72, 72);
      canvas.Rectangle(491, 168, 72, 72);
      canvas.FillStroke();
      canvas.RestoreState();
    }    
All Usage Examples Of iTextSharp.text.pdf.PdfContentByte::SetGrayFill
PdfContentByte