Skip to main content
Skip table of contents

PdfShading

PdfShading Public class

Diagram

  flowchart LR
  classDef interfaceStyle stroke-dasharray: 5 5;
  classDef abstractStyle stroke-width:4px
  subgraph iTextSharp.text.pdf
  iTextSharp.text.pdf.PdfShading[[PdfShading]]
  end

Members

Properties

Public properties
TypeNameMethods
boolAntiAliasget, set
float``[]BBoxget, set
BaseColorColorSpaceget
Internal properties

Methods

Protected methods
ReturnsName
voidSetColorSpace(BaseColor color)
Public methods
ReturnsName
voidAddToBody()
Public Static methods
ReturnsName
voidCheckCompatibleColors(BaseColor c1, BaseColor c2)
float``[]GetColorArray(BaseColor color)
PdfShadingSimpleAxial(...)
PdfShadingSimpleRadial(...)
voidThrowColorSpaceError()
PdfShadingType1(PdfWriter writer, BaseColor colorSpace, float``[] domain, float``[] tMatrix, PdfFunction function)
PdfShadingType2(PdfWriter writer, BaseColor colorSpace, float``[] coords, float``[] domain, PdfFunction function, bool``[] extend)
PdfShadingType3(PdfWriter writer, BaseColor colorSpace, float``[] coords, float``[] domain, PdfFunction function, bool``[] extend)

Details

Constructors

PdfShading

Source code

protected PdfShading(PdfWriter writer)
Arguments
TypeNameDescription
PdfWriterwriter

Methods

SetColorSpace

Source code

protected virtual void SetColorSpace(BaseColor color)
Arguments
TypeNameDescription
BaseColorcolor
ThrowColorSpaceError

Source code

public static void ThrowColorSpaceError()
CheckCompatibleColors

Source code

public static void CheckCompatibleColors(BaseColor c1, BaseColor c2)
Arguments
TypeNameDescription
BaseColorc1
BaseColorc2
GetColorArray

Source code

public static float GetColorArray(BaseColor color)
Arguments
TypeNameDescription
BaseColorcolor
Type1

Source code

public static PdfShading Type1(PdfWriter writer, BaseColor colorSpace, float[] domain, float[] tMatrix, PdfFunction function)
Arguments
TypeNameDescription
PdfWriterwriter
BaseColorcolorSpace
float``[]domain
float``[]tMatrix
PdfFunctionfunction
Type2

Source code

public static PdfShading Type2(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, bool[] extend)
Arguments
TypeNameDescription
PdfWriterwriter
BaseColorcolorSpace
float``[]coords
float``[]domain
PdfFunctionfunction
bool``[]extend
Type3

Source code

public static PdfShading Type3(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, bool[] extend)
Arguments
TypeNameDescription
PdfWriterwriter
BaseColorcolorSpace
float``[]coords
float``[]domain
PdfFunctionfunction
bool``[]extend
SimpleAxial [1/2]

Source code

public static PdfShading SimpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor, bool extendStart, bool extendEnd)
Arguments
TypeNameDescription
PdfWriterwriter
floatx0
floaty0
floatx1
floaty1
BaseColorstartColor
BaseColorendColor
boolextendStart
boolextendEnd
SimpleAxial [2/2]

Source code

public static PdfShading SimpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor)
Arguments
TypeNameDescription
PdfWriterwriter
floatx0
floaty0
floatx1
floaty1
BaseColorstartColor
BaseColorendColor
SimpleRadial [1/2]

Source code

public static PdfShading SimpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor, bool extendStart, bool extendEnd)
Arguments
TypeNameDescription
PdfWriterwriter
floatx0
floaty0
floatr0
floatx1
floaty1
floatr1
BaseColorstartColor
BaseColorendColor
boolextendStart
boolextendEnd
SimpleRadial [2/2]

Source code

public static PdfShading SimpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor)
Arguments
TypeNameDescription
PdfWriterwriter
floatx0
floaty0
floatr0
floatx1
floaty1
floatr1
BaseColorstartColor
BaseColorendColor
AddToBody

Source code

public virtual void AddToBody()

Properties

ColorSpace
public virtual BaseColor ColorSpace { get; }
ShadingName
internal PdfName ShadingName { get; }
ShadingReference
internal PdfIndirectReference ShadingReference { get; }
Name
internal int Name { set; }
Writer
internal PdfWriter Writer { get; }
ColorDetails
internal ColorDetails ColorDetails { get; }
BBox
public virtual float BBox { get; set; }
AntiAlias
public virtual bool AntiAlias { get; set; }

Generated with ModularDoc

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.