Foxit PDF SDK

Public Member Functions | List of all members
foxit.pdf.graphics.ColorState Class Reference
Inheritance diagram for foxit.pdf.graphics.ColorState:

## Public Member Functions
| ColorState (ColorState other)
| Constructor, with another color state object. More...
Color | GetFillColor ()
| Get fill color. More...
Color | GetStrokeColor ()
| Get stroke color. More...
bool | IsEmpty ()
| Check whether current object is empty or not. More...
void | SetFillColor (Color color)
| Set fill color. More...
void | SetStrokeColor (Color color)
| Set stroke color. More...

## Detailed Description

This class represents PDF color state.

## Constructor & Destructor Documentation

## ◆ ColorState()

foxit.pdf.graphics.ColorState.ColorState | ( | ColorState | other | ) |
| inline

Constructor, with another color state object.

Parameters

  [in] | other | Another color state object.

## Member Function Documentation

## ◆ GetFillColor()

Color foxit.pdf.graphics.ColorState.GetFillColor | ( |  | ) |
| inline

Get fill color.

Returns
  Fill color.

## ◆ GetStrokeColor()

Color foxit.pdf.graphics.ColorState.GetStrokeColor | ( |  | ) |
| inline

Get stroke color.

Returns
  Stroke color.

## ◆ IsEmpty()

bool foxit.pdf.graphics.ColorState.IsEmpty | ( |  | ) |
| inline

Check whether current object is empty or not.

When the current object is empty, that means current object is useless.

Returns
  true means current object is empty, while false means not.

## ◆ SetFillColor()

void foxit.pdf.graphics.ColorState.SetFillColor | ( | Color | color | ) |
| inline

Set fill color.

Parameters

  [in] | color | A color to be set as fill color.

Returns
  None.

## ◆ SetStrokeColor()

void foxit.pdf.graphics.ColorState.SetStrokeColor | ( | Color | color | ) |
| inline

Set stroke color.

Parameters

  [in] | color | A color to be set as stroke color.

Returns
  None.