Foxit PDF RDK

Public Member Functions | List of all members
ColorState Class Reference
Inheritance diagram for ColorState:

## Public Member Functions
| GetFillColor ()
| Get fill color. More...
| GetStrokeColor ()
| Get stroke color. More...
| IsEmpty ()
| Check whether current object is empty or not. More...
| SetFillColor (color)
| Set fill color. More...
| SetStrokeColor (color)
| Set stroke color. More...
Public Member Functions inherited from NativeObjectWrapper
| constructor (r)
| GetPointerAsNumber ()

## Detailed Description

This class represents PDF color state.

Examples
  /Users/ec2-user/gitlab-runner/builds/E-xKdhDo/0/foxit/sdk/mobile/gsdk-doc-auto-build/harmony_nodejs/input/Index.js.

## Member Function Documentation

## ◆ GetFillColor()

ColorState.GetFillColor | ( |  | ) |

Get fill color.

Returns
  Fill color.

## ◆ GetStrokeColor()

ColorState.GetStrokeColor | ( |  | ) |

Get stroke color.

Returns
  Stroke color.

## ◆ IsEmpty()

ColorState.IsEmpty | ( |  | ) |

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()

ColorState.SetFillColor | ( | color |  | ) |

Set fill color.

Parameters

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

Returns
  None.

## ◆ SetStrokeColor()

ColorState.SetStrokeColor | ( | color |  | ) |

Set stroke color.

Parameters

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

Returns
  None.