Package com.itextpdf.text.pdf
Class PdfShading
java.lang.Object
com.itextpdf.text.pdf.PdfShading
Implements the shading dictionary (or stream).
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
Holds value of property antiAlias.protected float[]
Holds value of property bBox.protected ColorDetails
private BaseColor
protected PdfDictionary
protected PdfName
protected PdfIndirectReference
protected int
protected PdfWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
static void
checkCompatibleColors
(BaseColor c1, BaseColor c2) float[]
getBBox()
static float[]
getColorArray
(BaseColor color) (package private) ColorDetails
(package private) PdfName
(package private) PdfIndirectReference
(package private) PdfWriter
boolean
void
setAntiAlias
(boolean antiAlias) void
setBBox
(float[] bBox) protected void
setColorSpace
(BaseColor color) (package private) void
setName
(int number) static PdfShading
simpleAxial
(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor) static PdfShading
simpleAxial
(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor, boolean extendStart, boolean extendEnd) static PdfShading
simpleRadial
(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor) static PdfShading
simpleRadial
(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor, boolean extendStart, boolean extendEnd) static void
static PdfShading
type1
(PdfWriter writer, BaseColor colorSpace, float[] domain, float[] tMatrix, PdfFunction function) static PdfShading
type2
(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) static PdfShading
type3
(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend)
-
Field Details
-
shading
-
writer
-
shadingType
protected int shadingType -
colorDetails
-
shadingName
-
shadingReference
-
cspace
-
bBox
protected float[] bBoxHolds value of property bBox. -
antiAlias
protected boolean antiAliasHolds value of property antiAlias.
-
-
Constructor Details
-
PdfShading
Creates new PdfShading
-
-
Method Details
-
setColorSpace
-
getColorSpace
-
throwColorSpaceError
public static void throwColorSpaceError() -
checkCompatibleColors
-
getColorArray
-
type1
public static PdfShading type1(PdfWriter writer, BaseColor colorSpace, float[] domain, float[] tMatrix, PdfFunction function) -
type2
public static PdfShading type2(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) -
type3
public static PdfShading type3(PdfWriter writer, BaseColor colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) -
simpleAxial
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor, boolean extendStart, boolean extendEnd) -
simpleAxial
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, BaseColor startColor, BaseColor endColor) -
simpleRadial
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor, boolean extendStart, boolean extendEnd) -
simpleRadial
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, BaseColor startColor, BaseColor endColor) -
getShadingName
PdfName getShadingName() -
getShadingReference
PdfIndirectReference getShadingReference() -
setName
void setName(int number) -
addToBody
- Throws:
IOException
-
getWriter
PdfWriter getWriter() -
getColorDetails
ColorDetails getColorDetails() -
getBBox
public float[] getBBox() -
setBBox
public void setBBox(float[] bBox) -
isAntiAlias
public boolean isAntiAlias() -
setAntiAlias
public void setAntiAlias(boolean antiAlias)
-