Exemple #1
0
 public void DrawLine(Point start, Point end)
 {
     var lineDefinition = new LineDefinition(start.GetPointInMillimeters(), end.GetPointInMillimeters());
     _graphicsCommands.Add(new GraphicsCommand(Command.DrawLine, lineDefinition));
 }
Exemple #2
0
 public void DrawCircle(Point center, int radius)
 {
     var circleDefinition = new CircleDefinition(center.GetPointInMillimeters(), radius.ToMillimeters());
     _graphicsCommands.Add(new GraphicsCommand(Command.DrawCircle, circleDefinition));
 }
Exemple #3
0
        public void DrawImage(Point topLeft, Size size, ImageType imageType, Stream sourceStream)
        {
            var xObject = _owner.AddXObject(imageType, sourceStream);
            var imageDefinition = new ImageDefinition(topLeft.GetPointInMillimeters(), size.GetSizeInMillimeters(), imageType, sourceStream, xObject);

            _graphicsCommands.Add(new GraphicsCommand(Command.DrawImage, imageDefinition));
        }
Exemple #4
0
 public void DrawBox(Point topLeft, Size size)
 {
     var boxDefinition = new BoxDefinition(topLeft.GetPointInMillimeters(), size.GetSizeInMillimeters());
     _graphicsCommands.Add(new GraphicsCommand(Command.DrawBox, boxDefinition));
 }