| Customize Help
| Save Settings

MgraControl



Function Map
Synopsis
Control a specified 2D graphics context setting.
Syntax
void MgraControl(
MIL_ID ContextGraId, //in
MIL_INT64 ControlType, //in
MIL_DOUBLE ControlValue //in
)
Description

This function allows you to control the specified 2D graphics context setting. Most of the control type settings can be inquired using MgraInquire(). To control a 2D graphics list, use MgraControlList().

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
ContextGraId

Specifies the identifier of the 2D graphics context to control. This parameter must be set to one of the following:

function map For specifying the 2D graphics context
Click to summarizeValue Description
Click to summarize M_DEFAULT

Specifies that the default 2D graphics context of the current MIL application is used.

Note that there is a different default 2D graphics context for each thread.

(summarize)
Click to summarize MIL 2D graphics context identifier

Specifies a valid 2D graphics context identifier, which you have allocated using MgraAlloc().

ControlType

Specifies the 2D graphics context setting to control.

See the Parameter associations section for possible values that can be specified.

ControlValue

Specifies the value to assign to the 2D graphics context setting.

See the Parameter associations section for possible values that can be specified.

The following ControlType and corresponding ControlValue parameter settings are used to change general 2D graphics context settings. Unless otherwise specified, these affect all types of graphics.

function map For general 2D graphics context settings
Click to summarizeControlType Description
ControlValue
Click to summarize M_COLOR +

Sets the foreground color. INQ

(summarize)
Click to summarize
M_RGB888(
MIL_INT Red,
MIL_INT Green,
MIL_INT Blue
)

Specifies an RGB value when using the 2D graphics context to draw in an 8-bit, 3-band buffer. The red, green, and blue values must be values between 0 and 255, inclusive.

When drawing in a 16-bit or 32-bit multi-band buffer, the components of the RGB value are cast to the type of the destination buffer's bands.

To specify a 16-bit or 32-bit color component, use MgraControl() with M_COLOR combined with the appropriate constant (M_RED, M_GREEN, or M_BLUE).

(summarize)
Parameters

Specifies the red component, as a value between 0 and 255.

Specifies the green component, as a value between 0 and 255.

Specifies the blue component, as a value between 0 and 255.

Click to summarize M_COLOR_BLACK

Specifies the color black.

Click to summarize M_COLOR_BLUE

Specifies the color blue.

Click to summarize M_COLOR_BRIGHT_GRAY

Specifies the color bright gray.

Click to summarize M_COLOR_CYAN

Specifies the color cyan.

Click to summarize M_COLOR_DARK_BLUE

Specifies the color dark blue.

Click to summarize M_COLOR_DARK_CYAN

Specifies the color dark cyan.

Click to summarize M_COLOR_DARK_GREEN

Specifies the color dark green.

Click to summarize M_COLOR_DARK_MAGENTA

Specifies the color dark magenta.

Click to summarize M_COLOR_DARK_RED

Specifies the color dark red.

Click to summarize M_COLOR_DARK_YELLOW

Specifies the color dark yellow.

Click to summarize M_COLOR_GRAY

Specifies the color gray.

Click to summarize M_COLOR_GREEN

Specifies the color green.

Click to summarize M_COLOR_LIGHT_BLUE

Specifies the color light blue.

Click to summarize M_COLOR_LIGHT_GRAY

Specifies the color light gray.

Click to summarize M_COLOR_LIGHT_GREEN

Specifies the color light green.

Click to summarize M_COLOR_LIGHT_WHITE

Specifies the color light white.

Click to summarize M_COLOR_MAGENTA

Specifies the color magenta.

Click to summarize M_COLOR_RED

Specifies the color red.

Click to summarize M_COLOR_WHITE

Specifies the color white.

Click to summarize M_COLOR_YELLOW

Specifies the color yellow.

Click to summarize Value

Specifies a grayscale value. The buffer can be a 1-band or multi-band buffer. The specified value is cast to the buffer type and depth.

The default value is -1. For example, this value is equivalent to 0xFF for an 8-bit buffer.

Note that a grayscale value can be any integer or floating-point number. If the given value exceeds the range of the possible values that can be stored in each band of the destination buffer, the least significant bits of the value are used.

(summarize)
Click to summarize M_DRAW_DIRECTION

Sets how to draw (render) an arrow pointing in the direction with which a graphic was defined. This only affects graphics that are not filled, and that have such a direction as part of their definition; for example, arc, ellipse, line, rectangle, and ring. MIL ignores this setting for other graphics. This setting does not affect drawings created using a processing or analysis module draw function (M...Draw()).

For more information about how the directions are drawn for different graphics, see the Drawing graphics in a calibrated image subsection of the Drawing graphics section of Chapter 24: Generating graphics. INQ

(summarize)
Click to summarize M_DEFAULT

Same as M_NONE.

Click to summarize M_NONE

Specifies that no direction is drawn.

Click to summarize M_PRIMARY_DIRECTION

Specifies to draw an arrow showing the primary direction of the graphic. For example, if you draw the primary direction for a rectangle defined with MgraRectAngle(), the arrow will point in the angular direction set with the Angle parameter.

(summarize)
Click to summarize M_PRIMARY_DIRECTION + M_SECONDARY_DIRECTION

Specifies to draw an arrow showing both the primary and secondary direction of the graphic.

Click to summarize M_SECONDARY_DIRECTION

Specifies to draw an arrow showing the secondary direction of the graphic. For example, a rectangle's secondary direction is equal to its PrimaryDirection - 90°.

(summarize)
Click to summarize M_DRAW_OFFSET_X

Sets the offset to subtract from the source X-coordinates before rendering the graphic.

This is useful to take results obtained relative to an offset and draw them relative to the top-left corner of the destination image of a draw operation. INQ

(summarize)
Click to summarize M_DEFAULT

Specifies the default value; the default value is 0.0 pixels.

Click to summarize Value

Specifies the X-coordinate offset to subtract, in pixels.

Click to summarize M_DRAW_OFFSET_Y

Sets the offset to subtract from the source Y-coordinates before rendering the graphic.

This is useful to take results obtained relative to an offset and draw them relative to the top-left corner of the destination image of a draw operation. INQ

(summarize)
Click to summarize M_DEFAULT

Specifies the default value; the default value is 0.0 pixels.

Click to summarize Value

Specifies the Y-coordinate offset to subtract, in pixels.

Click to summarize M_DRAW_ZOOM_X

Sets the scale factor in the X-direction. This value is useful to zoom drawings of results. INQ

(summarize)
Click to summarize M_DEFAULT

Specifies the default value; the default value is 1.0.

Click to summarize Value > 0

Specifies the scale factor in the X-direction.

Click to summarize M_DRAW_ZOOM_Y

Sets the scale factor in the Y-direction. This value is useful to zoom drawings of results. INQ

(summarize)
Click to summarize M_DEFAULT

Specifies the default value; the default value is 1.0.

Click to summarize Value > 0

Specifies the scale factor in the Y-direction.

Click to summarize M_FIXTURE

Sets which camera calibration information to use when rendering (drawing or displaying) a graphic that has been defined in world units (M_INPUT_UNITS set to M_WORLD).

MIL can interpret positioning and dimensioning information of the graphic solely using the camera calibration information associated with the destination image buffer (or the image buffer selected to the display). Alternatively, you can have MIL use the explicitly specified camera calibration information (M_GRAPHIC_SOURCE_CALIBRATION). If only the destination of the graphic is associated with camera calibration information, it will be used to render the graphic. However, if both are available, you should use M_FIXTURE to identify with respect to which of their relative coordinate systems has positioning and dimensioning information been specified. If with respect to that of the destination camera calibration information (M_USE_DESTINATION_FIRST), the source camera calibration information is not used. If with respect to that of the source camera calibration information (M_USE_SOURCE_FIRST), positions and dimensions are transformed from this relative coordinate system to the absolute coordinate system; then, since it is assumed that there is only one absolute coordinate system, these positions and dimensions are transformed from the absolute coordinate system to the pixel coordinate system, using the destination camera calibration information. INQ

(summarize)
Click to summarize M_USE_DESTINATION_FIRST

Specifies that the camera calibration information of the destination is used when rendering the graphic. In this case, the graphic follows the relative coordinate system of the destination. This is most often used when working with ROIs.

This is the default value.

(summarize)
Click to summarize M_USE_SOURCE_FIRST

Specifies that the camera calibration information of the graphic, set with M_GRAPHIC_SOURCE_CALIBRATION, is used when rendering the graphic. In this case, the graphic is positioned independent of the destination's relative coordinate system; the destination camera calibration information is only used, if available, for the world to pixel mapping.

(summarize)
Click to summarize M_GRAPHIC_CONVERSION_MODE

Sets how the shape of a graphic, defined in world units, is converted to pixels (rendered).

Drawings created using a processing or analysis module draw function (M...Draw()) ignore this control type; instead the graphics are drawn using settings defined in their respective modules. INQ

(summarize)
Click to summarize M_PRESERVE_SHAPE_AVERAGE

Specifies to render the graphic so that its shape is preserved, even if it means not respecting the camera calibration information exactly. For example, a rectangle in world units will be mapped to a rectangle in pixel units, even if the accurate conversion would not yield a rectangle.

This setting applies only to dots (MgraDot() and MgraDots()) and to rectangles (MgraRect() and MgraRectAngle()).

(summarize)
Click to summarize M_RESHAPE_FOLLOWING_DISTORTION

Specifies that all points along the contour of the graphic will be converted using the camera calibration information, following any non-linear distortion. This mode is slower, but more accurate.

(summarize)
Click to summarize M_RESHAPE_FROM_POINTS

Specifies that only a few key points or features will be converted using the camera calibration information; from these converted points, the rest of the graphic will be rendered respecting the shape of the graphic. For example, when converting a line segment from world to pixel units, the two end points are mapped to pixel units, and then a straight line is drawn connecting these two points, ignoring any non-linear distortion in-between. This is the fastest mode, and is accurate as long as there is only linear distortion.

This is the default value.

(summarize)
Click to summarize M_GRAPHIC_SOURCE_CALIBRATION

Sets the camera calibration information to use to interpret positioning and dimensioning information of a graphic defined in world units (M_INPUT_UNITS set to M_WORLD), if you have set M_FIXTURE to M_USE_SOURCE_FIRST. If the destination also has camera calibration information, positioning and dimensioning information are transformed from the relative coordinate system of the source camera calibration information to its absolute coordinate system. Then, since it is assumed that there is only one absolute coordinate system, the dimensions and positions are transformed from the absolute coordinate system to the pixel coordinate system, using the destination camera calibration information.

Note that this camera calibration information is also used if you have set M_FIXTURE to M_USE_DESTINATION_FIRST, but the graphic is drawn in an image buffer that has no camera calibration information. INQ

(summarize)
Click to summarize M_NULL

Specifies that no source camera calibration information is available to interpret positioning and dimensioning information of a graphic defined in world units, except when the graphic is drawn using the draw function (M...Draw()) of a processing or analysis module; in this case, the camera calibration information of the drawn setting or result will be used.

This is the default value.

(summarize)
Click to summarize MIL Identifier

Specifies the identifier of a camera calibration context, image buffer or processing or analysis module result buffer, whose camera calibration information to use; this object is only associated with the 2D graphics context, not copied. If, for example, the relative coordinate system changes after using M_GRAPHIC_SOURCE_CALIBRATION, it will be reflected in the camera calibration information that is used.

(summarize)
Click to summarize M_INPUT_UNITS

Sets the units with which to interpret the graphic's position and dimensional information. This essentially sets the input coordinate system to use. INQ

(summarize)
Click to summarize M_DISPLAY

Specifies to interpret the values in pixel units that, unlike M_PIXEL, are not altered when the display is panned or zoomed. This can be useful if, for example, you always want to display the camera's current frame rate at the top-left corner. M_DISPLAY must only be specified when drawing in a 2D graphics list and the 2D graphics list is used to annotate the display non-destructively, using MdispControl() with M_ASSOCIATED_GRAPHIC_LIST_ID.

(summarize)
Click to summarize M_PIXEL

Specifies to interpret the values in pixel units, with respect to the pixel coordinate system. If you are drawing in a 2D graphics list and the 2D graphics list is used to annotate the display non-destructively (M_ASSOCIATED_GRAPHIC_LIST_ID), the graphic will be zoomed and panned according to the display's zoom and pan settings. This is not the case when setting the units to M_DISPLAY, which also uses pixel units.

This is the default value.

(summarize)
Click to summarize M_WORLD

Specifies to interpret the values in world units, with respect to the relative coordinate system. If you are drawing in a 2D graphics list and the 2D graphics list is used to annotate the display non-destructively (M_ASSOCIATED_GRAPHIC_LIST_ID), the graphic will be zoomed and panned according to the display's zoom and pan settings.

When using M_WORLD, a graphic's coordinates are interpreted as real-world values and transformed to pixel values before being drawn or associated with the display non-destructively.

Note that using the camera calibration information associated with the image (M_WORLD), ensures that whenever the relative coordinate system moves (for example, with McalRelativeOrigin(), McalSetCoordinateSystem(), or McalFixture()), the non-destructive annotations move accordingly. In this case, the position of the graphics is set according to the position of the relative coordinate system.

If world units are specified, drawing a graphic or calling MgraFill() generates an error if the operation is performed on an uncalibrated image and M_GRAPHIC_SOURCE_CALIBRATION is set to M_NULL.

(summarize)

The following ControlType and corresponding ControlValue parameter settings are used to change the 2D graphics context settings that affect the interactivity of a graphic, drawn in a 2D graphics list associated with a display, when interactive mode is enabled (MdispControl() with M_GRAPHIC_LIST_INTERACTIVE set to M_ENABLE).

Note, you can still change these settings even if interactive mode is disabled, but they will have no effect until interactive mode is enabled. Adding a graphic that does not support one of the following settings to a 2D graphics list will automatically assign the setting of the graphic to M_DISABLE.

function map For settings that apply to graphics when interactive mode is enabled
Click to summarizeControlType Description
ControlValue
Click to summarize M_EDITABLE

Sets whether a graphic can be edited via user interaction in an interactive display. If a graphic is not visible or if it is not selectable, it is not editable and this setting is ignored.

This setting applies to all types of graphics except dots (MgraDots()), text (MgraText()), sets of finite length lines (MgraLines() with M_LINE_LIST), and drawings created using a processing or analysis module draw function (M...Draw()). INQ

(summarize)
Click to summarize M_DISABLE

Specifies that the graphic cannot be edited via user interaction. Note that the graphic can still be modified using MgraControlList().

(summarize)
Click to summarize M_ENABLE

Specifies that the graphic can be edited via user interaction.

This is the default value.

(summarize)
Click to summarize M_RESIZABLE

Sets whether a graphic can be resized via user interaction in an interactive display. If a graphic is not visible, not selectable, or not editable, it is not resizable and this setting is ignored.

This setting applies to all types of graphics except a dot (MgraDot()), dots (MgraDots()), text (MgraText()), sets of finite length lines (MgraLines() with M_LINE_LIST), and drawings created using a processing or analysis module draw function (M...Draw()). INQ

(summarize)
Click to summarize M_DISABLE

Specifies that the graphic cannot be resized via user interaction and the resize handles will not be displayed if a graphic is selected. Note that the graphic can still be resized using MgraControlList().

(summarize)
Click to summarize M_ENABLE

Specifies that the graphic can be resized via user interaction by clicking and dragging one of the resize handles.

This is the default value.

(summarize)
Click to summarize M_ROTATABLE

Sets whether a graphic can be rotated via user interaction in an interactive display. If a graphic is not visible, not selectable, or not editable, it is not rotatable and this setting is ignored.

This setting applies to all types of graphics except a dot (MgraDot()), dots (MgraDots()), text (MgraText()), sets of finite length lines (MgraLines() with M_LINE_LIST), and drawings created using a processing or analysis module draw function (M...Draw()). INQ

(summarize)
Click to summarize M_DISABLE

Specifies that the graphic cannot be rotated via user interaction and the rotate handle will not be displayed if a graphic is selected. Note that the graphic can still be rotated using MgraControlList().

(summarize)
Click to summarize M_ENABLE

Specifies that the graphic can be rotated via user interaction by clicking and dragging the rotation handle.

This is the default value.

(summarize)
Click to summarize M_SELECTABLE

Sets whether a graphic can be selected via user interaction in an interactive display. If a graphic is not visible, it is not selectable and this setting is ignored.

This setting applies to all graphics except dots (MgraDots()) and sets of finite length lines (MgraLines() with M_LINE_LIST). INQ

(summarize)
Click to summarize M_DISABLE

Specifies that the graphic cannot be selected via user interaction. Note that the selection can still be changed using MgraControlList(), but it will not be apparent on the display.

(summarize)
Click to summarize M_ENABLE

Specifies that the graphic can be selected by clicking on it.

This is the default value.

(summarize)
Click to summarize M_SPECIFIC_FEATURES_EDITABLE

Sets whether a graphic can be modified via user interaction in an interactive display using handles that are specific to its graphic type. If a graphic is not visible, not selectable, or not editable, it cannot be modified using its type-specific handles and this setting is ignored.

This setting applies to all types of graphics except dots (MgraDots()), text (MgraText()), sets of finite length lines (MgraLines() with M_LINE_LIST), and drawings created using a processing or analysis module draw function (M...Draw()). INQ

(summarize)
Click to summarize M_DISABLE

Specifies that the graphic cannot be modified via user interaction and its specific feature handles will not be displayed if a graphic is selected. Note that the graphic can still be modified using MgraControlList().

(summarize)
Click to summarize M_ENABLE

Specifies that the graphic can be modified via user interaction by clicking and dragging one of the specific feature handles.

This is the default value.

(summarize)
Click to summarize M_TRANSLATABLE

Sets whether a graphic can be moved (translated) via user interaction in an interactive display. If a graphic is not visible, not selectable, or not editable, it is not movable and this setting is ignored.

This setting applies to all types of graphics except dots (MgraDots()), text (MgraText()), sets of finite length lines (MgraLines() with M_LINE_LIST), and drawings created using a processing or analysis module draw function (M...Draw()). INQ

(summarize)
Click to summarize M_DISABLE

Specifies that the graphic cannot be moved via user interaction. Note that the graphic can still be moved using MgraControlList().

(summarize)
Click to summarize M_ENABLE

Specifies that the graphic can be moved via user interaction by clicking and dragging the graphic, its selection box, or its center handle.

This is the default value.

(summarize)
Click to summarize M_VISIBLE

Sets whether a graphic is rendered on the display. Note that a graphic that is not visible cannot be affected by any user interaction in an interactive display.

This setting applies to all types of graphics. INQ

(summarize)
Click to summarize M_FALSE

Specifies that the graphic is not rendered.

Click to summarize M_TRUE

Specifies that the graphic is rendered.

This is the default value.

(summarize)

The following ControlType and corresponding ControlValue parameter settings are used to change 2D graphics context settings that apply only to text (MgraText()).

function map For settings that apply only to text
Click to summarizeControlType Description
ControlValue
Click to summarize M_BACKCOLOR +

Sets the background color. INQ

(summarize)
Click to summarize
M_RGB888(
MIL_INT Red,
MIL_INT Green,
MIL_INT Blue
)

Specifies an RGB value when using the 2D graphics context to draw in an 8-bit, 3-band buffer. The red, green, and blue values must be values between 0 and 255, inclusive.

When drawing in a 16-bit or 32-bit multi-band buffer, the components of the RGB value are cast to the type of the destination buffer's bands.

To specify a 16-bit or 32-bit color component, use MgraControl() with M_BACKCOLOR combined with the appropriate constant (M_RED, M_GREEN, or M_BLUE).

(summarize)
Parameters

Specifies the red component, as a value between 0 and 255.

Specifies the green component, as a value between 0 and 255.

Specifies the blue component, as a value between 0 and 255.

Click to summarize M_COLOR_BLACK

Specifies the color black.

Click to summarize M_COLOR_BLUE

Specifies the color blue.

Click to summarize M_COLOR_BRIGHT_GRAY

Specifies the color bright gray.

Click to summarize M_COLOR_CYAN

Specifies the color cyan.

Click to summarize M_COLOR_DARK_BLUE

Specifies the color dark blue.

Click to summarize M_COLOR_DARK_CYAN

Specifies the color dark cyan.

Click to summarize M_COLOR_DARK_GREEN

Specifies the color dark green.

Click to summarize M_COLOR_DARK_MAGENTA

Specifies the color dark magenta.

Click to summarize M_COLOR_DARK_RED

Specifies the color dark red.

Click to summarize M_COLOR_DARK_YELLOW

Specifies the color dark yellow.

Click to summarize M_COLOR_GRAY

Specifies the color gray.

Click to summarize M_COLOR_GREEN

Specifies the color green.

Click to summarize M_COLOR_LIGHT_BLUE

Specifies the color light blue.

Click to summarize M_COLOR_LIGHT_GRAY

Specifies the color light gray.

Click to summarize M_COLOR_LIGHT_GREEN

Specifies the color light green.

Click to summarize M_COLOR_LIGHT_WHITE

Specifies the color light white.

Click to summarize M_COLOR_MAGENTA

Specifies the color magenta.

Click to summarize M_COLOR_RED

Specifies the color red.

Click to summarize M_COLOR_WHITE

Specifies the color white.

Click to summarize M_COLOR_YELLOW

Specifies the color yellow.

Click to summarize Value

Specifies a grayscale value. The buffer can be a 1-band or multi-band buffer. The specified value is cast to the buffer type and depth.

The default value is 0.

Note that a grayscale value can be any integer or floating-point number. If the given value exceeds the range of the possible values that can be stored in each band of the destination buffer, the least significant bits of the value are used.

(summarize)
Click to summarize M_BACKGROUND_MODE

Sets whether to fill the text's background. INQ

(summarize)
Click to summarize M_OPAQUE

Specifies that the background will be filled with the current background color before drawing text.

This is the default value.

(summarize)
Click to summarize M_TRANSPARENT

Specifies not to change the background before drawing text. This creates a transparent background for printed characters.

(summarize)
Click to summarize M_FONT_AUTO_SELECT

Sets whether MIL should search for a suitable font to draw text if the currently selected font (MgraFont()) is a TrueType font that does not support the character code. MIL will first attempt to make its selection from already used fonts, and then from system fonts. INQ

(summarize)
Click to summarize M_DISABLE

Specifies that MIL will not search for a suitable font. An error is returned if the character code cannot be drawn using the current TrueType font.

(summarize)
Click to summarize M_ENABLE

Specifies that MIL will search for a suitable font.

This is the default value.

(summarize)
Click to summarize M_FONT_SIZE

Sets the size to draw text when using a TrueType font. When using a bitmap font, use M_FONT_X_SCALE and M_FONT_Y_SCALE to set the font size. INQ

(summarize)
Click to summarize Value >= 1

Specifies the text's font size, in points.

The default value is 12-point font.

(summarize)
Click to summarize M_FONT_X_SCALE

Sets the font's horizontal scaling factor. This setting only applies to bitmap fonts. For TrueType fonts, use M_FONT_SIZE to set the font size. INQ

(summarize)
Click to summarize Value > 0

Specifies the factor by which to multiply the width of the font's characters. Note that using a font with a scale of 1.0 accelerates text drawing.

The default value is 1.0.

(summarize)
Click to summarize M_FONT_Y_SCALE

Sets the font's vertical scaling factor. This setting only applies to bitmap fonts. For TrueType fonts, use M_FONT_SIZE to set the font size. INQ

(summarize)
Click to summarize Value > 0

Specifies the factor by which to multiply the height of the font's characters. Note that using a font with a scale of 1.0 accelerates text drawing.

The default value is 1.0.

(summarize)
Click to summarize M_TEXT_ALIGN_HORIZONTAL

Sets the horizontal alignment of text.

The alignment is relative to the point at which the text starts, as specified with MgraText(). INQ

(summarize)
Click to summarize M_CENTER

Specifies that text is horizontally centered.

Click to summarize M_LEFT

Specifies that text is left-aligned.

This is the default value.

(summarize)
Click to summarize M_RIGHT

Specifies that text is right-aligned.

Click to summarize M_TEXT_ALIGN_VERTICAL

Sets the vertical alignment of text.

The alignment is relative to the point at which the text starts, as specified with MgraText(). INQ

(summarize)
Click to summarize M_BOTTOM

Specifies that text is bottom-aligned.

Click to summarize M_CENTER

Specifies that text is vertically centered.

Click to summarize M_TOP

Specifies that text is top-aligned.

This is the default value.

(summarize)
Click to summarize M_TEXT_BORDER

Sets borders around the text.

Note that the possible settings can be combined. For example, to draw a box around the text, specify M_TOP + M_BOTTOM + M_LEFT + M_RIGHT. INQ

(summarize)
Click to summarize M_BOTTOM

Specifies that a line is drawn underneath the text.

Click to summarize M_LEFT

Specifies that a line is drawn to the left of the text.

Click to summarize M_NONE

Specifies that no border is drawn around the text. This setting cannot be combined with any other setting.

This is the default value.

(summarize)
Click to summarize M_RIGHT

Specifies that a line is drawn to the right of the text.

Click to summarize M_TOP

Specifies that a line is drawn above the text.

Click to summarize M_TEXT_DIRECTION

Sets the direction to draw text when using a TrueType font. INQ

(summarize)
Click to summarize M_LEFT_TO_RIGHT

Specifies that text will be drawn from left to right.

This is the default value.

(summarize)
Click to summarize M_RIGHT_TO_LEFT

Specifies that text will be drawn from right to left.

Combination values for M_BACKCOLOR; M_COLOR.

You can add one of the following values to the above-mentioned values to specify the color component.

function map For specifying the color component (for 16- or 32-bit multi-band buffers)
Click to summarizeCombination value Description
Click to summarize M_BLUE

Specifies the blue color component.

Click to summarize M_GREEN

Specifies the green color component.

Click to summarize M_RED

Specifies the red color component.

Compilation information
Header Include mil.h.
Library Use mil.lib.
DLL Requires mil.dll.
DEFAULT COLOR COLOR BLACK COLOR BLUE COLOR BRIGHT GRAY COLOR CYAN COLOR DARK BLUE COLOR DARK CYAN COLOR DARK GREEN COLOR DARK MAGENTA COLOR DARK RED COLOR DARK YELLOW COLOR GRAY COLOR GREEN COLOR LIGHT BLUE COLOR LIGHT GRAY COLOR LIGHT GREEN COLOR LIGHT WHITE COLOR MAGENTA COLOR RED COLOR WHITE COLOR YELLOW DRAW DIRECTION DEFAULT NONE PRIMARY DIRECTION PRIMARY DIRECTION M SECONDARY DIRECTION SECONDARY DIRECTION DRAW OFFSET X DEFAULT DRAW OFFSET Y DEFAULT DRAW ZOOM X DEFAULT DRAW ZOOM Y DEFAULT FIXTURE USE DESTINATION FIRST USE SOURCE FIRST GRAPHIC CONVERSION MODE PRESERVE SHAPE AVERAGE RESHAPE FOLLOWING DISTORTION RESHAPE FROM POINTS GRAPHIC SOURCE CALIBRATION NULL NULL INPUT UNITS DISPLAY PIXEL WORLD EDITABLE DISABLE ENABLE RESIZABLE DISABLE ENABLE ROTATABLE DISABLE ENABLE SELECTABLE DISABLE ENABLE SPECIFIC FEATURES EDITABLE DISABLE ENABLE TRANSLATABLE DISABLE ENABLE VISIBLE FALSE TRUE BACKCOLOR COLOR BLACK COLOR BLUE COLOR BRIGHT GRAY COLOR CYAN COLOR DARK BLUE COLOR DARK CYAN COLOR DARK GREEN COLOR DARK MAGENTA COLOR DARK RED COLOR DARK YELLOW COLOR GRAY COLOR GREEN COLOR LIGHT BLUE COLOR LIGHT GRAY COLOR LIGHT GREEN COLOR LIGHT WHITE COLOR MAGENTA COLOR RED COLOR WHITE COLOR YELLOW BACKGROUND MODE OPAQUE TRANSPARENT FONT AUTO SELECT DISABLE ENABLE FONT SIZE FONT X SCALE FONT Y SCALE TEXT ALIGN HORIZONTAL CENTER LEFT RIGHT TEXT ALIGN VERTICAL BOTTOM CENTER TOP TEXT BORDER BOTTOM LEFT NONE RIGHT TOP TEXT DIRECTION LEFT TO RIGHT RIGHT TO LEFT BLUE GREEN RED