Description
Creates a new Cairo with all graphics state parameters set to
default values and with target as a target surface. The target
surface should be constructed with a backend-specific function such
as cairoImageSurfaceCreate (or any other
cairo__surface_create variant).Value
- [Cairo]  a newly allocatedCairowith a reference
 count of 1. The initial reference count should be released
 withcairo() when you are done using the Cairo.
 This function never returnsNULL. If memory cannot be
 allocated, a specialCairoobject will be returned on
 whichcairoStatusreturnsCAIRO_STATUS_NO_MEMORY.
 You can use this object normally, but no drawing will
 be done.
[object Object]
internal
Details
This function references target, so you can immediately
call cairoSurfaceDestroy on it if you don't need to
maintain a separate reference to it.