Module New
Module New
Example:
Polygons
• To draw an outline polygon ,we can either specify a polyline that closes on
itself by making the first and last vertices identical or specialized SRGP
call:
void SRGP_LineStyle(CONTINUOUS/DASHED/DOTTED/…linestyle);
void
SRGP_seFillStyle(SOLID/BITMAP_PATTERN_OPAQUE/
BITMAP_PATTERN_TRANSPARENT/
PIXMAP_PATTERN drawstyle);
• SOLID: produce a primitive uniformly filled with the current value of the color
attribute e.g. fig 1(e)
Fig 1
Bitmap fill pattrns are chosen fro table of available patterns by
spcifying
void SRGP_setFillBitmapPattern(int patternIndex);
Pen pattern for outline