Table of Contents

Class PdfShading

Namespace
iTextSharp.text.pdf
Assembly
iTextSharp.LGPLv2.Core.dll

Implements the shading dictionary (or stream). @author Paulo Soares (psoares@consiste.pt)

public class PdfShading
Inheritance
PdfShading
Inherited Members

Constructors

PdfShading(PdfWriter)

Creates new PdfShading

protected PdfShading(PdfWriter writer)

Parameters

writer PdfWriter

Fields

Shading

protected PdfDictionary Shading

Field Value

PdfDictionary

ShadingType

protected int ShadingType

Field Value

int

antiAlias

Holds value of property antiAlias.

protected bool antiAlias

Field Value

bool

bBox

Holds value of property bBox.

protected float[] bBox

Field Value

float[]

colorDetails

protected ColorDetails colorDetails

Field Value

ColorDetails

shadingName

protected PdfName shadingName

Field Value

PdfName

shadingReference

protected PdfIndirectReference shadingReference

Field Value

PdfIndirectReference

writer

protected PdfWriter writer

Field Value

PdfWriter

Properties

AntiAlias

public bool AntiAlias { get; set; }

Property Value

bool

BBox

public float[] BBox { get; set; }

Property Value

float[]

ColorSpace

public BaseColor ColorSpace { get; }

Property Value

BaseColor

Methods

CheckCompatibleColors(BaseColor, BaseColor)

public static void CheckCompatibleColors(BaseColor c1, BaseColor c2)

Parameters

c1 BaseColor
c2 BaseColor

GetColorArray(BaseColor)

public static float[] GetColorArray(BaseColor color)

Parameters

color BaseColor

Returns

float[]

SetColorSpace(BaseColor)

protected void SetColorSpace(BaseColor color)

Parameters

color BaseColor

SimpleAxial(PdfWriter, float, float, float, float, BaseColor, BaseColor)

public static PdfShading SimpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor)

Parameters

writer PdfWriter
x0 float
y0 float
x1 float
y1 float
startColor BaseColor
endColor BaseColor

Returns

PdfShading

SimpleAxial(PdfWriter, float, float, float, float, BaseColor, BaseColor, bool, bool)

public static PdfShading SimpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor, bool extendStart, bool extendEnd)

Parameters

writer PdfWriter
x0 float
y0 float
x1 float
y1 float
startColor BaseColor
endColor BaseColor
extendStart bool
extendEnd bool

Returns

PdfShading

SimpleRadial(PdfWriter, float, float, float, float, float, float, BaseColor, BaseColor)

public static PdfShading SimpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor)

Parameters

writer PdfWriter
x0 float
y0 float
r0 float
x1 float
y1 float
r1 float
startColor BaseColor
endColor BaseColor

Returns

PdfShading

SimpleRadial(PdfWriter, float, float, float, float, float, float, BaseColor, BaseColor, bool, bool)

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)

Parameters

writer PdfWriter
x0 float
y0 float
r0 float
x1 float
y1 float
r1 float
startColor BaseColor
endColor BaseColor
extendStart bool
extendEnd bool

Returns

PdfShading

ThrowColorSpaceError()

public static void ThrowColorSpaceError()

Type1(PdfWriter, BaseColor, float[], float[], PdfFunction)

public static PdfShading Type1(PdfWriter writer, BaseColor colorSpace, float[] domain, float[] tMatrix, PdfFunction function)

Parameters

writer PdfWriter
colorSpace BaseColor
domain float[]
tMatrix float[]
function PdfFunction

Returns

PdfShading

Type2(PdfWriter, BaseColor, float[], float[], PdfFunction, bool[])

public static PdfShading Type2(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, bool[] extend)

Parameters

writer PdfWriter
colorSpace BaseColor
coords float[]
domain float[]
function PdfFunction
extend bool[]

Returns

PdfShading

Type3(PdfWriter, BaseColor, float[], float[], PdfFunction, bool[])

public static PdfShading Type3(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, bool[] extend)

Parameters

writer PdfWriter
colorSpace BaseColor
coords float[]
domain float[]
function PdfFunction
extend bool[]

Returns

PdfShading