8.14. tsImageBlend

Syntax

Pascal

procedure tsImageBlend(ImageID: tsImageID; OverImageID: tsImageID;
  X: tsInt; Y: tsInt; AutoExpand: tsBool);

C/C++

void tsImageBlend(tsImageID ImageID, tsImageID OverImageID,
  tsInt X, tsInt Y, tsBool AutoExpand);

Description

These function can blend one semi-transparent image over an other.

Blending images

Figure 8.2. Blending images

Params

ImageID

The ID of the underlaying image.

OverImageID

The ID of the image which will be blended over the underlaying image.

X

The horizontal position where the overlaying image will be placed.

Y

The vertical position where the overlaying image will be placed.

AutoExpand

This parameter controls the expansion of the image. The following values are allowed for AutoExpand.

TS_TRUE

The image will be expanded.

autoexpanded
TS_FALSE

The size of the image wont be changed.

not autoexpanded
[Note] Note

At this moment this parameter will be ignored and the image always will be expanded.

Error Codes

TS_NO_ACTIVE_CONTEXT

If there was no context bound.

TS_INVALID_OPERATION

If you try to resize an empty image.

TS_INVALID_VALUE

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