| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
4.5 Export picture
Functions in this group save or give access to produced picture. So, usually they should be called after plotting is done.
- MGL command: setsize
w h - Method on
mglGraph:voidSetSize (intwidth,intheight) - C function:
voidmgl_set_size (HMGLgr,intwidth,intheight) Sets size of picture in pixels. This function must be called before any other plotting because it completely remove picture contents.
- MGL command: quality [
val=2] - Method on
mglGraph:voidSetQuality (intval=MGL_DRAW_NORM) - C function:
voidmgl_set_quality (HMGLgr,intval) Sets quality of the plot depending on value val:
MGL_DRAW_WIRE=0– no face drawing (fastest),MGL_DRAW_FAST=1– no color interpolation (fast),MGL_DRAW_NORM=2– high quality (normal),MGL_DRAW_HIGH=3– high quality with 3d primitives (arrows and marks);MGL_DRAW_LMEM=0x4– direct bitmap drawing (low memory usage);MGL_DRAW_DOTS=0x8– for dots drawing instead of primitives (extremely fast).
- Method on
mglGraph:intGetQuality () - C function:
intmgl_get_quality (HMGLgr) Gets quality of the plot:
MGL_DRAW_WIRE=0– no face drawing (fastest),MGL_DRAW_FAST=1– no color interpolation (fast),MGL_DRAW_NORM=2– high quality (normal),MGL_DRAW_HIGH=3– high quality with 3d primitives (arrows and marks);MGL_DRAW_LMEM=0x4– direct bitmap drawing (low memory usage);MGL_DRAW_DOTS=0x8– for dots drawing instead of primitives (extremely fast).
- Method on
mglGraph:voidStartGroup (const char *name) - C function:
voidmgl_start_group (HMGLgr,const char *name) Starts group definition. Groups contain objects and other groups, they are used to select a part of a model to zoom to or to make invizible or to make semitransparent and so on.
- Method on
mglGraph:voidEndGroup () - C function:
voidmgl_end_group (HMGLgr) Ends group definition.
| 4.5.1 Export to file | ||
| 4.5.2 Frames/Animation | ||
| 4.5.3 Bitmap in memory | ||
| 4.5.4 Parallelization |
| [ << ] | [ < ] | [ Up ] | [ > ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
This document was generated on March 21, 2014 using texi2html 5.0.
