Pascal
procedure tsImageBlur(ImageID: tsImageID; X: tsFloat; Y: tsFloat; ChannelMask: tsBitmask; AutoExpand: tsBool; ExpandSizeX: ptsInt; ExpandSizeY: ptsInt);
C/C++
void tsImageBlur(tsImageID ImageID, tsFloat X, tsFloat Y, tsBitmask ChannelMask, tsBool AutoExpand, tsInt * ExpandSizeX, tsInt * ExpandSizeY);
This function will apply an gaussian blur algorithm to the given image. You can specify an horizontal and vertical size of the filter separately. Also you have full informations about the resulting image.
The ID of the image which will be resized.
The horizontal position where the original image will be placed.
The vertical position where the original image will be placed.
Indicates on which channels the blurring will be applied. For an list of all available flags look in the table Channelmasks.
This parameter controls the expansion of the image. The following values are allowed for AutoExpand.
The image will be expanded.
The size of the image wont be changed.
If this param isn't nil / NULL the function returns the single horizontal size by which the image was expanded. The image was expanded on the left and on the right side. So the new width of the image is the old width and 2 * ExpandSizeX.
If this param isn't nil / NULL the function returns the single vertical size by which the image was expanded. The image was expanded on the top and on the bottom. So the new height of the image is the old height and 2 * ExpandSizeY.
If there was no context bound.
If you try to resize an empty image.
This will happen if you pass an invalid ImageID to this function.