38 int black, white, blue;
68 if ( !(
cdLine( im, 0, 200, 799, 200 ) ) )
70 if ( !(
cdLine( im, 200, 0, 200, 399 ) ) )
72 if ( !(
cdLine( im, 600, 0, 600, 399 ) ) )
82 if ( !(
cdText( im, 200, 200,
"Text Left" ) ) )
88 if ( !(
cdText( im, 200, 200,
"Text Up" ) ) )
94 if ( !(
cdText( im, 200, 200,
"Text Down" ) ) )
100 if ( !(
cdText( im, 200, 200,
"Text Right" ) ) )
107 if ( !(
cdText( im, 600, 200,
"CGM Draw" ) ) )
113 if ( !(
cdText( im, 600, 200,
"CGM Draw" ) ) )
119 if ( !(
cdText( im, 600, 200,
"CGM Draw" ) ) )
125 if ( !(
cdText( im, 600, 200,
"CGM Draw" ) ) )
131 if ( !(
cdText( im, 600, 200,
"CGM Draw" ) ) )
143 if ( !(
cdText( im, 300, 300,
"CGM Draw" ) ) )
148 if ( !(
cdLine( im, 300, 300, 500, 300 ) ) )
150 if ( !(
cdLine( im, 300, 300, 340, 340 ) ) )
160 if ( !(
cdText( im, 5, 5,
"G. Edward Johnson" ) ) )
164 outf = fopen(
"cdtext.cgm",
"wb" );
175 printf(
"CGM Text Example!!!\n" );
int cdSetLineAttrib(cdImagePtr im, int lntype, int lnwidth, int lncolor)
int cdImageCgm(cdImagePtr im, FILE *out)
int cdImageDestroy(cdImagePtr im)
int cdText(cdImagePtr im, int x, int y, const char *ts)
int cdSetTextAttrib(cdImagePtr im, int font, int color, int height)
int cdSetTextOrient(cdImagePtr im, int xup, int yup, int xbase, int ybase)
int cdLine(cdImagePtr im, int x1, int y1, int x2, int y2)
int cdSetTextPath(cdImagePtr im, int tpath)
int cdImageColorAllocate(cdImagePtr im, int r, int g, int b)
cdImagePtr cdImageCreate(int sx, int sy)