GemBox.Pdf
  • Overview
  • Examples
  • Free version
  • Support
  • Pricelist

    Show / Hide Table of Contents

    PdfStitchingFunction Class

    Namespace:
    GemBox.Pdf.Functions
    Assembly:
    GemBox.Pdf.dll

    Type 3 functions (PDF 1.3) define a stitching of the subdomains of several 1-input functions to produce a single new 1-input function. Since the resulting stitching function is a 1-input function, the domain is given by a one-element Domain collection.

    • C#
    • VB.NET
    public sealed class PdfStitchingFunction : PdfFunction
    Public NotInheritable Class PdfStitchingFunction
        Inherits PdfFunction
    Inheritance:
    System.Object
    PdfObject
    PdfFunction
    PdfStitchingFunction

    Constructors

    PdfStitchingFunction()

    Initializes a new instance of the PdfStitchingFunction class. The Domain, Functions, Bounds, and Encode properties should be subsequently populated.

    • C#
    • VB.NET
    public PdfStitchingFunction()
    Public Sub New

    Properties

    Bounds

    (Required) A list of k − 1 numbers that, in combination with Domain, shall define the intervals to which each function from the Functions list shall apply. Bounds elements shall be in order of increasing value, and each value shall be within the domain defined by Domain.

    • C#
    • VB.NET
    public IList<double> Bounds { get; set; }
    Public Property Bounds As IList(Of Double)
    Property Value
    System.Collections.Generic.IList<System.Double>

    A list of k − 1 numbers that, in combination with Domain, shall define the intervals to which each function from the Functions list shall apply.

    Exceptions
    System.ArgumentNullException

    Value is null.

    See Also
    PDF Specification ISO 32000-1:2008, section '7.10.4 Type 3 (Stitching) Functions'

    Encode

    (Required) A collection of kPdfNumberRanges that shall map each subset of the domain defined by Domain and the Bounds list to the domain of the corresponding function.

    • C#
    • VB.NET
    public PdfNumberRangeCollection Encode { get; set; }
    Public Property Encode As PdfNumberRangeCollection
    Property Value
    PdfNumberRangeCollection

    A collection of kPdfNumberRanges that shall map each subset of the domain defined by Domain and the Bounds list to the domain of the corresponding function.

    Exceptions
    System.ArgumentNullException

    Value is null.

    See Also
    PDF Specification ISO 32000-1:2008, section '7.10.4 Type 3 (Stitching) Functions'

    Functions

    (Required) A list of k 1-input functions that shall make up the stitching function. The output dimensionality of all functions shall be the same, and compatible with the value of Range if Range is present.

    • C#
    • VB.NET
    public IList<PdfFunction> Functions { get; set; }
    Public Property Functions As IList(Of PdfFunction)
    Property Value
    System.Collections.Generic.IList<PdfFunction>

    A list of k 1-input functions that shall make up the stitching function.

    Exceptions
    System.ArgumentNullException

    Value is null.

    See Also
    PDF Specification ISO 32000-1:2008, section '7.10.4 Type 3 (Stitching) Functions'

    FunctionType

    Gets the Stitching value.

    • C#
    • VB.NET
    public override PdfFunctionType FunctionType { get; }
    Public Overrides ReadOnly Property FunctionType As PdfFunctionType
    Property Value
    PdfFunctionType

    The Stitching value.

    Overrides
    PdfFunction.FunctionType

    Inherited Properties

    Domain

    (Required) A collection of mPdfNumberRanges, where m shall be the number of input values. For each i from 0 to m − 1, Domain[i].First shall be less than or equal to Domain[i].Last, and the ith input value, x[i], shall lie in the interval Domain[i].First ≤ x[i] ≤ Domain[i].Last. Input values outside the declared domain shall be clipped to the nearest boundary value.

    (Inherited from PdfFunction)

    Metadata

    (Optional; PDF 1.4) A metadata stream containing metadata for the component.

    (Inherited from PdfObject)

    Range

    (Required for PdfSampledFunctions and PdfPostScriptCalculatorFunctions, optional otherwise) A collection of nPdfNumberRanges, where n shall be the number of output values. For each j from 0 to n − 1, Range[j].First shall be less than or equal to Range[j].Last, and the jth output value, y[j] , shall lie in the interval Range[j].First ≤ y[j] ≤ Range[j].Last. Output values outside the declared range shall be clipped to the nearest boundary value. If this entry is absent, no clipping shall be done.

    (Inherited from PdfFunction)

    Inherited Methods

    Compile()

    Compiles the PDF function described by this PdfFunction instance into executable code and produces a delegate that represents the PDF function.

    (Inherited from PdfFunction)

    Compile(System.Boolean)

    Compiles the PDF function described by this PdfFunction instance into executable code and produces a delegate that represents the PDF function.

    (Inherited from PdfFunction)

    Extension Methods

    PdfObjectExtensions.GetDictionary(PdfObject)
    PdfObjectExtensions.GetOrAddDictionary(PdfObject)
    PdfObjectExtensions.GetArray(PdfObject)

    See Also

    PDF Specification ISO 32000-1:2008, section '7.10.4 Type 3 (Stitching) Functions'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.