From d117dc8f75933e4e2b780afbb2f50756c140bdea Mon Sep 17 00:00:00 2001 From: scuri Date: Fri, 18 Jun 2010 14:41:54 +0000 Subject: *** empty log message *** --- html/en/screenshots_src_c.html | 52 +++++++++++++++++++++++++++--------------- 1 file changed, 33 insertions(+), 19 deletions(-) (limited to 'html/en/screenshots_src_c.html') diff --git a/html/en/screenshots_src_c.html b/html/en/screenshots_src_c.html index bf33397..ec9f24a 100644 --- a/html/en/screenshots_src_c.html +++ b/html/en/screenshots_src_c.html @@ -9,6 +9,7 @@ p { margin-top: 0; margin-bottom: 0; + font-family: "Courier New", Courier, monospace; } .style1 { color: #0000FF; @@ -16,6 +17,12 @@ .style2 { color: #FF00FF; } +.style3 { + font-family: Arial, Helvetica, sans-serif; +} +.style4 { + text-align: left; +} @@ -25,6 +32,13 @@ +

Get the source code here: +simple.zip.

+

 

+ + + +

void SimpleDraw(cdCanvas* canvas)

{ @@ -56,9 +70,9 @@ cdCanvasClear( 

/* Draw a reactangle and a polyline at the bottom-left area,

-

    using a thick line with transparency.

-

    Notice that transparency is only supported in a few drivers,

-

    and line join is not supported in the IMAGERGB driver. */

+

   using a thick line with transparency.

+

   Notice that transparency is only supported in a few drivers,

+

   and line join is not supported in the IMAGERGB driver. */

cdCanvasLineWidth(canvas, 3);

@@ -103,7 +117,7 @@ cdCanvasEnd(c

/* Draw the red diagonal line with a custom line style.

-

    Notice that line styles are not supported in the IMAGERGB driver. */

+

   Notice that line styles are not supported in the IMAGERGB driver. */

cdCanvasForeground(canvas, CD_RED);

@@ -134,7 +148,7 @@ h- /* Draw the blue diagonal line with a pre-defined line style.

-

    Notice that the pre-defined line style is dependent on the driver. */

+

   Notice that the pre-defined line style is dependent on the driver. */

cdCanvasForeground(canvas, CD_BLUE);

@@ -160,7 +174,7 @@ cdCanvasLineWidth(/* Draw an arc at bottom-left, and a sector at bottom-right.

-

    Notice that counter-clockwise orientation of both. */

+

   Notice that counter-clockwise orientation of both. */

cdCanvasInteriorStyle(canvas, CD_SOLID);

@@ -222,13 +236,13 @@ CD_BOLD,

 

/* Draw text at center, with orientation,

-

    and draw its bounding box.

-

    Notice that in some drivers the bounding box is not precise. */

+

   and draw its bounding box.

+

   Notice that in some drivers the bounding box is not precise. */

cdCanvasGetTextBounds(canvas, w/2, h/2, -"cdMin Draw ()", +"cdMin Draw (ηγν)", irect);

cdCanvasForeground(canvas, @@ -262,7 +276,7 @@ CD_BLUE); cdCanvasText(canvas, w/2, h/2, -"cdMin Draw ()"); +"cdMin Draw (ηγν)");

 

/* Prepare World Coordinates */

@@ -309,7 +323,7 @@ wdCanvasVectorCharSize(

 

/* Draw vector text, and draw its bounding box.

-

    We also use this text to show when we are using a contextplus driver. */

+

   We also use this text to show when we are using a contextplus driver. */

cdCanvasForeground(canvas, CD_RED); @@ -383,7 +397,7 @@ cdCanvasLineWidth(

 

/* Draw a filled path at center-right (looks like a weird fish).

-

    Notice that in PDF the arc is necessarily a circle arc, and not an ellipse. +

   Notice that in PDF the arc is necessarily a circle arc, and not an ellipse. */

cdCanvasForeground(canvas, CD_GREEN); @@ -544,7 +558,7 @@ h -

 

/* Draw all the line style possibilities at bottom.

-

    Notice that they have some small differences between drivers. */

+

   Notice that they have some small differences between drivers. */

cdCanvasLineWidth(canvas, 1);

@@ -596,7 +610,7 @@ w,

 

/* Draw all the hatch style possibilities in the top-left corner.

-

    Notice that they have some small differences between drivers. */

+

   Notice that they have some small differences between drivers. */

cdCanvasHatch(canvas, CD_VERTICAL);

@@ -659,8 +673,8 @@ h);

 

/* Draw 4 regions, in diamond shape,

-

    at top, bottom, left, right,

-

    using different interior styles. +

   at top, bottom, left, right,

+

   using different interior styles. */

 

/* At top, not filled polygon, notice that the last line style is used. */

@@ -847,9 +861,9 @@ h -

 

/* Adds a new page, or

-

    flushes the file, or

-

    flushes the screen, or

-

    swap the double buffer. */

+

   flushes the file, or

+

   flushes the screen, or

+

   swap the double buffer. */

cdCanvasFlush(canvas);

-- cgit v1.2.3