Fill color of the square

6 views
Skip to first unread message

MatteoM.

unread,
Jan 28, 2009, 7:37:02 AM1/28/09
to WPF Graphics Site group
The following SVG file rapresent a yellow filled square:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/
Graphics/SVG/1.1/DTD/svg11.dtd">
<!-- Creator: CorelDRAW -->
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve"
width="1200mm" height="900mm" style="shape-
rendering:geometricPrecision; text-rendering:geometricPrecision; image-
rendering:optimizeQuality; fill-rule:evenodd; clip-rule:evenodd"
viewBox="0 0 1000 500"
xmlns:xlink="http://www.w3.org/1999/xlink">
<defs>
<style type="text/css">
<![CDATA[
.str0 {stroke:#1F1A17;stroke-width:0.2}
.fil0 {fill:#FFF500}
]]>
</style>
</defs>
<g id="Livello_x0020_1">
<metadata id="CorelCorpID_0Corel-Layer"/>
<polygon id="YellowFill" class="fil0 str0" points="250,650 50,650
50,850 250,850 "/>
</g>
</svg>

When reading it with Ab2d.ReaderSvg, the fill color is setted to
R=128,G=128, B=128 that is a grey color.
Is this beacuse i'm using the demo version that place a "demo" grey
string on the fill ?

if not, how i can retrive the color of the square fill ?
if yes, can you change the demo version in order to have almonst the
same color of the fill ? in order to evaluate better the .dll ?

Best Regards,
Matteo

Andrej Benedik

unread,
Jan 28, 2009, 7:48:43 AM1/28/09
to wpf-gr...@googlegroups.com
The actual fill is replaced with gray fill because of evaluation.

If you would like to check how the svg file looks when using licensed version, please open the file with ViewerSvg and check the "Preview as using licensed version" checkbox.

If the original fill would be preserved, than it would be very easy to use evaluation version for production purpose.

Andrej
Reply all
Reply to author
Forward
0 new messages