mirror of
https://github.com/UglyToad/PdfPig.git
synced 2025-10-14 19:05:01 +08:00
28 lines
659 B
C#
28 lines
659 B
C#
namespace UglyToad.PdfPig.Graphics.Operations.PathConstruction
|
|
{
|
|
using Content;
|
|
using Geometry;
|
|
|
|
internal class AppendStraightLineSegment : IGraphicsStateOperation
|
|
{
|
|
public const string Symbol = "l";
|
|
|
|
public string Operator => Symbol;
|
|
|
|
public PdfPoint End { get; }
|
|
|
|
public AppendStraightLineSegment(decimal x, decimal y)
|
|
{
|
|
End = new PdfPoint(x, y);
|
|
}
|
|
|
|
public void Run(IOperationContext operationContext, IResourceStore resourceStore)
|
|
{
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{End.X} {End.Y} {Symbol}";
|
|
}
|
|
}
|
|
} |