Exemplo n.º 1
0
 public void DrawRectangle(double x, double y, double _width, double _height, RgbColor bordercolor, RgbColor fillcolor)
 {
     Content.SaveState();
     Content.SetRGBColorFill(fillcolor.Red, fillcolor.Green, fillcolor.Blue);
     Content.SetRGBColorStroke(bordercolor.Red, bordercolor.Green, bordercolor.Blue);
     Content.ShowRectangle(x, y , _width, _height);
     Content.RestoreState();
 }
Exemplo n.º 2
0
 public void DrawText(string text, double x, double y, string font, double fontSize, RgbColor rgbColor)
 {
     Content.SaveState();
     Content.SetRGBColorFill(rgbColor.Red, rgbColor.Green, rgbColor.Blue);
     Content.BeginText();
     Content.SetFont(font, fontSize);
     Content.SetTextPos(x, y);
     Content.ShowText(text);
     Content.EndText();
     Content.RestoreState();
 }
Exemplo n.º 3
0
 public void DrawText(string text, double x, double y, PdfFont font, double fontzsize, RgbColor color)
 {
     DrawText(text, x, y, font.FontName, fontzsize, color);
 }