Mgd (Graphic Drawing) Functions

:Associate with "Mgd (Graphic Drawing) Functions" More...

Functions

int Mgd3dDepthInit (MgdDISPLAY display)
int Mgd3dDepthSetFunction (MgdGC gc, float xcoeff, float ycoeff, float zconst , bool isPerspective)
ERRVALUE MgdChangeColorMap (MgdDISPLAY display, COLMAPINFO *colmapinfo)
ERRVALUE MgdCreateGC (MGD_DISPLAY *display, MGD_GC **gc)
ERRVALUE MgdDestroyGC (MGD_GC *gc)
ERRVALUE MgdDrawIcon (MgdGC gc, INT32 x, INT32 y, MICON icon, UINT32 flags)
ERRVALUE MgdDrawLineStyleSample (MgdGC gc, int shandle, const LINESTYLE *style, const LRECT2D *rect, UINT32 flags)
ERRVALUE MgdDrawPointStyleSample (MgdGC gc, int shandle, const POINTSTYLE *style, const LRECT2D *rect, UINT32 flags)
ERRVALUE MgdDrawPolyStyleSample (MgdGC gc, int shandle, const POLYSTYLE *style, const LRECT2D *rect, UINT32 flags)
double MgdGetPixelSizeMM (MgdDISPLAY display)
void MgdGetPixelSizeXYMM (MgdDISPLAY display, double *xsize, double *ysize)
ERRVALUE MgdImageBegin (MgdGC gc, INT32 x, INT32 y, INT32 width, INT32 height, UINT32 colorspace, COLMAPINFO *colmapinfo=0, UINT32 flags=0)
ERRVALUE MgdImageEnd (MgdGC gc, UINT32 flags=0)
ERRVALUE MgdInit (MgdDISPLAY *display, DISPLAYINFO *dispinfo, COLMAPINFO *colmapinfo, int(*FillSpan)(MgdGC, INT32, INT32, INT32))
ERRVALUE MgdInitMem24 (MgdDISPLAY *display, INT32 width, INT32 height, double mmPerPixel, UINT32 flags=MGDMEM24_BGR)
ERRVALUE MgdInitRaster (MgdDISPLAY *display, int fhandle, RVCRASTINFO *rastinfo)
ERRVALUE MgdInitRasterTransMask (MgdDISPLAY *display, int rfhandle, RVCRASTINFO &rastinfo, int mfhandle, RVCRASTINFO &maskinfo)
ERRVALUE MgdInitSimple (MgdDISPLAY *display, MgdGC *gc, INT32 width, INT32 height, int depth, int(*FillSpan)(MgdGC, INT32, INT32, INT32), void *funcdata)
ERRVALUE MgdInterfaceTextDrawString (MgdGC gc, INT32 x, INT32 y, const UNICODE *string, TEXTBASEORIGIN baseorigin=TEXTBASEORIGIN_FirstLine)
ERRVALUE MgdInterfaceTextDrawString (MgdGC gc, INT32 x, INT32 y, const char *string, TEXTBASEORIGIN baseorigin=TEXTBASEORIGIN_FirstLine)
ERRVALUE MgdInterfaceTextGetExtents (MgdGC gc, const UNICODE *string, int *width, int *height=0, int *ascent=0)
ERRVALUE MgdInterfaceTextGetExtents (MgdGC gc, const char *string, int *width, int *height=0, int *ascent=0)
UINT8MgdMem24GetImagePointer (MgdDISPLAY display, INT32 x, INT32 y)
int MgdMem24GetLineBytes (MgdDISPLAY display)
ERRVALUE MgdMem24ScanColorUse (MgdDISPLAY display, HISTORGB *historgb)
ERRVALUE MgdPutImageSpan (MgdGC gc, INT32 x, INT32 y, INT32 len, void *data, UINT8 *mask=0)
ERRVALUE MgdResetGC (MgdGC gc)
ERRVALUE MgdSetClipNone (MgdGC gc)
ERRVALUE MgdSetClipRectangle (MgdGC gc, INT32 xinit, INT32 yinit, INT32 xlast, INT32 ylast)
ERRVALUE MgdSetColor (MgdGC gc, const COLOR *color)
ERRVALUE MgdSetColorPixel (MgdGC gc, MgdPIXEL pixel)
ERRVALUE MgdSetLineAttributes (MgdGC gc, int capstyle, int joinstyle)
ERRVALUE MgdSetLineWidth (MgdGC gc, double width)
ERRVALUE MgdSetOutputScale (MgdGC gc, double mapscale)
ERRVALUE MgdSetPixelFunction (MgdGC gc, int function)
ERRVALUE MgdSetPixelSizeMM (MgdDISPLAY display, double xsize, double ysize)
ERRVALUE MgdSetPlaneMask (MgdGC gc, MgdPIXEL mask)
ERRVALUE MgdSetPlaneMaskRGB (MgdGC gc, UINT8 redmask, UINT8 greenmask, UINT8 bluemask)
ERRVALUE MgdSetStyleFill (MgdGC gc, const POLYSTYLE *style, const void *pattdata=0, INT32 pattbytes=0)
ERRVALUE MgdSetStyleLine (MgdGC gc, const LINESTYLE *style, const void *pattdata=0, INT32 pattbytes=0)
ERRVALUE MgdSetStylePoint (MgdGC gc, const POINTSTYLE *style, const void *pattdata=0, INT32 pattbytes=0)
ERRVALUE MgdStop (MgdDISPLAY display)
ERRVALUE MgdTextBlockComputeExtents (MgdGC gc, MgdTEXTBLOCK *textblock, DRECT2D *extents)
ERRVALUE MgdTextBlockDraw (MgdGC gc, MgdTEXTBLOCK *textblock)
ERRVALUE MgdTextBlockGetFirstString (MgdTEXTBLOCK *textblock, UNICODE *string, int maxlen)
ERRVALUE MgdTextDrawGlyph (MgdGC gc, double x, double y, double baseangle, UNICODE character, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextDrawString (MgdGC gc, DPOINT2D *basepoints, int numbasepoints, UINT32 baseflags, const UNICODE *string, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextDrawStringPart (MgdGC gc, DPOINT2D *basepoints, int numbasepoints, UINT32 baseflags, const UNICODE *string, int startindex=0, int endindex=0, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextDrawStringSimple (MgdGC gc, double x, double y, double baseangle, const UNICODE *string, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
int MgdTextGetFontByName (INIHANDLE ini, UNICODE *fontname, UNICODE *family, UINT32 StyleFlags, UINT32 *pStyleFlags)
ERRVALUE MgdTextGetFontInfo (int fhandle, MgdFONT *font)
ERRVALUE MgdTextGetFontMetrics (MgdGC gc, MgdFONTINFO *fontinfo)
ERRVALUE MgdTextGetFontName (int fonthandle, UNICODE *fontname)
ERRVALUE MgdTextGetStringExtents (MgdGC gc, DPOINT2D *basepoints, int numbasepoints, UINT32 baseflags, const UNICODE *string, DRECT2D *extents, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextGetStringExtentsJustified (MgdGC gc, DPOINT2D *basepoints, int numbasepoints, UINT32 baseflags, const UNICODE *string, DRECT2D *extents, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextGetStringExtentsSimple (MgdGC gc, double x, double y, double baseangle, const UNICODE *string, DRECT2D *extents, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextGetStringExtentsSimpleJustified (MgdGC gc, double x, double y, double baseangle, const UNICODE *string, DRECT2D *extents, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextGetStringMetrics (MgdGC gc, const UNICODE *string, MgdGLYPHINFO *glyphinfo, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextGetStringWidth (MgdGC gc, const UNICODE *string, double *width, MgdFONT::MODE mode=MgdFONT::MODE_UNICODE)
ERRVALUE MgdTextGetTTFName (INIHANDLE ini, const UNICODE *fontname, int nameid, UNICODE *name, int namesize, UINT32 *pStyleFlags)
int MgdTextOpenFont (const UNICODE *fontname)
ERRVALUE MgdTextSetColorPixels (MgdGC gc, MgdPIXEL fgpixel, MgdPIXEL bgpixel, MgdPIXEL ulpixel)
ERRVALUE MgdTextSetColors (MgdGC gc, COLOR *fgcolor, COLOR *bgcolor, COLOR *ulcolor=0)
ERRVALUE MgdTextSetEnhanceWidth (MgdGC gc, double width)
ERRVALUE MgdTextSetFont (MgdGC gc, int fonthandle)
void MgdTextSetFontByName (MgdGC gc, UNICODE *fontname)
ERRVALUE MgdTextSetHeight (MgdGC gc, double height)
ERRVALUE MgdTextSetShadowValues (MgdGC gc, double offset, double angle, UINT8 relative)
ERRVALUE MgdTextSetStrokeWidth (MgdGC gc, double width)
void MgdTextSetStyle (MgdGC gc, TEXTSTYLE *style)
ERRVALUE MgdTextSetUnderlineValues (MgdGC gc, double offset, double thickness)

Detailed Description

:Associate with "Mgd (Graphic Drawing) Functions"

Deprecated:
Use the MGD classes instead

Function Documentation

int Mgd3dDepthInit MgdDISPLAY  display  )  [inline]
 

Initialize depth buffer for 3D display.

Deprecated:
Use MGD class methods instead

Definition at line 710 of file mgd.h.

int Mgd3dDepthSetFunction MgdGC  gc,
float  xcoeff,
float  ycoeff,
float  zconst ,
bool  isPerspective
[inline]
 

Set depth function for 3D drawing.

This sets the depth function to: Z = X * xcoeff + Y * ycoeff + zconst.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
xcoeff  X coefficient
ycoeff  Y coefficient
zconst   Z constant

Definition at line 720 of file mgd.h.

ERRVALUE MgdChangeColorMap MgdDISPLAY  display,
COLMAPINFO colmapinfo
[inline]
 

Change color map associated with display.

Deprecated:
Use MGD class methods instead

Definition at line 732 of file mgd.h.

ERRVALUE MgdCreateGC MGD_DISPLAY display,
MGD_GC **  gc
[inline]
 

Create "graphic context" for generic display.

Note:
Passing NULL for the "display" parameter will create a "dummy" graphic context which can be used for functions such as MgdTextGetStringExtents() where no actual drawing is to be done. If attempts are made to draw with this dummy GC nothing will happen.
Deprecated:
Use MGD class methods instead
Parameters:
display  Graphic display
gc  Graphic context returned

Definition at line 745 of file mgd.h.

ERRVALUE MgdDestroyGC MGD_GC gc  )  [inline]
 

Destroy graphic context.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context

Definition at line 754 of file mgd.h.

ERRVALUE MgdDrawIcon MgdGC  gc,
INT32  x,
INT32  y,
MICON  icon,
UINT32  flags
[inline]
 

Draw single icon.

Flags: MgdICON_OriginTopLeft Top-Left of icon at specified coordinates (default) MgdICON_OriginTopCenter Top-Center MgdICON_OriginTopRight Top-Right MgdICON_OriginCenterLeft Center-Left MgdICON_OriginCenter Center icon MgdICON_OriginCenterRight Center-Right MgdICON_OriginBottomLeft Bottom-Left MgdICON_OriginBottomCenter Bottom-Right MgdICON_OriginBottomRight Bottom-Center MgdICON_Dimmed Draw "dimmed" icon

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
x  Origin X coordinate
y  Origin Y coordinate
icon  Icon to draw
flags  Flags

Definition at line 774 of file mgd.h.

ERRVALUE MgdDrawLineStyleSample MgdGC  gc,
int  shandle,
const LINESTYLE style,
const LRECT2D rect,
UINT32  flags
[inline]
 

Draw sample of line style in specified rectangle.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
shandle  Style object handle if pattern used
style  Style
rect  Rectangle to contain sample
flags  MgdSAMPLE_NoScaleToMap, MgdSAMPLE_ShrinkToFit, MgdSAMPLE_ZigZag

Definition at line 786 of file mgd.h.

ERRVALUE MgdDrawPointStyleSample MgdGC  gc,
int  shandle,
const POINTSTYLE style,
const LRECT2D rect,
UINT32  flags
[inline]
 

Draw sample of point style in specified rectangle.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
shandle  Style object handle if pattern used
style  Style
rect  Rectangle to contain sample
flags  MgdSAMPLE_NoScaleToMap, MgdSAMPLE_ShrinkToFit, MgdSAMPLE_ForceToFit

Definition at line 800 of file mgd.h.

ERRVALUE MgdDrawPolyStyleSample MgdGC  gc,
int  shandle,
const POLYSTYLE style,
const LRECT2D rect,
UINT32  flags
[inline]
 

Draw sample of polygon style in specified rectangle.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
shandle  Style object handle if pattern used
style  Style
rect  Rectangle to contain sample
flags  MgdSAMPLE_NoScaleToMap, MgdSAMPLE_RoundRect

Definition at line 812 of file mgd.h.

double MgdGetPixelSizeMM MgdDISPLAY  display  )  [inline]
 

Return pixel size for display in millimeters.

If the specified "display" is NULL or the mmPerPixel field is not initialized, .31 will be returned. This is the approximate size for 1024x768 on a 17 inch screen.

Deprecated:
Use MGD class methods instead
Parameters:
display  Graphic display

Definition at line 839 of file mgd.h.

void MgdGetPixelSizeXYMM MgdDISPLAY  display,
double *  xsize,
double *  ysize
[inline]
 

Retrieve X/Y pixel size in millimeters.

If the specified "display" is NULL or the mmPerPixel field is not initialized, .31 will be returned. This is the approximate size for 1024x768 on a 17 inch screen.

Deprecated:
Use MGD class methods instead
Parameters:
display  Graphic display
xsize  X pixel size returned
ysize  Y pixel size returned

Definition at line 850 of file mgd.h.

ERRVALUE MgdImageBegin MgdGC  gc,
INT32  x,
INT32  y,
INT32  width,
INT32  height,
UINT32  colorspace,
COLMAPINFO colmapinfo = 0,
UINT32  flags = 0
[inline]
 

Notify device of size/position/colors for image to be displayed.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
x  X coordinate of left edge
y  Y coordinate of top edge
width  Width of image in pixels
height  Height of image in pixels
colorspace  Colorspace for image
colmapinfo  Colormap for MgdCOLROSPACE_Indexed colorspaces

Definition at line 860 of file mgd.h.

ERRVALUE MgdImageEnd MgdGC  gc,
UINT32  flags = 0
[inline]
 

Notify device that image is complete.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context

Definition at line 875 of file mgd.h.

ERRVALUE MgdInit MgdDISPLAY display,
DISPLAYINFO dispinfo,
COLMAPINFO colmapinfo,
int(*  FillSpan)(MgdGC, INT32, INT32, INT32)
[inline]
 

Setup generic graphic display.

This function creates and initializes a simple generic graphic display. The programmer need only supply a single function to perform horizontal span "filling". This function will be called for all drawing operations. XXX

Deprecated:
Use MGD class methods instead
Parameters:
display  Display returned
dispinfo  Display information (size, depth, etc)
colmapinfo  Color map information, NULL if not specified
FillSpan  Function for drawing/filling horizontal spans

Definition at line 889 of file mgd.h.

ERRVALUE MgdInitMem24 MgdDISPLAY display,
INT32  width,
INT32  height,
double  mmPerPixel,
UINT32  flags = MGDMEM24_BGR
[inline]
 

Setup 24-bit memory-based display.

This "display" is implemented by allocating a memory image of linebytes*height bytes where 'linebytes' is computed by padding each row up to the next multiple of 4 bytes (not pixels). The data order is stored pixel-interleaved in the order specified by the flags. Use MgdMem24GetImagePointer() to retrieve the pointer to the memory image.

This display supports "transparency" effects via color mixing.

Deprecated:
Use MGD class methods instead
Parameters:
display  Display returned
width  Width in pixels
height  Height in pixels
mmPerPixel  Pixel size in millimeters
flags  MGDMEM24_BGR or MGDMEM24_RGB for color order within pixel

Definition at line 907 of file mgd.h.

ERRVALUE MgdInitRaster MgdDISPLAY display,
int  fhandle,
RVCRASTINFO rastinfo
[inline]
 

Setup raster-based display.

This function will create the raster if it does not exist (rastinfo->objectinode <= 0). The raster data type must at present be either RVCTYPE_RGB or RVCTYPE_BGR, though additional types could be implemented.

If the raster is smaller than a certain size (currently 1M cells) the data will be buffered in memory until the raster is closed.

Deprecated:
Use MGD class methods instead
Parameters:
display  Display returned
fhandle  RVC file handle, must be opened for writing
rastinfo  Raster object header

Definition at line 928 of file mgd.h.

ERRVALUE MgdInitRasterTransMask MgdDISPLAY display,
int  rfhandle,
RVCRASTINFO rastinfo,
int  mfhandle,
RVCRASTINFO maskinfo
[inline]
 

Setup raster-based display with transparency mask retention.

This function will create the raster if it does not exist (rastinfo->objectinode <= 0). The raster data type must at present be either RVCTYPE_RGB or RVCTYPE_BGR, though additional types could be implemented.

If the raster is smaller than a certain size (currently 1M cells) the data will be buffered in memory until the raster is closed.

Deprecated:
Use MGD class methods instead
Parameters:
display  Display returned
rfhandle  RVC file handle for raster, must be opened for writing
rastinfo  Raster object header
mfhandle  RVC file handle for mask, must be opened for writing
maskinfo  Mask object header

Definition at line 945 of file mgd.h.

ERRVALUE MgdInitSimple MgdDISPLAY display,
MgdGC gc,
INT32  width,
INT32  height,
int  depth,
int(*  FillSpan)(MgdGC, INT32, INT32, INT32),
void *  funcdata
[inline]
 

Setup "simple" display commonly used for reading/drawing in raster objects.

This function is commonly used when the "drawing" is to be done directly to a raster object. No color translation is available for the simple display, so use of MgdSetColor() or MgdSetColorPixel() is not recommended.

Deprecated:
Use MGD class methods instead
Parameters:
display  Display returned
gc  Graphic context returned
width  Width in pixels
height  Height in pixels
depth  Depth (can be 0 if managed in FillSpan)
funcdata  Function for drawing/fulling horizontal spans Value to set in MgdDISPLAY.privdata

Definition at line 961 of file mgd.h.

ERRVALUE MgdInterfaceTextDrawString MgdGC  gc,
INT32  x,
INT32  y,
const char *  string,
TEXTBASEORIGIN  baseorigin = TEXTBASEORIGIN_FirstLine
[inline]
 

Draw "interface text" char* string.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
x  X origin
y  Y origin
string  String
baseorigin  Origin location within text

Definition at line 1022 of file mgd.h.

ERRVALUE MgdInterfaceTextDrawString MgdGC  gc,
INT32  x,
INT32  y,
const UNICODE string,
TEXTBASEORIGIN  baseorigin = TEXTBASEORIGIN_FirstLine
[inline]
 

Draw "interface text" UNICODE* string.

This and related InterfaceText functions are used for rendering text through the underlying graphic system. For example, X text will be rendered using BDF fonts. For user interfaces this will generally be much faster than using the MgdText or MgdTextBlock functions, but is subject to the limitations of the user-selected font and style.

Flags TEXTBASEORIGIN_Baseline Base of first line (default) TEXTBASEORIGIN_Left Left of first line (default) TEXTBASEORIGIN_CenterHorz Center horizontally using longest line TEXTBASEORIGIN_Right Right of longest line TEXTBASEORIGIN_Top Top TEXTBASEORIGIN_CenterVert Center vertically all lines TEXTBASEORIGIN_Bottom Bottom of all lines TEXTBASEORIGIN_CenterVertFirstLine Center first line vertically

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
x  X origin
y  Y origin
string  String
baseorigin  Origin location within text

Definition at line 1010 of file mgd.h.

ERRVALUE MgdInterfaceTextGetExtents MgdGC  gc,
const char *  string,
int *  width,
int *  height = 0,
int *  ascent = 0
[inline]
 

Get extents of "interface text" char* string.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
string  String
width  Width of string in pixels returned, 0 if don't need
height  Height in pixels returned, 0 if don't need
ascent  Ascent of first line in pixels returned, 0 if don't need

Definition at line 1046 of file mgd.h.

ERRVALUE MgdInterfaceTextGetExtents MgdGC  gc,
const UNICODE string,
int *  width,
int *  height = 0,
int *  ascent = 0
[inline]
 

Get extents of "interface text" UNICODE* string.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
string  String
width  Width of string in pixels returned, 0 if don't need
height  Height in pixels returned, 0 if don't need
ascent  Ascent of first line in pixels returned, 0 if don't need

Definition at line 1034 of file mgd.h.

UINT8* MgdMem24GetImagePointer MgdDISPLAY  display,
INT32  x,
INT32  y
[inline]
 

Get pointer to location in pixel array for 24-bit memory-based display.

Returns:
Pointer to location in buffer, do not free.
Deprecated:
Use MGD class methods instead
Parameters:
display  Graphic display created by MgdInitMem24()
x  X coordinate
y  Y coordinate

Definition at line 1062 of file mgd.h.

int MgdMem24GetLineBytes MgdDISPLAY  display  )  [inline]
 

Get number of bytes per image line in 24-bit memory-based display.

Deprecated:
Use MGD class methods instead

Definition at line 1072 of file mgd.h.

ERRVALUE MgdMem24ScanColorUse MgdDISPLAY  display,
HISTORGB historgb
[inline]
 

Determine color usage for 24-bit memory-based display.

Deprecated:
Use MGD class methods instead
Parameters:
display  Graphic display created by MgdInitMem24()
historgb  Color usage histogram returned

Definition at line 1080 of file mgd.h.

ERRVALUE MgdPutImageSpan MgdGC  gc,
INT32  x,
INT32  y,
INT32  len,
void *  data,
UINT8 mask = 0
[inline]
 

Put horizontal "span" of image data on display.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
x  X coordinate of start of span
y  Y coordinate of span
len  Length of span in pixels,
data  Image data, must be of depth equal to MgdDISPLAY::ImageBytesPerPixel
mask  Transparency mask/blend control, 0 to draw all pixels

Definition at line 1090 of file mgd.h.

ERRVALUE MgdResetGC MgdGC  gc  )  [inline]
 

Reset all drawing parameters (except color) to defaults.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context

Definition at line 1103 of file mgd.h.

ERRVALUE MgdSetClipNone MgdGC  gc  )  [inline]
 

Set clipping to entire drawing extents.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context

Definition at line 1111 of file mgd.h.

ERRVALUE MgdSetClipRectangle MgdGC  gc,
INT32  xinit,
INT32  yinit,
INT32  xlast,
INT32  ylast
[inline]
 

Set clipping rectangle.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
xinit  Minimum X coordinate
yinit  Minimum Y coordinate
xlast  Maximum X coordinate
ylast  Maximum Y coordinate

Definition at line 1119 of file mgd.h.

ERRVALUE MgdSetColor MgdGC  gc,
const COLOR color
[inline]
 

Set drawing color.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
color  Color to use for drawing

Definition at line 1131 of file mgd.h.

ERRVALUE MgdSetColorPixel MgdGC  gc,
MgdPIXEL  pixel
[inline]
 

Set drawing color using given pixel value.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
pixel  Pixel value to use for drawing

Definition at line 1140 of file mgd.h.

ERRVALUE MgdSetLineAttributes MgdGC  gc,
int  capstyle,
int  joinstyle
[inline]
 

Set line "cap" and "join" styles.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
capstyle  MgdLINECAP_Round, MgdLINECAP_Butt, MgdLINECAP_NotLast
joinstyle  MgdLINEJOIN_Round, MgdLINEJOIN_Miter, MgdLINEJOIN_Bevel

Definition at line 1149 of file mgd.h.

ERRVALUE MgdSetLineWidth MgdGC  gc,
double  width
[inline]
 

Set line width in pixels.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
width  Width in pixels, 0.0 to draw thinnest possible line

Definition at line 1159 of file mgd.h.

ERRVALUE MgdSetOutputScale MgdGC  gc,
double  mapscale
[inline]
 

Set output scale for use by styles, symbols, patterns.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
mapscale  Inverse drawing scale (eg 24000 for 1:24000)

Definition at line 1168 of file mgd.h.

ERRVALUE MgdSetPixelFunction MgdGC  gc,
int  function
[inline]
 

Set pixel bitwise logical function.

Pixel functions MgdPIXELFUNC_Clear 0 MgdPIXELFUNC_And src AND dst MgdPIXELFUNC_AndReverse src AND NOT dst MgdPIXELFUNC_Copy src (default) MgdPIXELFUNC_AndInverted NOT src AND dst MgdPIXELFUNC_NoOp dst MgdPIXELFUNC_ExclusiveOr src XOR dst MgdPIXELFUNC_Or src OR dst MgdPIXELFUNC_Nor NOT src AND NOT dst MgdPIXELFUNC_Equiv NOT src XOR dst MgdPIXELFUNC_Invert NOT dst MgdPIXELFUNC_OrReverse src OR NOT dst MgdPIXELFUNC_CopyInverted NOT src MgdPIXELFUNC_OrInverted NOT src OR dst MgdPIXELFUNC_NotAnd NOT src OR NOT dst MgdPIXELFUNC_Set 1

Note:
Not all generic displays support pixel bitwise logical functions, so this setting may be ignored.
Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
function  Bitwise logical function

Definition at line 1198 of file mgd.h.

ERRVALUE MgdSetPixelSizeMM MgdDISPLAY  display,
double  xsize,
double  ysize
[inline]
 

Set pixel size for display in millimeters.

Deprecated:
Use MGD class methods instead
Parameters:
display  Graphic display
xsize  X pixel size to set
ysize  Y pixel size to set

Definition at line 1207 of file mgd.h.

ERRVALUE MgdSetPlaneMask MgdGC  gc,
MgdPIXEL  mask
[inline]
 

Set bitplane mask.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
mask  New plane mask

Definition at line 1217 of file mgd.h.

ERRVALUE MgdSetPlaneMaskRGB MgdGC  gc,
UINT8  redmask,
UINT8  greenmask,
UINT8  bluemask
[inline]
 

Set bitplane mask using separate RGB values (TrueColor displays only).

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
redmask  Red mask
greenmask  Green mask
bluemask  Blue mask

Definition at line 1226 of file mgd.h.

ERRVALUE MgdSetStyleFill MgdGC  gc,
const POLYSTYLE style,
const void *  pattdata = 0,
INT32  pattbytes = 0
[inline]
 

Set filling style including pattern.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
style  Style parameters, NULL to turn off pattern
pattdata  Pattern data if required
pattbytes  Number of bytes of pattern data

Definition at line 1237 of file mgd.h.

ERRVALUE MgdSetStyleLine MgdGC  gc,
const LINESTYLE style,
const void *  pattdata = 0,
INT32  pattbytes = 0
[inline]
 

Set line drawing style including pattern.

Note:
If the STYLEFLAG_ScaleToMap flag is set in style.StyleFlags the current output scale will be used to scale the pattern.
Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
style  Style parameters, NULL to turn off pattern
pattdata  Pattern data if required
pattbytes  Number of bytes of pattern data

Definition at line 1251 of file mgd.h.

ERRVALUE MgdSetStylePoint MgdGC  gc,
const POINTSTYLE style,
const void *  pattdata = 0,
INT32  pattbytes = 0
[inline]
 

Set point drawing style including pattern.

If the STYLEFLAG_ScaleToMap flag is set in style.StyleFlags the current output scale will be used to scale the pattern. If no pattern is specified the points will be drawn as boxes or circles depending on the StyleFlags.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
style  Style parameters, NULL to turn off pattern
pattdata  Pattern data if required
pattbytes  Number of bytes of pattern data

Definition at line 1266 of file mgd.h.

ERRVALUE MgdStop MgdDISPLAY  display  )  [inline]
 

Free all resources associated with generic display.

Deprecated:
Use MGD class methods instead
Parameters:
display  Graphic display

Definition at line 1277 of file mgd.h.

ERRVALUE MgdTextBlockComputeExtents MgdGC  gc,
MgdTEXTBLOCK textblock,
DRECT2D extents
[inline]
 

Compute extents of text block.

Deprecated:
Use MGD class methods instead
Parameters:
gc  Graphic context
textblock  Text block structure
extents  Extents in display pixels returned

Definition at line 1286 of file mgd.h.

ERRVALUE MgdTextBlockDraw