LowCodeImageSaveOptions
LowCodeImageSaveOptions class
Options for saving image in low code way.
class LowCodeImageSaveOptions extends LowCodeSaveOptions;
Constructors
Name | Description |
---|---|
constructor(LowCodeSaveOptions) | Constructs from a parent object convertible to this. |
constructor() | Default Constructor. |
Properties
Property | Type | Description |
---|---|---|
imageOptions | ImageOrPrintOptions | The options for rendering images. |
saveOptionsProvider | AbstractLowCodeSaveOptionsProvider | Provider of save options for saving generated images. |
outputFile | string | Gets and sets the file(with path if needed) for saving the generated data. When setting this property with value other than null or empty string, OutputStream will be ignored. |
outputStream | Uint8Array | Gets and sets the Stream for writing the generated data to. When setting this property with value other than null, OutputFile will be ignored. |
Methods
Method | Description |
---|---|
getSaveFormat() | Gets or sets the save format. |
setSaveFormat(SaveFormat) | Gets or sets the save format. |
constructor(LowCodeSaveOptions)
Constructs from a parent object convertible to this.
constructor(obj: LowCodeSaveOptions);
Parameters:
Parameter | Type | Description |
---|---|---|
obj | LowCodeSaveOptions | The parent object. |
constructor()
Default Constructor.
constructor();
imageOptions
The options for rendering images.
imageOptions : ImageOrPrintOptions;
Remarks
When one ImageOrPrintOptions instance is specified, the SaveFormat will be overwritten(if it had been specified before).
saveOptionsProvider
Provider of save options for saving generated images.
saveOptionsProvider : AbstractLowCodeSaveOptionsProvider;
Remarks
The output(LowCodeSaveOptions.OutputFile or LowCodeSaveOptions.OutputStream) specified by this instance will take no effect when this property is specified. Instead the output of every generated image will be specified by the provider.
outputFile
Gets and sets the file(with path if needed) for saving the generated data. When setting this property with value other than null or empty string, OutputStream will be ignored.
outputFile : string;
outputStream
Gets and sets the Stream for writing the generated data to. When setting this property with value other than null, OutputFile will be ignored.
outputStream : Uint8Array;
getSaveFormat()
Gets or sets the save format.
getSaveFormat() : SaveFormat;
Returns
Remarks
If ImageOptions has been specified, setting this property will also change the ImageOrPrintOptions.ImageType value of it.
setSaveFormat(SaveFormat)
Gets or sets the save format.
setSaveFormat(value: SaveFormat) : void;
Parameters:
Parameter | Type | Description |
---|---|---|
value | SaveFormat | The value to set. |
Remarks
If ImageOptions has been specified, setting this property will also change the ImageOrPrintOptions.ImageType value of it.