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.

Methods

MethodDescription
getSaveFormat()Gets or sets the save format.
setSaveFormat(SaveFormat)Gets or sets the save format.
getImageOptions()The options for rendering images.
setImageOptions(ImageOrPrintOptions)The options for rendering images.
getSaveOptionsProvider()Provider of save options for saving generated images.
setSaveOptionsProvider(AbstractLowCodeSaveOptionsProvider)Provider of save options for saving generated images.
isNull()Checks whether the implementation object is null.
getOutputFile()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.
setOutputFile(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.
getOutputStream()Gets and sets the Stream for writing the generated data to. When setting this property with value other than null, OutputFile will be ignored.
setOutputStream(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.

constructor(LowCodeSaveOptions)

Constructs from a parent object convertible to this.

constructor(obj: LowCodeSaveOptions);

Parameters:

ParameterTypeDescription
objLowCodeSaveOptionsThe parent object.

constructor()

Default Constructor.

constructor();

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.

getImageOptions()

The options for rendering images.

getImageOptions() : ImageOrPrintOptions;

Returns

ImageOrPrintOptions

Remarks

When one ImageOrPrintOptions instance is specified, the SaveFormat will be overwritten(if it had been specified before).

setImageOptions(ImageOrPrintOptions)

The options for rendering images.

setImageOptions(value: ImageOrPrintOptions) : void;

Parameters:

ParameterTypeDescription
valueImageOrPrintOptionsThe value to set.

Remarks

When one ImageOrPrintOptions instance is specified, the SaveFormat will be overwritten(if it had been specified before).

getSaveOptionsProvider()

Provider of save options for saving generated images.

getSaveOptionsProvider() : AbstractLowCodeSaveOptionsProvider;

Returns

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.

setSaveOptionsProvider(AbstractLowCodeSaveOptionsProvider)

Provider of save options for saving generated images.

setSaveOptionsProvider(value: AbstractLowCodeSaveOptionsProvider) : void;

Parameters:

ParameterTypeDescription
valueAbstractLowCodeSaveOptionsProviderThe value to set.

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.

isNull()

Checks whether the implementation object is null.

isNull() : boolean;

getOutputFile()

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.

getOutputFile() : string;

setOutputFile(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.

setOutputFile(value: string) : void;

Parameters:

ParameterTypeDescription
valuestringThe value to set.

getOutputStream()

Gets and sets the Stream for writing the generated data to. When setting this property with value other than null, OutputFile will be ignored.

getOutputStream() : Uint8Array;

setOutputStream(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.

setOutputStream(value: Uint8Array) : void;

Parameters:

ParameterTypeDescription
valueUint8ArrayThe value to set.