iText 8.0.2 API
iText.Kernel.Pdf.Colorspace.PdfPattern.Shading Class Reference

Shading pattern provides a smooth transition between colors across an area to be painted, independent of the resolution of any particular output device and without specifying the number of steps in the color transition. More...

Inheritance diagram for iText.Kernel.Pdf.Colorspace.PdfPattern.Shading:
iText.Kernel.Pdf.Colorspace.PdfPattern iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >

Public Member Functions

  Shading (PdfDictionary pdfObject)
  Creates new instance from the iText.Kernel.Pdf.PdfStream object. More...
 
  Shading (PdfShading shading)
  Creates a new instance of Shading Pattern. More...
 
virtual PdfDictionary  GetShading ()
  Gets the dictionary of the pattern's PdfShading. More...
 
virtual void  SetShading (PdfShading shading)
  Sets the PdfShading that specifies the details of a particular gradient fill. More...
 
virtual void  SetShading (PdfDictionary shading)
  Sets the dictionary which specifies the details of a particular gradient fill. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.Colorspace.PdfPattern
virtual PdfArray  GetMatrix ()
  Gets a transformation matrix that maps the pattern’s internal coordinate system to the default coordinate system of the pattern’s parent content stream. More...
 
virtual void  SetMatrix (PdfArray matrix)
  Sets a transformation matrix that maps the pattern’s internal coordinate system to the default coordinate system of the pattern’s parent content stream. More...
 
override void  Flush ()
  To manually flush a PdfObject behind this wrapper, you have to ensure that this object is added to the document, i.e. it has an indirect reference. More...
 
- Public Member Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >
virtual T  GetPdfObject ()
 
virtual iText.Kernel.Pdf.PdfObjectWrapper< T >  MakeIndirect (PdfDocument document, PdfIndirectReference reference)
  Marks object behind wrapper to be saved as indirect. More...
 
virtual iText.Kernel.Pdf.PdfObjectWrapper< T >  MakeIndirect (PdfDocument document)
  Marks object behind wrapper to be saved as indirect. More...
 
virtual iText.Kernel.Pdf.PdfObjectWrapper< T >  SetModified ()
 
virtual bool  IsFlushed ()
 

Additional Inherited Members

- Static Public Member Functions inherited from iText.Kernel.Pdf.Colorspace.PdfPattern
static iText.Kernel.Pdf.Colorspace.PdfPattern  GetPatternInstance (PdfDictionary pdfObject)
  Creates the instance wrapper of correct type from the iText.Kernel.Pdf.PdfDictionary More...
 

Detailed Description

Shading pattern provides a smooth transition between colors across an area to be painted, independent of the resolution of any particular output device and without specifying the number of steps in the color transition.

Shading pattern provides a smooth transition between colors across an area to be painted, independent of the resolution of any particular output device and without specifying the number of steps in the color transition. Patterns of this type are described by pattern dictionaries with a pattern type of 2.

Constructor & Destructor Documentation

◆ Shading() [1/2]

Creates new instance from the iText.Kernel.Pdf.PdfStream object.

Creates new instance from the iText.Kernel.Pdf.PdfStream object. This stream should have PatternType equals to 2.

Parameters
pdfObject the iText.Kernel.Pdf.PdfStream that represents Shading Pattern.

◆ Shading() [2/2]

Creates a new instance of Shading Pattern.

Parameters
shading the PdfShading that specifies the details of a particular gradient fill

Member Function Documentation

◆ GetShading()

virtual PdfDictionary iText.Kernel.Pdf.Colorspace.PdfPattern.Shading.GetShading ( )
inlinevirtual

Gets the dictionary of the pattern's PdfShading.

Returns
the dictionary of the pattern's PdfShading

◆ SetShading() [1/2]

virtual void iText.Kernel.Pdf.Colorspace.PdfPattern.Shading.SetShading ( PdfDictionary  shading )
inlinevirtual

Sets the dictionary which specifies the details of a particular gradient fill.

Parameters
shading the dictionary of the pattern's PdfShading

◆ SetShading() [2/2]

virtual void iText.Kernel.Pdf.Colorspace.PdfPattern.Shading.SetShading ( PdfShading  shading )
inlinevirtual

Sets the PdfShading that specifies the details of a particular gradient fill.

Parameters
shading the PdfShading that specifies the details of a particular gradient fill