mirror of
https://github.com/UglyToad/PdfPig.git
synced 2026-03-10 00:23:29 +08:00
arrange operations into folders in line with grouping from the specification and start creating a context to mutate through operations.
This commit is contained in:
29
src/UglyToad.Pdf/Graphics/RenderingModeExtensions.cs
Normal file
29
src/UglyToad.Pdf/Graphics/RenderingModeExtensions.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
namespace UglyToad.Pdf.Graphics
|
||||
{
|
||||
internal static class RenderingModeExtensions
|
||||
{
|
||||
public static bool IsFill(this RenderingMode mode)
|
||||
{
|
||||
return mode == RenderingMode.Fill
|
||||
|| mode == RenderingMode.FillThenStroke
|
||||
|| mode == RenderingMode.FillClip
|
||||
|| mode == RenderingMode.FillThenStrokeClip;
|
||||
}
|
||||
|
||||
public static bool IsStroke(this RenderingMode mode)
|
||||
{
|
||||
return mode == RenderingMode.Stroke
|
||||
|| mode == RenderingMode.FillThenStroke
|
||||
|| mode == RenderingMode.StrokeClip
|
||||
|| mode == RenderingMode.FillThenStrokeClip;
|
||||
}
|
||||
|
||||
public static bool IsClip(this RenderingMode mode)
|
||||
{
|
||||
return mode == RenderingMode.FillClip
|
||||
|| mode == RenderingMode.StrokeClip
|
||||
|| mode == RenderingMode.FillThenStrokeClip
|
||||
|| mode == RenderingMode.NeitherClip;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user