iText 9.1.0 API
iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading Class Reference

The PdfShading class that represents the Shading Dictionary PDF object. More...

Inheritance diagram for iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading:
iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary > iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShadingBlend iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShadingMesh iText.Kernel.Pdf.Colorspace.Shading.PdfFunctionBasedShading iText.Kernel.Pdf.Colorspace.Shading.PdfAxialShading iText.Kernel.Pdf.Colorspace.Shading.PdfRadialShading iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShadingMeshWithFlags iText.Kernel.Pdf.Colorspace.Shading.PdfLatticeFormGouraudShadedTriangleShading iText.Kernel.Pdf.Colorspace.Shading.PdfCoonsPatchShading iText.Kernel.Pdf.Colorspace.Shading.PdfFreeFormGouraudShadedTriangleShading iText.Kernel.Pdf.Colorspace.Shading.PdfTensorProductPatchShading

Public Member Functions

virtual int  GetShadingType ()
  Gets the shading type. More...
 
virtual PdfObject  GetColorSpace ()
  Gets the color space in which colour values shall be expressed. More...
 
virtual PdfObject  GetFunction ()
  Gets the function PdfObject that represents color transitions across the shading geometry. More...
 
void  SetFunction (IPdfFunction function)
  Sets the function that represents color transitions across the shading geometry as one object. More...
 
void  SetFunction (IPdfFunction[] functions)
  Sets the function object that represents color transitions across the shading geometry as an array of functions. More...
 
sealed 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 ()
 

Static Public Member Functions

static iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading  MakeShading (PdfDictionary shadingDictionary)
  Creates the AbstractPdfShading object from the existing iText.Kernel.Pdf.PdfDictionary with corresponding type. More...
 

Package Functions

  AbstractPdfShading (PdfDictionary pdfObject)
  Creates the AbstractPdfShading object from the existing iText.Kernel.Pdf.PdfDictionary. More...
 
  AbstractPdfShading (PdfDictionary pdfObject, int type, PdfColorSpace colorSpace)
  Creates the AbstractPdfShading object from the existing iText.Kernel.Pdf.PdfDictionary , using provided type and colorspace. More...
 
override bool  IsWrappedObjectMustBeIndirect ()
  Defines if the object behind this wrapper must be an indirect object in the resultant document. More...
 
- Package Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >
  PdfObjectWrapper (T pdfObject)
 
virtual void  SetPdfObject (T pdfObject)
 
virtual void  SetForbidRelease ()
 
virtual void  UnsetForbidRelease ()
 
virtual void  EnsureUnderlyingObjectHasIndirectReference ()
 

Additional Inherited Members

- Static Package Functions inherited from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >
static void  MarkObjectAsIndirect (PdfObject pdfObject)
 
static void  EnsureObjectIsAddedToDocument (PdfObject @object)
  Some wrappers use object's indirect reference to obtain the PdfDocument to which the object belongs to. More...
 

Detailed Description

The PdfShading class that represents the Shading Dictionary PDF object.

Constructor & Destructor Documentation

◆ AbstractPdfShading() [1/2]

iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.AbstractPdfShading ( PdfDictionary  pdfObject )
inlinepackage

Creates the AbstractPdfShading object from the existing iText.Kernel.Pdf.PdfDictionary.

Parameters
pdfObject

iText.Kernel.Pdf.PdfDictionary from which the AbstractPdfShading object will be created

◆ AbstractPdfShading() [2/2]

iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.AbstractPdfShading ( PdfDictionary  pdfObject,
int  type,
PdfColorSpace  colorSpace 
)
inlinepackage

Creates the AbstractPdfShading object from the existing iText.Kernel.Pdf.PdfDictionary , using provided type and colorspace.

Parameters
pdfObject

iText.Kernel.Pdf.PdfDictionary from which the AbstractPdfShading object will be created

Parameters
type type with which this AbstractPdfShading object will be created
colorSpace

iText.Kernel.Pdf.Colorspace.PdfColorSpace with which this AbstractPdfShading object will be created

Member Function Documentation

◆ Flush()

sealed override void iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.Flush ( )
inlinevirtual

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.

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. Basically this means that before flushing you need to explicitly call iText.Kernel.Pdf.PdfObjectWrapper.MakeIndirect(iText.Kernel.Pdf.PdfDocument). For example: wrapperInstance.makeIndirect(document).flush(); Note that not every wrapper require this, only those that have such warning in documentation.

Reimplemented from iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >.

◆ GetColorSpace()

virtual PdfObject iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.GetColorSpace ( )
inlinevirtual

Gets the color space in which colour values shall be expressed.

Returns

iText.Kernel.Pdf.PdfObject Color space

◆ GetFunction()

virtual PdfObject iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.GetFunction ( )
inlinevirtual

Gets the function PdfObject that represents color transitions across the shading geometry.

Returns

iText.Kernel.Pdf.PdfObject Function

◆ GetShadingType()

virtual int iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.GetShadingType ( )
inlinevirtual

Gets the shading type.

Returns
int value of iText.Kernel.Pdf.PdfName.ShadingType

◆ IsWrappedObjectMustBeIndirect()

override bool iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.IsWrappedObjectMustBeIndirect ( )
inlinepackagevirtual

Defines if the object behind this wrapper must be an indirect object in the resultant document.

Implements iText.Kernel.Pdf.PdfObjectWrapper< PdfDictionary >.

◆ MakeShading()

static iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.MakeShading ( PdfDictionary  shadingDictionary )
inlinestatic

Creates the AbstractPdfShading object from the existing iText.Kernel.Pdf.PdfDictionary with corresponding type.

Parameters
shadingDictionary

iText.Kernel.Pdf.PdfDictionary from which the AbstractPdfShading object will be created

Returns
Created AbstractPdfShading object

◆ SetFunction() [1/2]

void iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.SetFunction ( IPdfFunction  function )
inline

Sets the function that represents color transitions across the shading geometry as one object.

Parameters
function The iText.Kernel.Pdf.Function.IPdfFunction to set

◆ SetFunction() [2/2]

void iText.Kernel.Pdf.Colorspace.Shading.AbstractPdfShading.SetFunction ( IPdfFunction[]  functions )
inline

Sets the function object that represents color transitions across the shading geometry as an array of functions.

Parameters
functions The array of iText.Kernel.Pdf.Function.IPdfFunction to be set