com.itextpdf.text.pdf
Class PdfColor

java.lang.Object
  extended by com.itextpdf.text.pdf.PdfObject
      extended by com.itextpdf.text.pdf.PdfArray
          extended by com.itextpdf.text.pdf.PdfColor

 class PdfColor
extends PdfArray

A PdfColor defines a BaseColor (it's a PdfArray containing 3 values).

See Also:
PdfDictionary

Field Summary
 
Fields inherited from class com.itextpdf.text.pdf.PdfArray
arrayList
 
Fields inherited from class com.itextpdf.text.pdf.PdfObject
ARRAY, BOOLEAN, bytes, DICTIONARY, INDIRECT, indRef, NAME, NOTHING, NULL, NUMBER, STREAM, STRING, TEXT_PDFDOCENCODING, TEXT_UNICODE, type
 
Constructor Summary
PdfColor(BaseColor color)
           
PdfColor(int red, int green, int blue)
          Constructs a new PdfColor.
 
Method Summary
 
Methods inherited from class com.itextpdf.text.pdf.PdfArray
add, add, add, add, addFirst, contains, getArrayList, getAsArray, getAsBoolean, getAsDict, getAsIndirectObject, getAsName, getAsNumber, getAsStream, getAsString, getDirectObject, getPdfObject, isEmpty, 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
 

Constructor Detail

PdfColor

PdfColor(int red,
         int green,
         int blue)
Constructs a new PdfColor.

Parameters:
red - a value between 0 and 255
green - a value between 0 and 255
blue - a value between 0 and 255

PdfColor

PdfColor(BaseColor color)

Hosted by Hostbasket