FoxitPDFSDKforWeb
v10.0.0
Foxit PDF SDK for Web
|
Public Member Functions | |
CombinePixelsOptions | extractAllOptions () |
Extract all options as plain objects described by the CombinePixelsOptions interface. More... | |
Function | onChange (type:CombinePixelsOptionsKey, callback:OnOptionChangeCallback) |
Monitoring option changes. More... | |
void | setBlendColorResolver (BlendColorResolver blendColorResolver) |
Customize the blend color resolver, and changes can be monitored through `OverlayComparisonOptionsService.onChange('blendColorResolver', callback)`. More... | |
void | setShowDiffColor (boolean showDiffColor) |
Set whether to display the difference color, and changes can be monitored through `OverlayComparisonOptionsService.onChange('showDiffColor', callback)`. More... | |
void | setSourceDiffColor (DiffColor sourceDiffColor) |
Set the diff-color of the source document displayed on the comparison result image, and changes can be monitored through `OverlayComparisonOptionsService.onChange('sourceDiffColor', callback)`. More... | |
void | setSourceOpacity (number sourceOpacity) |
Set the opacity of the source document displayed on the comparison result image, and changes can be monitored through `OverlayComparisonOptionsService.onChange('sourceDocumentOpacity', callback)`. More... | |
void | setTargetDiffColor (DiffColor targetDiffColor) |
Set the diff-color of the target document displayed on the comparison result image, and changes can be monitored through `OverlayComparisonOptionsService.onChange('targetDiffColor', callback)`. More... | |
void | setTargetOpacity (number targetOpacity) |
Set the opacity of the target document displayed on the comparison result image, and changes can be monitored through `OverlayComparisonOptionsService.onChange('targetDocumentOpacity', callback)`. More... | |
CombinePixelsOptions OverlayComparisonOptionsService::extractAllOptions | ( | ) |
Extract all options as plain objects described by the CombinePixelsOptions interface.
Function OverlayComparisonOptionsService::onChange | ( | type:CombinePixelsOptionsKey | , |
callback:OnOptionChangeCallback | |||
) |
Monitoring option changes.
type | CombinePixelsOptionsKey - The event type, should be the key of CombinePixelsOptions. |
callback | OnOptionChangeCallback - A callback to handle the changes of CombinePixelsOptions. |
void OverlayComparisonOptionsService::setBlendColorResolver | ( | BlendColorResolver | blendColorResolver | ) |
Customize the blend color resolver, and changes can be monitored through `OverlayComparisonOptionsService.onChange('blendColorResolver', callback)`.
blendColorResolver | BlendColorResolver - The blend color algorithm function, which will be override the built-in blend color algorithm implementation. |
void OverlayComparisonOptionsService::setShowDiffColor | ( | boolean | showDiffColor | ) |
Set whether to display the difference color, and changes can be monitored through `OverlayComparisonOptionsService.onChange('showDiffColor', callback)`.
showDiffColor | boolean - If true, the difference color will be calculated based on targetDiffColor and sourceDiffColor. |
void OverlayComparisonOptionsService::setSourceDiffColor | ( | DiffColor | sourceDiffColor | ) |
Set the diff-color of the source document displayed on the comparison result image, and changes can be monitored through `OverlayComparisonOptionsService.onChange('sourceDiffColor', callback)`.
sourceDiffColor | DiffColor - Enumeration item of DiffColor |
void OverlayComparisonOptionsService::setSourceOpacity | ( | number | sourceOpacity | ) |
Set the opacity of the source document displayed on the comparison result image, and changes can be monitored through `OverlayComparisonOptionsService.onChange('sourceDocumentOpacity', callback)`.
sourceOpacity | number - An integer values between 0 and 255 (inclusive). |
void OverlayComparisonOptionsService::setTargetDiffColor | ( | DiffColor | targetDiffColor | ) |
Set the diff-color of the target document displayed on the comparison result image, and changes can be monitored through `OverlayComparisonOptionsService.onChange('targetDiffColor', callback)`.
targetDiffColor | DiffColor - Enumeration item of DiffColor. |
void OverlayComparisonOptionsService::setTargetOpacity | ( | number | targetOpacity | ) |
Set the opacity of the target document displayed on the comparison result image, and changes can be monitored through `OverlayComparisonOptionsService.onChange('targetDocumentOpacity', callback)`.
targetOpacity | number - An integer values between 0 and 255 (inclusive). |