Howto:Extend the Canvas SVG module: Difference between revisions

Jump to navigation Jump to search
Line 60: Line 60:
=== <image> tag ===
=== <image> tag ===
[[File:Svg-image-tag-support.png|thumb|screenshot showing Canvas GUI dialog with SVG image loaded referencing raster images from $FG_ROOT/Textures]]
[[File:Svg-image-tag-support.png|thumb|screenshot showing Canvas GUI dialog with SVG image loaded referencing raster images from $FG_ROOT/Textures]]
Let's assume, we'd like to support raster images, e.g. SVG markup such as the following (for the sake of simplicity, this is simply saved under $FG_ROOT/Nasal/img.svg for testing purposes):
Let's assume, we'd like to support raster images, e.g. SVG markup such as the following (for the sake of simplicity, this is simply saved under $FG_ROOT/Textures/img.svg for testing purposes):
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

Navigation menu