Logo Search packages:      
Sourcecode: libpodofo version File versions  Download package

void PoDoFo::PdfField::SetBackgroundColor ( double  dGray ) [inherited]

Sets the background color of the field

dGraygray value of the color

Definition at line 296 of file PdfField.cpp.

References PoDoFo::PdfDictionary::AddKey(), PoDoFo::PdfField::GetAppearanceCharacteristics(), PoDoFo::PdfVariant::GetDictionary(), and PoDoFo::PdfArray::push_back().

    PdfArray array;
    array.push_back( dGray );

    PdfObject* pMK = this->GetAppearanceCharacteristics( true );
    pMK->GetDictionary().AddKey( PdfName("BG"), array );

Here is the call graph for this function:

Generated by  Doxygen 1.6.0   Back to index