Mercurial > MadButterfly
view nodejs/examples/testsvg/test.svg @ 1082:af74a96e6624 openvg
Fix bug of access VGImage of a surface
author | Thinker K.F. Li <thinker@codemud.net> |
---|---|
date | Fri, 03 Dec 2010 01:27:24 +0800 |
parents | a74b4d986a91 |
children |
line wrap: on
line source
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <!-- Created with Inkscape (http://www.inkscape.org/) --> <svg xmlns:ns0="http://madbutterfly.sourceforge.net/DTD/madbutterfly.dtd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:cc="http://creativecommons.org/ns#" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" width="720" height="480" id="svg2" sodipodi:version="0.32" inkscape:version="0.47 r22583" sodipodi:docname="test.svg" version="1.0" inkscape:output_extension="org.inkscape.output.svg.inkscape"> <sodipodi:namedview id="base" pagecolor="#ffffff" bordercolor="#666666" borderopacity="1.0" gridtolerance="10000" guidetolerance="10" objecttolerance="10" inkscape:pageopacity="0.0" inkscape:pageshadow="2" inkscape:zoom="1.0347223" inkscape:cx="151.05815" inkscape:cy="228.90269" inkscape:document-units="px" inkscape:current-layer="layer1" showgrid="false" inkscape:window-width="1347" inkscape:window-height="894" inkscape:window-x="0" inkscape:window-y="25" inkscape:window-maximized="0" /> <defs id="defs4"> <linearGradient id="linearGradient3183"> <stop style="stop-color:#000000;stop-opacity:1;" offset="0" id="stop3185" /> <stop style="stop-color:#505050;stop-opacity:1;" offset="1" id="stop3187" /> </linearGradient> <inkscape:perspective id="perspective10" inkscape:persp3d-origin="804.3173 : 267.38473 : 1" inkscape:vp_z="1630.7262 : 376.00761 : 1" inkscape:vp_y="0 : 619.30892 : 0" inkscape:vp_x="-22.091594 : 376.00761 : 1" sodipodi:type="inkscape:persp3d" /> <linearGradient inkscape:collect="always" xlink:href="#linearGradient3183" id="linearGradient3189" x1="0" y1="239.5" x2="719.99998" y2="239.5" gradientUnits="userSpaceOnUse" /> </defs> <metadata id="metadata7"> <rdf:RDF> <cc:Work rdf:about=""> <dc:format>image/svg+xml</dc:format> <dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" /> </cc:Work> </rdf:RDF> <ns0:scenes current="1" /> </metadata> <g inkscape:groupmode="layer" id="layer2" inkscape:label="Background" sodipodi:insensitive="true"> <rect style="opacity:1;fill:url(#linearGradient3189);fill-opacity:1;stroke:#000000;stroke-width:0.9993065;stroke-opacity:1" id="rect3181" width="719.00067" height="480.0007" x="0.49965325" y="-0.50034672" /> </g> <g id="layer1" inkscape:groupmode="layer" inkscape:label="Layer 1"> <g transform="translate(144.04213,-2.85715)" id="item1" mbname="item1" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="422.51731" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"> <text id="text2395" y="60" x="157.14285" style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve" sodipodi:linespacing="125%" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="422.51731" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"><tspan mbname="item1text" y="60" x="157.14285" id="tspan2397" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="422.51731" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <g transform="translate(144.04213,39.689836)" id="item2" mbname="item2" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="379.97032" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"> <text id="text2421" y="60" x="157.14285" style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve" sodipodi:linespacing="125%" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="379.97032" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"><tspan mbname="item2text" y="60" x="157.14285" id="tspan2423" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="379.97032" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <g transform="translate(144.04213,82.236798)" id="item3" mbname="item3" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="337.42336" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"> <text id="item3text" y="60" x="157.14285" style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve" sodipodi:linespacing="125%" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="337.42336" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"><tspan mbname="item3text" y="60" x="157.14285" id="tspan2429" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="337.42336" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <g transform="translate(144.04213,124.7838)" id="item4" mbname="item4" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="294.87636" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"> <text id="item4text" y="60" x="157.14285" style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve" sodipodi:linespacing="125%" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="294.87636" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"><tspan mbname="item4text" y="60" x="157.14285" id="tspan2435" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="294.87636" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <g transform="translate(144.04213,167.33077)" id="item5" mbname="item5" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="252.32939" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"> <text id="item5text" y="60" x="157.14285" style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve" sodipodi:linespacing="125%" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="252.32939" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"><tspan mbname="item5text" y="60" x="157.14285" id="tspan2441" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="252.32939" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <g transform="translate(144.04213,209.87776)" id="item6" mbname="item6" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="209.7824" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"> <text id="item6text" y="60" x="157.14285" style="font-size:24px;font-style:normal;font-variant:normal;font-weight:bold;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Bold" xml:space="preserve" sodipodi:linespacing="125%" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="209.7824" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219"><tspan mbname="item6text" y="60" x="157.14285" id="tspan2447" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="209.7824" inkscape:bbox-width="74.0625" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <g transform="translate(145.21401,252.42474)" id="item7" mbname="item7" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="167.23542" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219"> <text id="item7text" y="60" x="157.14285" style="font-size:24px;font-style:oblique;font-variant:normal;font-weight:normal;font-stretch:normal;text-align:start;line-height:125%;writing-mode:lr-tb;text-anchor:start;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans;-inkscape-font-specification:Bitstream Vera Sans Oblique" xml:space="preserve" sodipodi:linespacing="125%" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="167.23542" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219"><tspan mbname="item7text" y="60" x="157.14285" id="tspan2453" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="167.23542" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <g transform="translate(143.79604,294.97172)" id="item8" mbname="item8" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="124.68844" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219"> <text id="item8text" y="60" x="157.14285" style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans" xml:space="preserve" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="124.68844" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219"><tspan mbname="item8text" y="60" x="157.14285" id="tspan2459" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="124.68844" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <g transform="translate(143.79604,337.5187)" id="item9" mbname="item9" style="fill-opacity:1" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="82.141456" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219"> <text mbname="" id="text2407" y="60" x="157.14285" style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;font-family:Bitstream Vera Sans" xml:space="preserve" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="82.141456" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219"><tspan mbname="item9text" y="60" x="157.14285" id="tspan2409" sodipodi:role="line" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="303.20061" inkscape:bbox-y="82.141456" inkscape:bbox-width="65.027344" inkscape:bbox-height="18.574219">item1</tspan></text> </g> <text id="text2416" y="44.383541" x="24.177626" style="font-size:24px;font-style:normal;font-weight:normal;fill:#ffffff;fill-opacity:1;stroke:none;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1;font-family:Bitstream Vera Sans" xml:space="preserve"><tspan mbname="title" y="44.383541" x="24.177626" id="tspan2418" sodipodi:role="line">Menu test</tspan></text> </g> <g inkscape:groupmode="layer" id="layer4" inkscape:label="lightbar"> <g mbname="item_lightbar" transform="matrix(0.9148913,0,0,1,168.41407,93.684101)" id="item_lightbar" style="stroke:none" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="164.66374" inkscape:bbox-y="326.01386" inkscape:bbox-width="409.10203" inkscape:bbox-height="33.623234"> <rect style="opacity:0.3669725;fill:#001f41;fill-opacity:1;stroke:none" id="rect3191" width="442.8623" height="29.190758" x="0.19951171" y="31.140766" transform="matrix(0.9999958,-0.00289533,0,1,0,0)" rx="10.000001" ry="10" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="168.5966" inkscape:bbox-y="326.01386" inkscape:bbox-width="405.16917" inkscape:bbox-height="30.41517" /> <rect style="opacity:0.3669725;fill:#eafbf3;fill-opacity:1;stroke:none" id="rect2405" width="442.86224" height="29.190758" x="-4.099226" y="27.920256" transform="matrix(0.9999958,-0.00289533,0,1,0,0)" rx="10" ry="10" inkscape:transform-center-x="0" inkscape:transform-center-y="0" inkscape:bbox-x="164.66374" inkscape:bbox-y="329.22193" inkscape:bbox-width="405.16911" inkscape:bbox-height="30.41517" /> </g> <image y="78.788635" x="34.986565" id="image3033" xlink:href="file:logo.png" height="37" width="46" /> <g sodipodi:type="inkscape:box3d" style="fill:none;stroke:none" id="g2953" inkscape:perspectiveID="#perspective10" inkscape:corner0="11.418244 : -1.091331 : 0 : 1" inkscape:corner7="6.2635014 : -2.542367 : 0.25 : 1"> <path sodipodi:type="inkscape:box3dside" id="path2963" style="fill:#afafde;fill-rule:evenodd;stroke:none" inkscape:box3dsidetype="13" d="M 44.456373,239.52954 91.68396,335.71719 142.89318,328.00691 75.760432,236.8548 z" /> <path sodipodi:type="inkscape:box3dside" id="path2955" style="fill:#353564;fill-rule:evenodd;stroke:none" inkscape:box3dsidetype="6" d="m 44.456373,167.16508 0,72.36446 31.304059,-2.67474 0,-70.93639 z" /> <path sodipodi:type="inkscape:box3dside" id="path2965" style="fill:#e9e9ff;fill-rule:evenodd;stroke:none" inkscape:box3dsidetype="11" d="m 75.760432,165.91841 67.132748,42.48521 0,119.60329 -67.132748,-91.15211 z" /> <path sodipodi:type="inkscape:box3dside" id="path2957" style="fill:#4d4d9f;fill-rule:evenodd;stroke:none" inkscape:box3dsidetype="5" d="m 44.456373,167.16508 47.227587,44.83223 51.20922,-3.59369 -67.132748,-42.48521 z" /> <path sodipodi:type="inkscape:box3dside" id="path2961" style="fill:#d7d7ff;fill-rule:evenodd;stroke:none" inkscape:box3dsidetype="14" d="m 91.68396,211.99731 0,123.71988 51.20922,-7.71028 0,-119.60329 z" /> <path sodipodi:type="inkscape:box3dside" id="path2959" style="fill:#8686bf;fill-rule:evenodd;stroke:none" inkscape:box3dsidetype="3" d="m 44.456373,167.16508 47.227587,44.83223 0,123.71988 -47.227587,-96.18765 z" /> </g> </g> </svg>