com.foxit.sdk.pdf.annots.ShadingColor Class Reference

Public Member Functions

 ShadingColor (int firstcolor, int secondcolor)
 Constructor, with parameters.
More...
 
 ShadingColor ()
 Constructor.

 
 ShadingColor (ShadingColor shading_color)
 Constructor, with another shading color object.
More...
 
int getFirst_color ()
 Get first color used for shading. More...
 
int getSecond_color ()
 Get second color used for shading. More...
 
void set (int firstcolor, int secondcolor)
 Set value.
More...
 
void setFirst_color (int value)
 Set first color used for shading. More...
 
void setSecond_color (int value)
 Set second color used for shading. More...
 

Detailed Description

This class represents shading color which is used for Type 2 (Axial) Shadings.

Constructor & Destructor Documentation

◆ ShadingColor() [1/2]

com.foxit.sdk.pdf.annots.ShadingColor.ShadingColor ( int  firstcolor,
int  secondcolor 
)

Constructor, with parameters.

Parameters
[in]firstcolorFirst color used for shading color. Format: 0xAARRGGBB.
[in]secondcolorSecond color used for shading color. Format: 0xAARRGGBB.

◆ ShadingColor() [2/2]

com.foxit.sdk.pdf.annots.ShadingColor.ShadingColor ( ShadingColor  shading_color)

Constructor, with another shading color object.

Parameters
[in]shading_colorAnother shading color object.

Member Function Documentation

◆ getFirst_color()

com.foxit.sdk.pdf.annots.ShadingColor.getFirst_color ( )

Get first color used for shading.

Returns
First color used for shading. Format: 0xAARRGGBB.

◆ getSecond_color()

com.foxit.sdk.pdf.annots.ShadingColor.getSecond_color ( )

Get second color used for shading.

Returns
Second color used for shading. Format: 0xAARRGGBB.

◆ set()

void com.foxit.sdk.pdf.annots.ShadingColor.set ( int  firstcolor,
int  secondcolor 
)

Set value.

Parameters
[in]firstcolorFirst color used for shading color. Format: 0xAARRGGBB.
[in]secondcolorSecond color used for shading color. Format: 0xAARRGGBB.
Returns
None.

◆ setFirst_color()

com.foxit.sdk.pdf.annots.ShadingColor.setFirst_color ( int  value)

Set first color used for shading.

Parameters
[in]valueFirst color used for shading. Format: 0xAARRGGBB.
Returns
None.

◆ setSecond_color()

com.foxit.sdk.pdf.annots.ShadingColor.setSecond_color ( int  value)

Set second color used for shading.

Parameters
[in]valueSecond color used for shading. Format: 0xAARRGGBB.
Returns
None.