insertImage()

Description

Inserts image into DcsBuffer at the index.

Syntax

func insertImage (image:DcsImage, index:Int)

Parameters

image:DcsImage The image data to be inserted.
index:Int The index to insert the image.

Return value

Int

Remarks

If index=0, the image object will be added in the head of DcsBuffer.
If index=count, the image object will be added in the end of DcsBuffer.

Exceptions

Circumstance Exception thrown
Index is not a positive value smaller than count. DcsValueOutOfRangeException
Image is not DcsImage. DcsTypeNotValidException
Image is nil. DcsValueNotValidException