Method Cairo.ScriptSurface()->create()


Method create

Cairo.ScriptSurface Cairo.ScriptSurface(ScriptDevice script, int content, float|int width, float|int height)

Description

Create a new surface that will emit its rendering through script

Parameter script

the script (output device)

Parameter content

the content of the surface

Parameter width

width in pixels

Parameter height

height in pixels


Method create

Cairo.ScriptSurface Cairo.ScriptSurface(ScriptDevice script, Surface target)

Description

Create a pxoy surface that will render to target and record the operations to device.

Parameter script

the script (output device)

Parameter target

a target surface to wrap