PDF4Java Reference Documentation
com.o2sol.pdf4java.graphics.shadings Package / PDFAxialShading Class / setEndColor Method
The shading end color.
Collapse All Expand All
In This Topic

setEndColor Method
In This Topic
Sets the shading end color.
The startColor and endColor can be set only when the shading uses an exponential function ().
Syntax

    public void setEndColor(
       PDFColor endColor
    )

#### Parameters

endColor
  The shading end color.

Exceptions

Exception | Description
--- | ---
java.lang.IllegalArgumentException | when the end color is nullor shading function is not an exponential function.

See Also

#### Reference

PDFAxialShading Class
PDFAxialShading Members

© 2025 O2 Solutions All Rights Reserved.

Send comments on this topic.