Method Image.SVG.decode_layers()
- Method decode_layers
array(Image.Layer) decode_layers(stringdata,void|mappingoptions)- Description
Data is the SVG data, the charset must be unicode.
If
optionsis specified, it contains one or more of the following optionsxsize:intIf specified, gives the exact width in pixels the image will have. If only one of xsize or ysize is specified, the other is calculated.
ysize:intIf specified, gives the exact height in pixels the image will have. If only one of xsize or ysize is specified, the other is calculated.
scale:floatIf specified, gives the scale the image will be drawn with. A scale of 2.0 will give an image that is twice as large.
The result is an array of Image.Layer objects. For now there is always at most one member in the array.