Package com.itextpdf.text.pdf
Class PdfColor
- java.lang.Object
-
- com.itextpdf.text.pdf.PdfObject
-
- com.itextpdf.text.pdf.PdfArray
-
- com.itextpdf.text.pdf.PdfColor
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Iterable<PdfObject>
class PdfColor extends PdfArray
APdfColor
defines a BaseColor (it's aPdfArray
containing 3 values).- See Also:
PdfDictionary
-
-
Method Summary
-
Methods inherited from class com.itextpdf.text.pdf.PdfArray
add, add, add, add, addFirst, asDoubleArray, asLongArray, contains, getArrayList, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getPdfObject, isEmpty, iterator, listIterator, remove, set, size, toPdf, toString
-
Methods inherited from class com.itextpdf.text.pdf.PdfObject
canBeInObjStm, getBytes, getIndRef, isArray, isBoolean, isDictionary, isIndirect, isName, isNull, isNumber, isStream, isString, length, setContent, setIndRef, type
-
-
-
-
Constructor Detail
-
PdfColor
PdfColor(int red, int green, int blue)
Constructs a newPdfColor
.- Parameters:
red
- a value between 0 and 255green
- a value between 0 and 255blue
- a value between 0 and 255
-
PdfColor
PdfColor(BaseColor color)
-
-