Skip to content

SourceImage

Defined in: core/source/iimage.ts:59

new SourceImage(): SourceImage

SourceImage

getValue(): Promise<string>

Defined in: core/source/iimage.ts:88

return: Promise

Gets the URL path of the image file used as a source

source.getValue().then(function(value) {
// Do something with the value
});

Promise<string>

ISourceImage.getValue


isSourceAvailable(): Promise<boolean>

Defined in: core/source/iimage.ts:71

return: Promise

Check if file used as source is available

item.isSourceAvailable().then(function(isAvail) {
// The rest of your code here
});

Promise<boolean>

ISourceImage.isSourceAvailable


setValue(filename): Promise<SourceImage>

Defined in: core/source/iimage.ts:107

param: (value: string)

return: Promise<ISourceImage>

Set the image file to be used as source

source.setValue('C:\\SomeFolder\\SomeFile.png')
.then(function(source) {
// Promise resolves with same Source instance
});

string

Promise<SourceImage>

ISourceImage.setValue