First commit
Send all results
This commit is contained in:
54
PdfSharp/Drawing/enums/PathStart.cs
Normal file
54
PdfSharp/Drawing/enums/PathStart.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Indicates how to handle the first point of a path.
|
||||
/// </summary>
|
||||
internal enum PathStart
|
||||
{
|
||||
/// <summary>
|
||||
/// Set the current position to the first point.
|
||||
/// </summary>
|
||||
MoveTo1st,
|
||||
|
||||
/// <summary>
|
||||
/// Draws a line to the first point.
|
||||
/// </summary>
|
||||
LineTo1st,
|
||||
|
||||
/// <summary>
|
||||
/// Ignores the first point.
|
||||
/// </summary>
|
||||
Ignore1st,
|
||||
}
|
||||
}
|
52
PdfSharp/Drawing/enums/XColorSpace.cs
Normal file
52
PdfSharp/Drawing/enums/XColorSpace.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
///<summary>
|
||||
/// Currently not used. Only DeviceRGB is rendered in PDF.
|
||||
/// </summary>
|
||||
public enum XColorSpace
|
||||
{
|
||||
/// <summary>
|
||||
/// Identifies the RGB color space.
|
||||
/// </summary>
|
||||
Rgb,
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the CMYK color space.
|
||||
/// </summary>
|
||||
Cmyk,
|
||||
|
||||
/// <summary>
|
||||
/// Identifies the gray scale color space.
|
||||
/// </summary>
|
||||
GrayScale,
|
||||
}
|
||||
}
|
67
PdfSharp/Drawing/enums/XCombineMode.cs
Normal file
67
PdfSharp/Drawing/enums/XCombineMode.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how different clipping regions can be combined.
|
||||
/// </summary>
|
||||
public enum XCombineMode // Same values as System.Drawing.Drawing2D.CombineMode.
|
||||
{
|
||||
/// <summary>
|
||||
/// One clipping region is replaced by another.
|
||||
/// </summary>
|
||||
Replace = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Two clipping regions are combined by taking their intersection.
|
||||
/// </summary>
|
||||
Intersect = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Not yet implemented in PDFsharp.
|
||||
/// </summary>
|
||||
Union = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Not yet implemented in PDFsharp.
|
||||
/// </summary>
|
||||
Xor = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Not yet implemented in PDFsharp.
|
||||
/// </summary>
|
||||
Exclude = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Not yet implemented in PDFsharp.
|
||||
/// </summary>
|
||||
Complement = 5,
|
||||
}
|
||||
}
|
67
PdfSharp/Drawing/enums/XDashStyle.cs
Normal file
67
PdfSharp/Drawing/enums/XDashStyle.cs
Normal file
@@ -0,0 +1,67 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the style of dashed lines drawn with an XPen object.
|
||||
/// </summary>
|
||||
public enum XDashStyle // Same values as System.Drawing.Drawing2D.DashStyle.
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies a solid line.
|
||||
/// </summary>
|
||||
Solid = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a line consisting of dashes.
|
||||
/// </summary>
|
||||
Dash = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a line consisting of dots.
|
||||
/// </summary>
|
||||
Dot = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a line consisting of a repeating pattern of dash-dot.
|
||||
/// </summary>
|
||||
DashDot = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a line consisting of a repeating pattern of dash-dot-dot.
|
||||
/// </summary>
|
||||
DashDotDot = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a user-defined custom dash style.
|
||||
/// </summary>
|
||||
Custom = 5,
|
||||
}
|
||||
}
|
47
PdfSharp/Drawing/enums/XFillMode.cs
Normal file
47
PdfSharp/Drawing/enums/XFillMode.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how the interior of a closed path is filled.
|
||||
/// </summary>
|
||||
public enum XFillMode // Same values as System.Drawing.FillMode.
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the alternate fill mode. Called the 'odd-even rule' in PDF terminology.
|
||||
/// </summary>
|
||||
Alternate = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the winding fill mode. Called the 'nonzero winding number rule' in PDF terminology.
|
||||
/// </summary>
|
||||
Winding = 1,
|
||||
}
|
||||
}
|
74
PdfSharp/Drawing/enums/XFontStyle.cs
Normal file
74
PdfSharp/Drawing/enums/XFontStyle.cs
Normal file
@@ -0,0 +1,74 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies style information applied to text.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum XFontStyle // Same values as System.Drawing.FontStyle.
|
||||
{
|
||||
/// <summary>
|
||||
/// Normal text.
|
||||
/// </summary>
|
||||
Regular = XGdiFontStyle.Regular,
|
||||
|
||||
/// <summary>
|
||||
/// Bold text.
|
||||
/// </summary>
|
||||
Bold = XGdiFontStyle.Bold,
|
||||
|
||||
/// <summary>
|
||||
/// Italic text.
|
||||
/// </summary>
|
||||
Italic = XGdiFontStyle.Italic,
|
||||
|
||||
/// <summary>
|
||||
/// Bold and italic text.
|
||||
/// </summary>
|
||||
BoldItalic = XGdiFontStyle.BoldItalic,
|
||||
|
||||
/// <summary>
|
||||
/// Underlined text.
|
||||
/// </summary>
|
||||
Underline = XGdiFontStyle.Underline,
|
||||
|
||||
/// <summary>
|
||||
/// Text with a line through the middle.
|
||||
/// </summary>
|
||||
Strikeout = XGdiFontStyle.Strikeout,
|
||||
|
||||
// Additional flags:
|
||||
// BoldSimulation
|
||||
// ItalicSimulation // It is not ObliqueSimulation, because oblique is what is what you get and this simulates italic.
|
||||
}
|
||||
}
|
76
PdfSharp/Drawing/enums/XGdiFontStyle.cs
Normal file
76
PdfSharp/Drawing/enums/XGdiFontStyle.cs
Normal file
@@ -0,0 +1,76 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Backward compatibility.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
internal enum XGdiFontStyle // Same values as System.Drawing.FontStyle.
|
||||
{
|
||||
// Must be identical to both:
|
||||
// System.Drawing.FontStyle and
|
||||
// PdfSharp.Drawing.FontStyle
|
||||
|
||||
/// <summary>
|
||||
/// Normal text.
|
||||
/// </summary>
|
||||
Regular = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Bold text.
|
||||
/// </summary>
|
||||
Bold = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Italic text.
|
||||
/// </summary>
|
||||
Italic = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Bold and italic text.
|
||||
/// </summary>
|
||||
BoldItalic = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Underlined text.
|
||||
/// </summary>
|
||||
Underline = 4,
|
||||
|
||||
/// <summary>
|
||||
/// Text with a line through the middle.
|
||||
/// </summary>
|
||||
Strikeout = 8,
|
||||
}
|
||||
}
|
63
PdfSharp/Drawing/enums/XGraphicRenderTarget.cs
Normal file
63
PdfSharp/Drawing/enums/XGraphicRenderTarget.cs
Normal file
@@ -0,0 +1,63 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
// ReSharper disable InconsistentNaming
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
///<summary>
|
||||
/// Determines whether rendering based on GDI+ or WPF.
|
||||
/// For internal use in hybrid build only only.
|
||||
/// </summary>
|
||||
enum XGraphicTargetContext
|
||||
{
|
||||
// NETFX_CORE_TODO
|
||||
NONE = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Rendering does not depent on a particular technology.
|
||||
/// </summary>
|
||||
CORE = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Renders using GDI+.
|
||||
/// </summary>
|
||||
GDI = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Renders using WPF (including Silverlight).
|
||||
/// </summary>
|
||||
WPF = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Universal Windows Platform.
|
||||
/// </summary>
|
||||
UWP = 10,
|
||||
}
|
||||
}
|
48
PdfSharp/Drawing/enums/XGraphicsPathItemType.cs
Normal file
48
PdfSharp/Drawing/enums/XGraphicsPathItemType.cs
Normal file
@@ -0,0 +1,48 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Type of the path data.
|
||||
/// </summary>
|
||||
internal enum XGraphicsPathItemType
|
||||
{
|
||||
Lines,
|
||||
Beziers,
|
||||
Curve,
|
||||
Arc,
|
||||
Rectangle,
|
||||
RoundedRectangle,
|
||||
Ellipse,
|
||||
Polygon,
|
||||
CloseFigure,
|
||||
StartFigure,
|
||||
}
|
||||
}
|
52
PdfSharp/Drawing/enums/XGraphicsPdfPageOptions.cs
Normal file
52
PdfSharp/Drawing/enums/XGraphicsPdfPageOptions.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how the content of an existing PDF page and new content is combined.
|
||||
/// </summary>
|
||||
public enum XGraphicsPdfPageOptions
|
||||
{
|
||||
/// <summary>
|
||||
/// The new content is inserted behind the old content and any subsequent drawing in done above the existing graphic.
|
||||
/// </summary>
|
||||
Append,
|
||||
|
||||
/// <summary>
|
||||
/// The new content is inserted before the old content and any subsequent drawing in done beneath the existing graphic.
|
||||
/// </summary>
|
||||
Prepend,
|
||||
|
||||
/// <summary>
|
||||
/// The new content entirely replaces the old content and any subsequent drawing in done on a blank page.
|
||||
/// </summary>
|
||||
Replace,
|
||||
}
|
||||
}
|
62
PdfSharp/Drawing/enums/XGraphicsUnit.cs
Normal file
62
PdfSharp/Drawing/enums/XGraphicsUnit.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the unit of measure.
|
||||
/// </summary>
|
||||
public enum XGraphicsUnit // NOT the same values as System.Drawing.GraphicsUnit
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies a printer's point (1/72 inch) as the unit of measure.
|
||||
/// </summary>
|
||||
Point = 0, // Must be 0 to let a new XUnit be 0 point.
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the inch (2.54 cm) as the unit of measure.
|
||||
/// </summary>
|
||||
Inch = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the millimeter as the unit of measure.
|
||||
/// </summary>
|
||||
Millimeter = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the centimeter as the unit of measure.
|
||||
/// </summary>
|
||||
Centimeter = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a presentation point (1/96 inch) as the unit of measure.
|
||||
/// </summary>
|
||||
Presentation = 4,
|
||||
}
|
||||
}
|
461
PdfSharp/Drawing/enums/XKnownColor.cs
Normal file
461
PdfSharp/Drawing/enums/XKnownColor.cs
Normal file
@@ -0,0 +1,461 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
///<summary>
|
||||
/// Specifies all pre-defined colors. Used to identify the pre-defined colors and to
|
||||
/// localize their names.
|
||||
/// </summary>
|
||||
public enum XKnownColor
|
||||
{
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
AliceBlue = 0,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
AntiqueWhite = 1,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Aqua = 2,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Aquamarine = 3,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Azure = 4,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Beige = 5,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Bisque = 6,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Black = 7,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
BlanchedAlmond = 8,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Blue = 9,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
BlueViolet = 10,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Brown = 11,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
BurlyWood = 12,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
CadetBlue = 13,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Chartreuse = 14,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Chocolate = 15,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Coral = 16,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
CornflowerBlue = 17,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Cornsilk = 18,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Crimson = 19,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Cyan = 20,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkBlue = 21,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkCyan = 22,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkGoldenrod = 23,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkGray = 24,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkGreen = 25,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkKhaki = 26,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkMagenta = 27,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkOliveGreen = 28,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkOrange = 29,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkOrchid = 30,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkRed = 31,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkSalmon = 32,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkSeaGreen = 33,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkSlateBlue = 34,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkSlateGray = 35,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkTurquoise = 36,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DarkViolet = 37,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DeepPink = 38,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DeepSkyBlue = 39,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DimGray = 40,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
DodgerBlue = 41,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Firebrick = 42,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
FloralWhite = 43,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
ForestGreen = 44,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Fuchsia = 45,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Gainsboro = 46,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
GhostWhite = 47,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Gold = 48,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Goldenrod = 49,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Gray = 50,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Green = 51,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
GreenYellow = 52,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Honeydew = 53,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
HotPink = 54,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
IndianRed = 55,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Indigo = 56,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Ivory = 57,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Khaki = 58,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Lavender = 59,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LavenderBlush = 60,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LawnGreen = 61,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LemonChiffon = 62,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightBlue = 63,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightCoral = 64,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightCyan = 65,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightGoldenrodYellow = 66,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightGray = 67,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightGreen = 68,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightPink = 69,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightSalmon = 70,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightSeaGreen = 71,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightSkyBlue = 72,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightSlateGray = 73,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightSteelBlue = 74,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LightYellow = 75,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Lime = 76,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
LimeGreen = 77,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Linen = 78,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Magenta = 79,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Maroon = 80,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumAquamarine = 81,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumBlue = 82,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumOrchid = 83,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumPurple = 84,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumSeaGreen = 85,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumSlateBlue = 86,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumSpringGreen = 87,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumTurquoise = 88,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MediumVioletRed = 89,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MidnightBlue = 90,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MintCream = 91,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
MistyRose = 92,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Moccasin = 93,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
NavajoWhite = 94,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Navy = 95,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
OldLace = 96,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Olive = 97,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
OliveDrab = 98,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Orange = 99,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
OrangeRed = 100,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Orchid = 101,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
PaleGoldenrod = 102,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
PaleGreen = 103,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
PaleTurquoise = 104,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
PaleVioletRed = 105,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
PapayaWhip = 106,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
PeachPuff = 107,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Peru = 108,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Pink = 109,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Plum = 110,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
PowderBlue = 111,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Purple = 112,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Red = 113,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
RosyBrown = 114,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
RoyalBlue = 115,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SaddleBrown = 116,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Salmon = 117,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SandyBrown = 118,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SeaGreen = 119,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SeaShell = 120,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Sienna = 121,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Silver = 122,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SkyBlue = 123,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SlateBlue = 124,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SlateGray = 125,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Snow = 126,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SpringGreen = 127,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
SteelBlue = 128,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Tan = 129,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Teal = 130,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Thistle = 131,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Tomato = 132,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Transparent = 133,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Turquoise = 134,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Violet = 135,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Wheat = 136,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
White = 137,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
WhiteSmoke = 138,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
Yellow = 139,
|
||||
|
||||
/// <summary>A pre-defined color.</summary>
|
||||
YellowGreen = 140,
|
||||
}
|
||||
}
|
62
PdfSharp/Drawing/enums/XLineAlignment.cs
Normal file
62
PdfSharp/Drawing/enums/XLineAlignment.cs
Normal file
@@ -0,0 +1,62 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the alignment of a text string relative to its layout rectangle
|
||||
/// </summary>
|
||||
public enum XLineAlignment // same values as System.Drawing.StringAlignment (except BaseLine)
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the text be aligned near the layout.
|
||||
/// In a left-to-right layout, the near position is left. In a right-to-left layout, the near
|
||||
/// position is right.
|
||||
/// </summary>
|
||||
Near = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that text is aligned in the center of the layout rectangle.
|
||||
/// </summary>
|
||||
Center = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that text is aligned far from the origin position of the layout rectangle.
|
||||
/// In a left-to-right layout, the far position is right. In a right-to-left layout, the far
|
||||
/// position is left.
|
||||
/// </summary>
|
||||
Far = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that text is aligned relative to its base line.
|
||||
/// With this option the layout rectangle must have a height of 0.
|
||||
/// </summary>
|
||||
BaseLine = 3,
|
||||
}
|
||||
}
|
52
PdfSharp/Drawing/enums/XLineCap.cs
Normal file
52
PdfSharp/Drawing/enums/XLineCap.cs
Normal file
@@ -0,0 +1,52 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the available cap styles with which an XPen object can start and end a line.
|
||||
/// </summary>
|
||||
public enum XLineCap
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies a flat line cap.
|
||||
/// </summary>
|
||||
Flat = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a round line cap.
|
||||
/// </summary>
|
||||
Round = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a square line cap.
|
||||
/// </summary>
|
||||
Square = 2
|
||||
}
|
||||
}
|
53
PdfSharp/Drawing/enums/XLineJoin.cs
Normal file
53
PdfSharp/Drawing/enums/XLineJoin.cs
Normal file
@@ -0,0 +1,53 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies how to join consecutive line or curve segments in a figure or subpath.
|
||||
/// </summary>
|
||||
public enum XLineJoin
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies a mitered join. This produces a sharp corner or a clipped corner,
|
||||
/// depending on whether the length of the miter exceeds the miter limit
|
||||
/// </summary>
|
||||
Miter = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a circular join. This produces a smooth, circular arc between the lines.
|
||||
/// </summary>
|
||||
Round = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a beveled join. This produces a diagonal corner.
|
||||
/// </summary>
|
||||
Bevel = 2,
|
||||
}
|
||||
}
|
57
PdfSharp/Drawing/enums/XLinearGradientMode.cs
Normal file
57
PdfSharp/Drawing/enums/XLinearGradientMode.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the direction of a linear gradient.
|
||||
/// </summary>
|
||||
public enum XLinearGradientMode // same values as System.Drawing.LinearGradientMode
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies a gradient from left to right.
|
||||
/// </summary>
|
||||
Horizontal = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a gradient from top to bottom.
|
||||
/// </summary>
|
||||
Vertical = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a gradient from upper left to lower right.
|
||||
/// </summary>
|
||||
ForwardDiagonal = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies a gradient from upper right to lower left.
|
||||
/// </summary>
|
||||
BackwardDiagonal = 3,
|
||||
}
|
||||
}
|
47
PdfSharp/Drawing/enums/XMatrixOrder.cs
Normal file
47
PdfSharp/Drawing/enums/XMatrixOrder.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the order for matrix transform operations.
|
||||
/// </summary>
|
||||
public enum XMatrixOrder
|
||||
{
|
||||
/// <summary>
|
||||
/// The new operation is applied before the old operation.
|
||||
/// </summary>
|
||||
Prepend = 0,
|
||||
|
||||
/// <summary>
|
||||
/// The new operation is applied after the old operation.
|
||||
/// </summary>
|
||||
Append = 1,
|
||||
}
|
||||
}
|
51
PdfSharp/Drawing/enums/XPageDirection.cs
Normal file
51
PdfSharp/Drawing/enums/XPageDirection.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the direction of the y-axis.
|
||||
/// </summary>
|
||||
public enum XPageDirection
|
||||
{
|
||||
/// <summary>
|
||||
/// Increasing Y values go downwards. This is the default.
|
||||
/// </summary>
|
||||
Downwards = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Increasing Y values go upwards. This is only possible when drawing on a PDF page.
|
||||
/// It is not implemented when drawing on a System.Drawing.Graphics object.
|
||||
/// </summary>
|
||||
[Obsolete("Not implemeted - yagni")]
|
||||
Upwards = 1, // Possible, but needs a lot of case differentiation - postponed.
|
||||
}
|
||||
}
|
73
PdfSharp/Drawing/enums/XSmoothingMode.cs
Normal file
73
PdfSharp/Drawing/enums/XSmoothingMode.cs
Normal file
@@ -0,0 +1,73 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies whether smoothing (or antialiasing) is applied to lines and curves
|
||||
/// and the edges of filled areas.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum XSmoothingMode // same values as System.Drawing.Drawing2D.SmoothingMode
|
||||
{
|
||||
// Not used in PDF rendering process.
|
||||
|
||||
/// <summary>
|
||||
/// Specifies an invalid mode.
|
||||
/// </summary>
|
||||
Invalid = -1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies the default mode.
|
||||
/// </summary>
|
||||
Default = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies high speed, low quality rendering.
|
||||
/// </summary>
|
||||
HighSpeed = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies high quality, low speed rendering.
|
||||
/// </summary>
|
||||
HighQuality = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies no antialiasing.
|
||||
/// </summary>
|
||||
None = 3,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies antialiased rendering.
|
||||
/// </summary>
|
||||
AntiAlias = 4,
|
||||
}
|
||||
}
|
56
PdfSharp/Drawing/enums/XStringAlignment.cs
Normal file
56
PdfSharp/Drawing/enums/XStringAlignment.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the alignment of a text string relative to its layout rectangle.
|
||||
/// </summary>
|
||||
public enum XStringAlignment // Same values as System.Drawing.StringAlignment.
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies the text be aligned near the layout.
|
||||
/// In a left-to-right layout, the near position is left. In a right-to-left layout, the near
|
||||
/// position is right.
|
||||
/// </summary>
|
||||
Near = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that text is aligned in the center of the layout rectangle.
|
||||
/// </summary>
|
||||
Center = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that text is aligned far from the origin position of the layout rectangle.
|
||||
/// In a left-to-right layout, the far position is right. In a right-to-left layout, the far
|
||||
/// position is left.
|
||||
/// </summary>
|
||||
Far = 2,
|
||||
}
|
||||
}
|
60
PdfSharp/Drawing/enums/XStyleSimulations.cs
Normal file
60
PdfSharp/Drawing/enums/XStyleSimulations.cs
Normal file
@@ -0,0 +1,60 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
using System;
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Describes the simulation style of a font.
|
||||
/// </summary>
|
||||
[Flags]
|
||||
public enum XStyleSimulations // Identical to WpfStyleSimulations.
|
||||
{
|
||||
/// <summary>
|
||||
/// No font style simulation.
|
||||
/// </summary>
|
||||
None = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Bold style simulation.
|
||||
/// </summary>
|
||||
BoldSimulation = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Italic style simulation.
|
||||
/// </summary>
|
||||
ItalicSimulation = 2,
|
||||
|
||||
/// <summary>
|
||||
/// Bold and Italic style simulation.
|
||||
/// </summary>
|
||||
BoldItalicSimulation = ItalicSimulation | BoldSimulation,
|
||||
}
|
||||
}
|
47
PdfSharp/Drawing/enums/XSweepDirection.cs
Normal file
47
PdfSharp/Drawing/enums/XSweepDirection.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
#region PDFsharp - A .NET library for processing PDF
|
||||
//
|
||||
// Authors:
|
||||
// Stefan Lange
|
||||
//
|
||||
// Copyright (c) 2005-2017 empira Software GmbH, Cologne Area (Germany)
|
||||
//
|
||||
// http://www.pdfsharp.com
|
||||
// http://sourceforge.net/projects/pdfsharp
|
||||
//
|
||||
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||
// copy of this software and associated documentation files (the "Software"),
|
||||
// to deal in the Software without restriction, including without limitation
|
||||
// the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
// and/or sell copies of the Software, and to permit persons to whom the
|
||||
// Software is furnished to do so, subject to the following conditions:
|
||||
//
|
||||
// The above copyright notice and this permission notice shall be included
|
||||
// in all copies or substantial portions of the Software.
|
||||
//
|
||||
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
// THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
// DEALINGS IN THE SOFTWARE.
|
||||
#endregion
|
||||
|
||||
namespace PdfSharp.Drawing
|
||||
{
|
||||
/// <summary>
|
||||
/// Defines the direction an elliptical arc is drawn.
|
||||
/// </summary>
|
||||
public enum XSweepDirection // Same values as System.Windows.Media.SweepDirection.
|
||||
{
|
||||
/// <summary>
|
||||
/// Specifies that arcs are drawn in a counter clockwise (negative-angle) direction.
|
||||
/// </summary>
|
||||
Counterclockwise = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Specifies that arcs are drawn in a clockwise (positive-angle) direction.
|
||||
/// </summary>
|
||||
Clockwise = 1,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user