iText 5

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

Type

Name

Methods

bool

AntiAlias

get, set

float``[]

BBox

get, set

BaseColor

ColorSpace

get

Internal properties

Methods

Protected methods

Returns

Name

void

SetColorSpace

(

BaseColor

color)

Public methods

Returns

Name

void

AddToBody

()

Public Static methods

Returns

Name

void

CheckCompatibleColors

(

BaseColor

c1,

BaseColor

c2)

float``[]

GetColorArray

(

BaseColor

color)

PdfShading

SimpleAxial

(...)

PdfShading

SimpleRadial

(...)

void

ThrowColorSpaceError

()

PdfShading

Type1

(

PdfWriter

writer,

BaseColor

colorSpace, float``[] domain, float``[] tMatrix,

PdfFunction

function)

PdfShading

Type2

(

PdfWriter

writer,

BaseColor

colorSpace, float``[] coords, float``[] domain,

PdfFunction

function, bool``[] extend)

PdfShading

Type3

(

PdfWriter

writer,

BaseColor

colorSpace, float``[] coords, float``[] domain,

PdfFunction

function, bool``[] extend)

Details

Constructors

PdfShading

Source code

protected PdfShading(PdfWriter writer)

Arguments

Type

Name

Description

PdfWriter

writer

Methods

SetColorSpace

Source code

protected virtual void SetColorSpace(BaseColor color)

Arguments

Type

Name

Description

BaseColor

color

ThrowColorSpaceError

Source code

public static void ThrowColorSpaceError()

CheckCompatibleColors

Source code

public static void CheckCompatibleColors(BaseColor c1, BaseColor c2)

Arguments

Type

Name

Description

BaseColor

c1

BaseColor

c2

GetColorArray

Source code

public static float GetColorArray(BaseColor color)

Arguments

Type

Name

Description

BaseColor

color

Type1

Source code

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

Arguments

Type

Name

Description

PdfWriter

writer

BaseColor

colorSpace

float``[]

domain

float``[]

tMatrix

PdfFunction

function

Type2

Source code

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

Arguments

Type

Name

Description

PdfWriter

writer

BaseColor

colorSpace

float``[]

coords

float``[]

domain

PdfFunction

function

bool``[]

extend

Type3

Source code

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

Arguments

Type

Name

Description

PdfWriter

writer

BaseColor

colorSpace

float``[]

coords

float``[]

domain

PdfFunction

function

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

Type

Name

Description

PdfWriter

writer

float

x0

float

y0

float

x1

float

y1

BaseColor

startColor

BaseColor

endColor

bool

extendStart

bool

extendEnd

SimpleAxial [2/2]

Source code

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

Arguments

Type

Name

Description

PdfWriter

writer

float

x0

float

y0

float

x1

float

y1

BaseColor

startColor

BaseColor

endColor

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

Type

Name

Description

PdfWriter

writer

float

x0

float

y0

float

r0

float

x1

float

y1

float

r1

BaseColor

startColor

BaseColor

endColor

bool

extendStart

bool

extendEnd

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

Type

Name

Description

PdfWriter

writer

float

x0

float

y0

float

r0

float

x1

float

y1

float

r1

BaseColor

startColor

BaseColor

endColor

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