diff options
| author | scuri <scuri> | 2010-02-27 21:49:25 +0000 | 
|---|---|---|
| committer | scuri <scuri> | 2010-02-27 21:49:25 +0000 | 
| commit | e78601f7c788d1206aa60a57a169bb6d02b748bd (patch) | |
| tree | 83adad627e1d74463c8c2f162b3edc50c797f269 /test/simple | |
| parent | 4ed27b8eecc984e0a139eef301da535936733b1d (diff) | |
Fixed: alpha transparency in CanvasArc and Bezier polygon in the IMAGERGB driver.
Diffstat (limited to 'test/simple')
| -rw-r--r-- | test/simple/simple.c | 23 | 
1 files changed, 17 insertions, 6 deletions
diff --git a/test/simple/simple.c b/test/simple/simple.c index d04b96c..6091eb6 100644 --- a/test/simple/simple.c +++ b/test/simple/simple.c @@ -1335,12 +1335,23 @@ void SimpleDrawTest(void)    cdBackground(CD_WHITE);    cdClear(); -  cdInteriorStyle(CD_SOLID); -  cdBegin(CD_FILL); -  cdVertex(w/4, h/4);  -  cdVertex(w/2-w/8, h/4);  -  cdVertex(w/2, h/2);  -  cdVertex(w/2-w/8, h/2);  +  //cdSetAttribute("ANTIALIAS", "0"); +  cdForeground(cdEncodeAlpha(cdEncodeColor(255, 0, 0), 100)); + +  cdfCanvasArc(cdActiveCanvas(), 255, 255, 100, 100, 0, 360); + +  cdLine(0, 0, 200, 200); + +  cdBegin(CD_BEZIER); +  cdVertex(100, 100);  +  cdVertex(150, 200);  +  cdVertex(180, 250);  +  cdVertex(180, 200);  +  cdVertex(180, 150);  +  cdVertex(150, 100);  +  cdVertex(300, 100);  +  cdEnd(); +    cdEnd();  }  | 
