The OpenD Programming Language

GGPlotD.drawToSurface

Draw the plot to a cairoD cairo surface.

  1. cairo.Surface drawToSurface(cairo.Surface surface, int width, int height)
    struct GGPlotD
    ref const
    cairo.Surface
    drawToSurface
    (
    ref return cairo.Surface surface
    ,
    int width
    ,
    int height
    )
  2. auto drawToSurface(gtkdSurface.Surface surface, int width, int height)

Parameters

surface cairo.Surface

Surface object of type cairo.Surface from cairoD library, on top of which this plot is drawn.

width int

Width of the given surface.

height int

Height of the given surface.

Return Value

Type: cairo.Surface

Resulting surface of the same type as input surface, with this plot drawn on top of it.

Meta