target
as a target surface. The target
surface should be constructed with a backend-specific function such
as cairoImageSurfaceCreate
(or any other
cairo_backend_surface_create variant).cairoCreate(target)
NULL
. If memory cannot be
allocated, a special cairoStatus
returns CAIRO_STATUS_NO_MEMORY
.
You can use this object normally, but no drawing will
be done.target
, so you can immediately
call cairoSurfaceDestroy
on it if you don't need to
maintain a separate reference to it.