Name
cairo.ImageSurfaceFromBrush -- create image surface from Hollywood brush
Synopsis
handle = cairo.ImageSurfaceFromBrush(id)
Function
Creates an image surface from the Hollywood brush specified by id. If the brush has transparent areas, the image surface will use #CAIRO_FORMAT_ARGB32, otherwise it will use the #CAIRO_FORMAT_RGB24 pixel format.

This function returns a handle to the newly created surface. The caller owns the surface and should call csurface:Free() when done with it.

Inputs
id
Hollywood brush to convert to an image surface
Results
handle
image surface

Show TOC