[Solved] How to paint SVG file on canvas? lazarus / 39-Graphics ---------------------------------------------------------------------- AlexTP · 2018-12-20 17:52 For ex, I have SVG file or StringList with its text. I want to paint it on canvas at (x,y) with given sizes (nx,ny). How to do it? ---------------------------------------------------------------------- mr-highball · 2018-12-20 17:59 bgrabitmap would probably be what you want: https://github.com/bgrabitmap/bgrabitmap (load from stream/file) https://github.com/bgrabitmap/bgrabitmap/blob/ecdea28344839d2cae597c6c a4e90c29bf692eba/bgrabitmap/bgrasvg.pas#L139 there's a Draw method which works with a TBGRACanvas2D, but the canvas probably has some "ToBitmap" method or the like ---------------------------------------------------------------------- lucamar · 2018-12-20 18:56 A list of libraries with SVG reading/writing/rendering, taken from the wiki page: Graphics libraries AggPas (in {lazarus folder}/components/aggpas)BGRABitmapfpvectorialAlso, from FPC Package list librsvg (in {FPC source}/packages/librsvg) And I'm sure there are more somewhere out there