|
static final int | e_ColorModeMapping = 2 |
| Map a color value to the color range defined by a background color and a foreground color.
|
|
static final int | e_ColorModeMappingGray = 1 |
| Map gray/white/black color value to background/foreground; for other colors, no change.
|
|
static final int | e_ColorModeNormal = 0 |
| Normal color mode.
|
|
static final int | e_ContentFlagAllContent = 0x00 |
| If set, all content will be rendered. This value should be used alone.
|
|
static final int | e_ContentFlagAnnot = 0x02 |
| If set, annotations will be rendered.(Excluding highlight annotation and stamp)
|
|
static final int | e_ContentFlagHighLightAnnots = 0x04 |
| If set, highlight annotations will be rendered.
|
|
static final int | e_ContentFlagPage = 0x01 |
| If set, page content will be rendered.
|
|
static final int | e_ContentFlagStampAnnots = 0x08 |
| If set, stamp annotations will be rendered.
|
|
This class is used to render an OFD page to a bitmap. Please ensure common.Library.initializeOFDEngine has been called successfully before using this class.
- See also
- com.foxit.sdk.common.Library
◆ OFDRenderer() [1/2]
com.foxit.sdk.addon.ofd.OFDRenderer.OFDRenderer |
( |
Bitmap |
bitmap | ) |
|
Constructor, with a bitmap object.
- Parameters
-
[in] | bitmap | A bitmap object. It should not be an empty bitmap. |
◆ OFDRenderer() [2/2]
com.foxit.sdk.addon.ofd.OFDRenderer.OFDRenderer |
( |
OFDRenderer |
other | ) |
|
Constructor, with another renderer object.
- Parameters
-
[in] | other | Another renderer object. |
◆ delete()
synchronized void com.foxit.sdk.addon.ofd.OFDRenderer.delete |
( |
| ) |
|
Clean up related resources immediately.
- Returns
- None.
- Note
- Once this function is called, current object cannot be used anymore.
◆ isEmpty()
boolean com.foxit.sdk.addon.ofd.OFDRenderer.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.
◆ setColorMode()
Set the color mode.
- Parameters
-
- Returns
- None.
◆ setContentFlag()
Set the content flag.
- Parameters
-
- Returns
- None.
◆ startRender()
Start to render an OFD page.
This function is used to start to render an OFD page.
- Parameters
-
[in] | page | An OFD page object. It should not be an empty object. |
[in] | matrix | A matrix for rendering the page, which is usually returned by function OFDPage.getDisplayMatrix . |
- Returns
- A progressive object. Please check the rate of current progress by function common.Progressive.getRateOfProgress . If the rate is not 100 yet, call function common.Progressive.resume to continue the progress until the progress is finished.