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
ShadingType
protected int ShadingType
Field Value
antiAlias
Holds value of property antiAlias.
protected bool antiAlias
Field Value
bBox
Holds value of property bBox.
protected float[] bBox
Field Value
- float[]
colorDetails
protected ColorDetails colorDetails
Field Value
shadingName
protected PdfName shadingName
Field Value
shadingReference
protected PdfIndirectReference shadingReference
Field Value
writer
protected PdfWriter writer
Field Value
Properties
AntiAlias
public bool AntiAlias { get; set; }
Property Value
BBox
public float[] BBox { get; set; }
Property Value
- float[]
ColorSpace
public BaseColor ColorSpace { get; }
Property Value
Methods
CheckCompatibleColors(BaseColor, BaseColor)
public static void CheckCompatibleColors(BaseColor c1, BaseColor c2)
Parameters
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
Returns
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
PdfWriterx0
floaty0
floatx1
floaty1
floatstartColor
BaseColorendColor
BaseColorextendStart
boolextendEnd
bool
Returns
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
PdfWriterx0
floaty0
floatr0
floatx1
floaty1
floatr1
floatstartColor
BaseColorendColor
BaseColor
Returns
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
PdfWriterx0
floaty0
floatr0
floatx1
floaty1
floatr1
floatstartColor
BaseColorendColor
BaseColorextendStart
boolextendEnd
bool
Returns
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
PdfWritercolorSpace
BaseColordomain
float[]tMatrix
float[]function
PdfFunction
Returns
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
PdfWritercolorSpace
BaseColorcoords
float[]domain
float[]function
PdfFunctionextend
bool[]
Returns
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
PdfWritercolorSpace
BaseColorcoords
float[]domain
float[]function
PdfFunctionextend
bool[]