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

    Show / Hide Table of Contents

    PdfPattern Class

    Namespace:
    GemBox.Pdf.Content.Patterns
    Assembly:
    GemBox.Pdf.dll

    Patterns come in two varieties:

    • Tiling patterns consist of a small graphical figure (called a pattern cell) that is replicated at fixed horizontal and vertical intervals to fill the area to be painted. The graphics objects to use for tiling shall be described by a content stream.
    • Shading patterns define a gradient fill that produces a smooth transition between colors across the area. The color to use shall be specified as a function of position using any of a variety of methods.
    • C#
    • VB.NET
    public abstract class PdfPattern : PdfContentResource
    Public MustInherit Class PdfPattern
        Inherits PdfContentResource
    Inheritance:
    Object
    PdfObject
    PdfContentResource
    PdfPattern
    Derived
    PdfShadingPattern
    PdfTilingPattern

    Properties

    IsColored

    Gets a value indicating whether the PdfPattern is colored.

    • C#
    • VB.NET
    public bool IsColored { get; }
    Public ReadOnly Property IsColored As Boolean
    Property Value
    Boolean

    true if the PdfPattern is colored; otherwise, false.

    PatternType

    (Required) A code identifying the type of pattern that this PdfPattern describes.

    • C#
    • VB.NET
    public PdfPatternType PatternType { get; }
    Public ReadOnly Property PatternType As PdfPatternType
    Property Value
    PdfPatternType

    A code identifying the type of pattern that this PdfPattern describes.

    See Also
    PDF Specification ISO 32000-1:2008, section '8.7 Patterns'

    Transform

    (Optional) An array of six numbers specifying the pattern matrix (see 8.7.2, "General Properties of Patterns"). Default value: the identity matrix [1 0 0 1 0 0].

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

    An array of six numbers specifying the pattern matrix.

    See Also
    PDF Specification ISO 32000-1:2008, section '8.7 Patterns'

    Inherited Properties

    Document

    Gets the PdfDocument associated with this PdfContentResource or null if no PdfDocument is associated with this PdfContentResource.

    (Inherited from PdfContentResource)

    Metadata

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

    (Inherited from PdfObject)

    Extension Methods

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

    Examples

    Patterns example

    See Also

    PDF Specification ISO 32000-1:2008, section '8.7 Patterns'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.