iTextSharp.text.pdf.PdfContentByte.SetGrayFill C# (CSharp) Метод

SetGrayFill() публичный метод

public SetGrayFill ( float value ) : void
value float
Результат void
        public virtual void SetGrayFill(float value)
        {
            content.Append(value).Append(" g").Append_i(separator);
        }

Usage Example

Пример #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