The OpenD Programming Language

GGPlotD.drawToSurface

Draw the plot to a GtkD cairo surface.

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

Parameters

surface gtkdSurface.Surface

Surface object of type cairo.Surface from GtkD 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: auto

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

Meta