Optionaloptions: OptionsCreate a RenderOptions instance with the specified options.
Converts a numeric color value to hex color string.
The numeric color value to convert.
A promise that resolves to the hex color string in format "#RRGGBB".
destroy the current object.
Gets the background color.
A promise that resolves to the background color. Hex color string in the format "#RRGGBB".
Gets the color mode.
A promise that resolves to the color mode.
Gets the foreground color.
A promise that resolves to the foreground color. Hex color string in the format "#RRGGBB".
Gets the render flag.
A promise that resolves to the render flag.
Sets the background color.
The background color to set. Hex color string in the format "#RRGGBB".
A promise that resolves when the background color is set.
Sets the color mode.
The color mode to set.
A promise that resolves when the color mode is set.
Sets the foreground color.
The foreground color to set. Hex color string in the format "#RRGGBB".
A promise that resolves when the foreground color is set.
Sets the render flag.
The render flag to set. See DefineConst.FPD_RENDER_CLEARTYPE = 0x01 DefineConst.FPD_RENDER_PRINTGRAPHICTEXT = 0x02 DefineConst.FPD_RENDER_FORCE_DOWNSAMPLE = 0x04 DefineConst.FPD_RENDER_PRINTPREVIEW = 0x08 DefineConst.FPD_RENDER_BGR_STRIPE = 0x10 DefineConst.FPD_RENDER_NO_NATIVETEXT = 0x00000020 DefineConst.FPD_RENDER_FORCE_HALFTONE = 0x40 DefineConst.FPD_RENDER_RECT_AA = 0x80 DefineConst.FPD_RENDER_FILL_FULLCOVER = 0x00000100 DefineConst.FPD_RENDER_PRINTIMAGETEXT = 0x00000200 DefineConst.FPD_RENDER_OVERPRINT = 0x00000400 DefineConst.FPD_RENDER_THINLINE = 0x00000800 DefineConst.FPD_RENDER_ENHANCEZEROLINE = 0x00001000 DefineConst.FPD_RENDER_MONO_FORCE_DOWNSAMPLE = 0x00002000 DefineConst.FPD_RENDER_NOTEXTSMOOTH = 0x10000000 DefineConst.FPD_RENDER_NOPATHSMOOTH = 0x20000000 DefineConst.FPD_RENDER_NOIMAGESMOOTH = 0x40000000 DefineConst.FPD_RENDER_IMAGEINTERPOL = 0x80000000 DefineConst.FPD_RENDER_LIMITEDIMAGECACHE = 0x01000000 DefineConst.FPD_RENDER_TEXTKNOCKOUT = 0x00010000 DefineConst.FPD_RENDER_COLORREPLACE_TEXT = 0x00000001 DefineConst.FPD_RENDER_COLORREPLACE_PATH = 0x00000002 DefineConst.FPD_RENDER_COLORREPLACE_TEXT_ONLYBLACK = 0x00000100 DefineConst.FPD_RENDER_COLORREPLACE_PATH_ONLYBLACK = 0x00000200 DefineConst.FPD_RENDER_ENABLE_JPX_DOWNSAMPLE = 0x00200000
A promise that resolves when the render flag is set.
StaticcreateCreates a RenderOptions instance.
Optionaloptions: OptionsThe configuration options required for creation, containing necessary initialization information.
A promise that resolves to a RenderOptions instance.
Create a RenderOptions instance. Instead of creating an instance in new mode, use create to create an instance.