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

    Show / Hide Table of Contents

    PdfShading Class

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

    A shading dictionary specifies details of a particular gradient fill, including the type of shading to be used, the geometry of the area to be shaded, and the geometry of the gradient fill.

    • C#
    • VB.NET
    public class PdfShading : PdfContentResource
    Public Class PdfShading
        Inherits PdfContentResource
    Inheritance:
    Object
    PdfObject
    PdfContentResource
    PdfShading

    Methods

    FromDictionary(PdfDictionary)

    Gets or creates a PdfShading from the specified PdfDictionary that represents a shading as specified in PDF Specification ISO 32000-1:2008, section '8.7.4.3 Shading Dictionaries'.

    • C#
    • VB.NET
    public static PdfShading FromDictionary(PdfDictionary dictionary)
    Public Shared Function FromDictionary(dictionary As PdfDictionary) As PdfShading
    Parameters
    dictionary
    PdfDictionary

    A PdfDictionary that represents a shading as specified in PDF Specification ISO 32000-1:2008, section '8.7.4.3 Shading Dictionaries'.

    Returns
    PdfShading

    An instance of a PdfShading or null.

    Remarks

    If PdfShading was already created from the same dictionary, that PdfShading instance is returned.

    This method provides a way to create various PdfShadings which are currently not available in GemBox.Pdf.

    Exceptions
    ArgumentNullException

    dictionary is null.

    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

    Shadings example

    See Also

    PDF Specification ISO 32000-1:2008, section '8.7.4.3 Shading Dictionaries'
    Back to top

    Facebook • Twitter • LinkedIn

    © GemBox Ltd. — All rights reserved.