#define GSSetCustomLineMask(m1,m2,m3,m4,m5,m6,m7,m8) \
GR_SET_CUSTOM_LINE_MASK, (m1), (m2), (m3), (m4), (m5), (m6), (m7), \
(m8)
This
GString
creation macro specifies a new bitmap to use as the mask when drawing lines. It takes eight arguments, each a byte representing the pixels one one row.
Include: gstring.h
#define GSSetCustomLineStyle(index,count) \
GR_SET_CUSTOM_LINE_STYLE,(index),(count)
This
GString
creation macro sets a custom style, or "dottedness," to use when drawing lines. It takes two arguments: the first is the index into the pattern to use, the second is the number of dash pairs in the line style. Following this macro should appear a
DashPairArray
containing the line style's data.
Include: gstring.h
#define GSSetCustomTextMask(m1,m2,m3,m4,m5,m6,m7,m8) \
GR_SET_CUSTOM_TEXT_MASK, (m1), (m2), (m3), (m4), (m5), (m6), (m7),
(m8)
This
GString
creation macro specifies a custom bitmask to use when rendering text. It takes eight arguments, each a byte representing one row of pixel data.
Include: gstring.h
#define GSSetCustomTextPattern(pattern,size) \
GR_SET_CUSTOM_TEXT_PATTERN,GOC_PATTERN(pattern), GOC_WORD(size)
This
GString
creation macro sets a custom pattern to use when rendering text. It takes two arguments: a
GraphicPattern
value and the size of the pattern's data. Following this macro should appear the pattern's data.
Include: gstring.h
#define GSSetDefaultTransform() \
GR_SET_DEFAULT_TRANSFORM
This
GString
creation macro replaces the current coordinate transformation with the default coordinate transformation.
Include: gstring.h
#define GSSetFont(id,size_wbf) \
GR_SET_FONT,GOC_WBF(size_wbf),GOC_WORD(id)
This
GString
creation macro sets the font to use when rendering text. It takes two arguments: a
FontID
and a pointsize, expressed as a
WBFixed
number.
Include: gstring.h
#define GSSetFontWeight(weight) GR_SET_FONT_WEIGHT,GOC_WORD(weight)
This
GString
creation macro sets the
FontWeight
to use when rendering text.
Include: gstring.h
#define GSSetFontWidth(width) GR_SET_FONT_WIDTH,GOC_WORD(width)
This
GString
creation macro sets the
FontWidth
to use when rendering text.
Include: gstring.h
#define GSSetGStringBounds(x1_w,y1_w,x2_w,y2_w) \
GR_SET_GSTRING_BOUNDS,GOC_SW(x1_w),GOC_SW(y1_w), \
GOC_SW(x2_w),GOC_SW(y2_w)
This
GString
creation macro is useful for optimizations. When drawing your
GString
, the graphics system will take time to traverse your
GString
and determine its drawing bounds. If you compute those bounds ahead of time, you may pass them as arguments to this macro--if the graphics system encounters this
GString
element, it won't bother to traverse the rest of the
GString
, but will use the pre-computed values. Thus, if you use this
GString
element, you should place it at the beginning of your
GString
. The macro takes four word-length arguments, the coordinates of the bounds of the
GString
.
Include: gstring.h
#define GSSetLineAttr(r,g,b,mode,mask,width,end,join,style) \
GR_SET_LINE_ATTR,(CF_RGB),(r),(g),(b),(mask),(mode),(end),(join), \
(style) ,GOC_WWF(width)
This
GString
creation macro sets the
LineAttr
to use when drawing lines. It takes several arguments: the red, green, and blue components of the color to use; the ColorMapMode to use when trying to draw in an unavailable color, the drawing mask to use, the width, the
LineEnd
, the
LineJoin
, and the
LineStyle
.
Include: gstring.h
#define GSSetLineColor(r,g,b) GR_SET_LINE_COLOR,(r),(g),(b)
This
GString
creation macro sets the line-drawing color in terms of its red, green, and blue components.
Include: gstring.h
#define GSSetLineColorIndex(color) GR_SET_LINE_COLOR_INDEX, (color)
This
GString
creation macro sets the line-drawing color by specifying which entry in the palette to use.
Include: gstring.h
#define GSSetLineColorMap(mode) GR_SET_LINE_COLOR_MAP,(mode)
This
GString
creation macro sets the
ColorMapMode
to use when trying to draw lines with an unavailable color.
Include: gstring.h
GEOS SDK TechDocs
|
|
GSMoveTo() ...
|
GSSetLineEnd() ...