PdfShading Class
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.
public class PdfShading : PdfContentResource
Public Class PdfShading
Inherits PdfContentResource
- Inheritance:
- 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'.
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
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
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) |