quickFill()

Syntax

int quickFill(int x, int y, int z, int buffer, int radius, int xstart, int ystart, int xend, int yend)

Arguments

x, y z:
image coordinates and color channel.
buffer:
Which image buffer to read values from: 0 = input buffer, 1= tempbuffer1, 2 = tempbuffer2, 3 = output buffer, 10 = Array0, 11= Array1, 12 = Array2 and so on...
radius:
The pixel values that lie in a radius around x,y on channel z will be placed in the put/get cells. The maximum possible radius is 32, because there are only 1024 put/get cells (32*32 = 1024). If you use a higher radius value, quickFill() will not work.
xstart, ystart, xend, yend:
The borders of the image buffer. You should use x_start, y_start, x_end and y_end if you have set "isTileable = true". Otherwise 0,0,X,Y.

Return

Description

quickFill() is meant for filling the put/get cells with values from one of the image buffer or from an array. It is meant to be used in connection with quickMedian() to calculate the median value.

Example

Also see

quickMedian()

Comments

Everyone can add his comments about his experiences with this function here. Tips for using it are welcome, too.