TSVG:LoadSVG
Carrega o XML do SVG.
Sintaxe
LoadSVG( < cSVGTxt >, [ lStretch ] )
Parâmetros
Nome | Tipo | Descrição | Obrigatório | Referência |
---|---|---|---|---|
cSVGTxt | caractere | XML do SVG. | X |
|
lStretch | lógico | Indica se a imagem será esticada pra preencher o componente. |
|
|
Exemplos
cSVG := "<?xml version='1.0' encoding='UTF-8'?>"+; "<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.0//EN' 'http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd'>"+; "<svg xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink/' version='1.0'>"+; "<defs id='defs2845'>"+; "<linearGradient id='GradientBalloon' x1='0%' y1='0%' x2='0%' y2='100%'>"+; "<stop offset='5%' stop-color='#FFFFFF' id='stop2848' />"+; "<stop offset='95%' stop-color='#FAF2B0' id='stop2850' />"+; "</linearGradient>"+; "</defs>"+; "<path style='stroke:#EFA018; stroke-width:1;' fill='url(#GradientBalloon)' transform='scale( 1.00500, 1.00769)' d='m 200,120.06967 c 0,2.61799 -1.07773,5.21987 -2.92893,7.07107 -1.8512,1.8512 -4.45308,2.92893 -7.07107,2.92893 l -180,0 c -2.61799,0 -5.21987,-1.07773 -7.07107,-2.92893 C 1.07773,125.28954 0,122.68766 0,120.06967 l 0,-80 C 0,37.451676 1.07773,34.849803 2.92893,32.998602 4.78013,31.147401 7.38201,30.06967 10,30.06967 l 138,0 L 169.067,0 169.1,30.06949 184,30.06967 c 2.61799,0 11.21987,1.077731 13.07107,2.928932 C 198.92227,34.849803 200,37.451676 200,40.06967 l 0,80 z' />"+; "<animateTransform attributeName='transform' type='translate' from='00101,00066' to='0,0' dur='0.3s' additive='sum' fill='freeze' xlink:href='#balloon' />"+; "<animateTransform attributeName='transform' type='scale' from='0' to='1' dur='0.3s' additive='sum' fill='freeze' xlink:href='#balloon' />"+; "</svg>" oSVG:LoadSVG(cSVG)
Visão Geral
Import HTML Content
Conteúdo das Ferramentas
Tarefas