public void DrawLine(Point start, Point end) { var lineDefinition = new LineDefinition(start.GetPointInMillimeters(), end.GetPointInMillimeters()); _graphicsCommands.Add(new GraphicsCommand(Command.DrawLine, lineDefinition)); }
public void DrawCircle(Point center, int radius) { var circleDefinition = new CircleDefinition(center.GetPointInMillimeters(), radius.ToMillimeters()); _graphicsCommands.Add(new GraphicsCommand(Command.DrawCircle, circleDefinition)); }
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)); }
public void DrawBox(Point topLeft, Size size) { var boxDefinition = new BoxDefinition(topLeft.GetPointInMillimeters(), size.GetSizeInMillimeters()); _graphicsCommands.Add(new GraphicsCommand(Command.DrawBox, boxDefinition)); }