FigureBase.saveToFile

Saves this figure to a file. The file type can be one of the raster formats .png or .bmp. Saving to vector formats will likely never be supported on DFL because DFL's drawing backend is GDI, which is inherently raster-based. The width and height parameters allow you to specify explicit width and height parameters for the image file. If width and height are left at their default values of 0, the default width and height of the subclass being saved will be used.

Note: The width and height parameters are provided as doubles for consistency with backends that support vector formats. These are simply rounded to the nearest integer for the DFL backend.

  1. void saveToFile(string filename, string type, double width = 0, double height = 0)
    class FigureBase
    void
    saveToFile
    (
    string filename
    ,
    string type
    ,
    double width = 0
    ,
    double height = 0
    )
  2. void saveToFile(string filename, double width = 0, double height = 0)

Meta