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:
Serializable
,Iterable<PdfObject>
A
PdfColor
defines a BaseColor (it's a PdfArray
containing 3 values).- See Also:
-
Field Summary
-
Constructor Summary
Constructors -
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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
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)
-