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

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

public SetRGBColorFill ( int red, int green, int blue ) : void
red int
green int
blue int
Результат void
        public virtual void SetRGBColorFill(int red, int green, int blue)
        {
            HelperRGB((float)(red & 0xFF) / 0xFF, (float)(green & 0xFF) / 0xFF, (float)(blue & 0xFF) / 0xFF);
            content.Append(" rg").Append_i(separator);
        }

Usage Example

Пример #1
1
 public void Ellipse(PdfContentByte content, Rectangle rect) {
   content.SaveState();
   content.SetRGBColorFill(0x00, 0x00, 0xFF);
   content.Ellipse(
     rect.Left - 3f, rect.Bottom - 5f,
     rect.Right + 3f, rect.Top + 3f
   );
   content.Fill();
   content.RestoreState();
 }
All Usage Examples Of iTextSharp.text.pdf.PdfContentByte::SetRGBColorFill
PdfContentByte