BufferSurface.with_surface


Description:

public BufferSurface.with_surface (int width, int height, Surface model)

Constructs a new, empty Granite.Drawing.BufferSurface with the supplied dimensions, using the supplied Cairo.Surface as a model.

Parameters:

width

the width of the new Granite.Drawing.BufferSurface, in pixels

height

the height of the new Granite.Drawing.BufferSurface, in pixels

model

the Cairo.Surface to use as a model for the internal Cairo.Surface