ImageEn, unit iexSVG

IERenderSVGTagToBitmap


Declaration

function IERenderSVGTagToBitmap(Dest: TIEBitmap; const TagContent: String): Boolean; overload;
function IERenderSVGTagToBitmap(Dest: TIEBitmap; Tag: TIESVGTag; PageScaleX: Double = 1.0; PageScaleY: Double = 1.0): Boolean; overload;


Description

Render a single tag to a bitmap. Optionally specifying a scale.
Result is false if the tag could not be interpreted.


Note: To render an entire image, use ParseSVG


Demo

Demo  Demos\InputOutput\SVGParsing\SVGParsing.dpr


Examples

IERenderSVGTagToBitmap( ImageEnView1.IEBitmap, '<path d="M 10 80 Q 95 10 180 80" stroke="black" fill="white"/>' );
ImageEnView1.Update();

IERenderSVGTagToBitmap( ImageEnView1.IEBitmap, '<text x="400" y="80" font-family="Arial, Helvetica, sans-serif" font-size="24">This is SVG Text</text>' );
ImageEnView1.Update();