Function GraSetAttrMarker() Foundation
Determines attributes for markers which are drawn by GraMarker().
GraSetAttrMarker( [<oPS>], [<aAttributes>] ) --> aOldAttributes
Array element | #define | value | Default value |
---|---|---|
GRA_AM_COLOR | GRA_CLR_* | GRA_CLR_NEUTRAL |
GRA_AM_BACKCOLOR | GRA_CLR_* | GRA_CLR_BACKGROUND |
GRA_AM_MIXMODE | GRA_FGMIX_* | GRA_FGMIX_OVERPAINT |
GRA_AM_BGMIXMODE | GRA_BGMIX_* | GRA_BGMIX_LEAVEALONE |
GRA_AM_SYMBOL | GRA_MARKSYM_* | GRA_MARKSYM_CROSS |
GRA_AM_BOX | { nXSize, nYSize } | Dependent on output device |
The function GraSetAttrMarker() returns a copy of the array containing the currently set marker attributes. If new attributes are specified by <aAttributes>, the function returns an array containing the previous attributes.
The function GraSetAttrMarker() determines the attributes for point marking (markers) output by GraMarker(). The marker attributes which can be specified have the following results:
Array element | Description |
---|---|
GRA_AM_COLOR | Foreground color |
GRA_AM_BACKCOLOR | Background color |
GRA_AM_MIXMODE | Color mix attribute for foreground |
GRA_AM_BGMIXMODE | Color mix attribute for background |
GRA_AM_SYMBOL | Symbol for marker |
GRA_AM_BOX | Dimension of a marker in x and y direction |
All marker attributes remain until the function GraSetAttrMarker() is called again. The exceptions to this are the colors, which are redefined with GraSetColor().
Foreground and background color
By default, the colors set by GraSetColor() are used. For markers a foreground and a background color can be specified separately.
Mix attributes
A detailed description of the mix attributes is found in the basic discussion of graphic attributesin the Xbase++ documentation.
Marker symbol
The following illustration shows all symbols for markers which can be selected by GraSetAttrMarker().
Marker size
The attribute GRA_AM_BOX determines the dimension of a marker in x and y direction. If the size is changed, an array with two elements is contained in the array element GRA_AM_BOX. The first element of the subarray contains the width of the marker and the second element contains its height.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.