PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics Package / PDFBrush Class / setColor Method
The brush color.
Collapse All Expand All
In This Topic

setColor Method
In This Topic
Sets the color.
Syntax

    public void setColor(
       PDFColor color
    )

#### Parameters

color
  The brush color.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | When color is a com.o2sol.pdf4java.graphics.colors.PDFPatternColor.

See Also

#### Reference

PDFBrush Class
PDFBrush Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.