These functions change background image.
['col']
¶r g b
¶mglGraph
: void
Clf ()
¶mglGraph
: void
Clf (const char *
col)
¶mglGraph
: void
Clf (char
col)
¶mglGraph
: void
Clf (mreal
r, mreal
g, mreal
b)
¶void
mgl_clf (HMGL
gr)
¶void
mgl_clf_str (HMGL
gr, const char *
col)
¶void
mgl_clf_chr (HMGL
gr, char
col)
¶void
mgl_clf_rgb (HMGL
gr, mreal
r, mreal
g, mreal
b)
¶void
mgl_clf_rgba (HMGL
gr, mreal
r, mreal
g, mreal
b, mreal
a)
¶Clear the picture and fill background by specified color.
mglGraph
: void
Rasterize ()
¶void
mgl_rasterize (HMGL
gr)
¶Force drawing the plot and use it as background. After it, function clear the list of primitives, like clf. This function is useful if you want save part of plot as bitmap one (for example, large surfaces, isosurfaces or vector fields) and keep some parts as vector one (like annotation, curves, axis and so on). Often, you need to manually call subplot command after rasterize to avoid extra space allocation or plot rotation.
'fname' [alpha=1
]
¶'fname' 'how' [alpha=1
]
¶mglGraph
: void
LoadBackground (const char *
fname, double
alpha=1
)
¶void
mgl_load_background (HMGL
gr, const char *
fname, double
alpha)
¶mglGraph
: void
LoadBackground (const char *
fname, const char *
how, double
alpha=1
)
¶void
mgl_load_background_ext (HMGL
gr, const char *
fname, const char *
how, double
alpha)
¶Load PNG or JPEG file fname as background for the plot. Parameter alpha manually set transparency of the background. Parameter how can be: ‘a’ for filling current subplot only, ‘s’ for scaling (resizing) image to whole area, ‘c’ for centering image, ‘m’ for tessellate image as mosaic.