PictureCollection

PictureCollection class

Encapsulates a collection of Picture objects.

class PictureCollection;

Methods

MethodDescription
get(number)Gets the Picture element at the specified index.
add(number, number, number, number, Uint8Array)Adds a picture to the collection.
add(number, number, number, number, string)Adds a picture to the collection.
add(number, number, Uint8Array)Adds a picture to the collection.
add(number, number, string)Adds a picture to the collection.
add(number, number, Uint8Array, number, number)Adds a picture to the collection.
add(number, number, string, number, number)Adds a picture to the collection.
clear()Clear all pictures.
removeAt(number)Remove shapes at the specific index
getCount()Gets the number of elements contained in.
isNull()Checks whether the implementation object is null.

get(number)

Gets the Picture element at the specified index.

get(index: number) : Picture;

Parameters:

ParameterTypeDescription
indexnumberThe zero based index of the element.

Returns

The element at the specified index.

add(number, number, number, number, Uint8Array)

Adds a picture to the collection.

add(upperLeftRow: number, upperLeftColumn: number, lowerRightRow: number, lowerRightColumn: number, stream: Uint8Array) : number;

Parameters:

ParameterTypeDescription
upperLeftRownumberUpper left row index.
upperLeftColumnnumberUpper left column index.
lowerRightRownumberLower right row index
lowerRightColumnnumberLower right column index
streamUint8ArrayStream object which contains the image data.

Returns

Picture object index.

add(number, number, number, number, string)

Adds a picture to the collection.

add(upperLeftRow: number, upperLeftColumn: number, lowerRightRow: number, lowerRightColumn: number, fileName: string) : number;

Parameters:

ParameterTypeDescription
upperLeftRownumberUpper left row index.
upperLeftColumnnumberUpper left column index.
lowerRightRownumberLower right row index
lowerRightColumnnumberLower right column index
fileNamestringImage filename.

Returns

Picture object index.

add(number, number, Uint8Array)

Adds a picture to the collection.

add(upperLeftRow: number, upperLeftColumn: number, stream: Uint8Array) : number;

Parameters:

ParameterTypeDescription
upperLeftRownumberUpper left row index.
upperLeftColumnnumberUpper left column index.
streamUint8ArrayStream object which contains the image data.

Returns

Picture object index.

add(number, number, string)

Adds a picture to the collection.

add(upperLeftRow: number, upperLeftColumn: number, fileName: string) : number;

Parameters:

ParameterTypeDescription
upperLeftRownumberUpper left row index.
upperLeftColumnnumberUpper left column index.
fileNamestringImage filename.

Returns

Picture object index.

add(number, number, Uint8Array, number, number)

Adds a picture to the collection.

add(upperLeftRow: number, upperLeftColumn: number, stream: Uint8Array, widthScale: number, heightScale: number) : number;

Parameters:

ParameterTypeDescription
upperLeftRownumberUpper left row index.
upperLeftColumnnumberUpper left column index.
streamUint8ArrayStream object which contains the image data.
widthScalenumberScale of image width, a percentage.
heightScalenumberScale of image height, a percentage.

Returns

Picture object index.

add(number, number, string, number, number)

Adds a picture to the collection.

add(upperLeftRow: number, upperLeftColumn: number, fileName: string, widthScale: number, heightScale: number) : number;

Parameters:

ParameterTypeDescription
upperLeftRownumberUpper left row index.
upperLeftColumnnumberUpper left column index.
fileNamestringImage filename.
widthScalenumberScale of image width, a percentage.
heightScalenumberScale of image height, a percentage.

Returns

Picture object index.

clear()

Clear all pictures.

clear() : void;

removeAt(number)

Remove shapes at the specific index

removeAt(index: number) : void;

Parameters:

ParameterTypeDescription
indexnumber

getCount()

Gets the number of elements contained in.

getCount() : number;

isNull()

Checks whether the implementation object is null.

isNull() : boolean;