8.4. tsImageAssignFrom

Syntax

Pascal

procedure tsImageAssignFrom(ImageID: tsImageID; FromImageID: tsImageID);

C/C++

void tsImageAssignFrom(tsImageID ImageID, tsImageID FromImageID);

Description

Copies the image data from the image FromImageID to the image ImageID. Creates an copy of FromImageID.

Params

ImageID

In this image the data will be copied.

FromImageID

The source image that contains the image data.

Error Codes

TS_NO_ACTIVE_CONTEXT

If there was no context bound.

TS_OUT_OF_MEMORY

If you tries to copy an image that is to large. So the copy will be aborted with the out of memory error.

TS_INVALID_OPERATION

This occours if you trie to copy an empty image.

TS_INVALID_VALUE

This will happen if you pass an invalid ImageID to this function.

TS_ERROR

There was an unknown error. Please inform me in which case this happens.