mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
delete old code and start an approach for parsing fonts and page content streams
This commit is contained in:
30
src/UglyToad.Pdf/Graphics/Operations/AppendRectangle.cs
Normal file
30
src/UglyToad.Pdf/Graphics/Operations/AppendRectangle.cs
Normal file
@@ -0,0 +1,30 @@
|
||||
namespace UglyToad.Pdf.Graphics.Operations
|
||||
{
|
||||
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 override string ToString()
|
||||
{
|
||||
return $"{LowerLeft.X} {LowerLeft.Y} {Width} {Height} {Symbol}";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user