LowCodeImageSaveOptions

LowCodeImageSaveOptions class

Options for saving image in low code way.

class LowCodeImageSaveOptions extends LowCodeSaveOptions;

Constructors

NameDescription
constructor(LowCodeSaveOptions)Constructs from a parent object convertible to this.
constructor()Default Constructor.

Properties

PropertyTypeDescription
imageOptionsImageOrPrintOptionsThe options for rendering images.
saveOptionsProviderAbstractLowCodeSaveOptionsProviderProvider of save options for saving generated images.
outputFilestringGets 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.
outputStreamUint8ArrayGets and sets the Stream for writing the generated data to. When setting this property with value other than null, OutputFile will be ignored.

Methods

MethodDescription
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:

ParameterTypeDescription
objLowCodeSaveOptionsThe 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

SaveFormat

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:

ParameterTypeDescription
valueSaveFormatThe value to set.

Remarks

If ImageOptions has been specified, setting this property will also change the ImageOrPrintOptions.ImageType value of it.