Package com.lowagie.text.pdf
Class PdfShading
java.lang.Object
com.lowagie.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 Color
protected PdfDictionary
protected PdfName
protected PdfIndirectReference
protected int
protected PdfWriter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) void
static void
checkCompatibleColors
(Color c1, Color c2) float[]
getBBox()
static float[]
getColorArray
(Color 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
(Color color) (package private) void
setName
(int number) static PdfShading
simpleAxial
(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor) static PdfShading
simpleAxial
(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) static PdfShading
simpleRadial
(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor) static PdfShading
simpleRadial
(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) static void
static PdfShading
type1
(PdfWriter writer, Color colorSpace, float[] domain, float[] tMatrix, PdfFunction function) static PdfShading
type2
(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) static PdfShading
type3
(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend)
-
Field Details
-
shading
-
writer
-
shadingType
protected int shadingType -
colorDetails
-
shadingName
-
shadingReference
-
bBox
protected float[] bBoxHolds value of property bBox. -
antiAlias
protected boolean antiAliasHolds value of property antiAlias. -
cspace
-
-
Constructor Details
-
PdfShading
Creates new PdfShading- Parameters:
writer
- the PdfWriter
-
-
Method Details
-
throwColorSpaceError
public static void throwColorSpaceError() -
checkCompatibleColors
-
getColorArray
-
type1
public static PdfShading type1(PdfWriter writer, Color colorSpace, float[] domain, float[] tMatrix, PdfFunction function) -
type2
public static PdfShading type2(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) -
type3
public static PdfShading type3(PdfWriter writer, Color colorSpace, float[] coords, float[] domain, PdfFunction function, boolean[] extend) -
simpleAxial
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) -
simpleAxial
public static PdfShading simpleAxial(PdfWriter writer, float x0, float y0, float x1, float y1, Color startColor, Color endColor) -
simpleRadial
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor, boolean extendStart, boolean extendEnd) -
simpleRadial
public static PdfShading simpleRadial(PdfWriter writer, float x0, float y0, float r0, float x1, float y1, float r1, Color startColor, Color endColor) -
getColorSpace
-
setColorSpace
-
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)
-