Name
gl.ReadPixelsToBrush -- read pixels from the frame buffer to a brush
Synopsis
[id] = gl.ReadPixelsToBrush(x, y, width, height, id)
Function
This function does the same as gl.ReadPixels() except that the pixel data is converted into the Hollywood brush specified by id. If there is already a brush that uses the identifier id, it will be freed first. If you specify Nil in the id argument, gl.ReadPixelsToBrush() will automatically choose a vacant identifier for this brush and return it to you.

See gl.ReadPixels for details.

Inputs
x
specify the left coordinate of a rectangular block of pixels
y
specify the lower coordinate of a rectangular block of pixels
width
width of the pixel rectangle
height
height of the pixel rectangle
id
id for the new brush or Nil for auto id selection
Results
id
optional: identifier of the brush; will only be returned when you pass Nil as argument 5 (see above)

Show TOC