Files
PdfPig/src/UglyToad.Pdf/Graphics/Operations/PathConstruction/AppendRectangle.cs

35 lines
845 B
C#
Raw Normal View History

namespace UglyToad.Pdf.Graphics.Operations.PathConstruction
{
using Content;
using Geometry;
internal class AppendRectangle : IGraphicsStateOperation
{
public const string Symbol = "re";
public string Operator => Symbol;
public PdfPoint LowerLeft { get; }
public decimal Width { get; }
public decimal Height { get; }
public AppendRectangle(decimal x, decimal y, decimal width, decimal height)
{
LowerLeft = new PdfPoint(x, y);
Width = width;
Height = height;
}
public void Run(IOperationContext operationContext, IResourceStore resourceStore)
{
}
public override string ToString()
{
return $"{LowerLeft.X} {LowerLeft.Y} {Width} {Height} {Symbol}";
}
}
}