[cairo] cairo + librsvg = svg viewer

Arjen Nienhuis a.g.nienhuis at gmail.com
Wed Oct 28 06:05:14 PDT 2009


> May be you have advanced a little bit in the problem of converting the librsvg header-files or have found other solutions to display svg in Delphi.

Doe something like this work?

type SVGHandle = Pointer;

function rsvg_handle_new_from_file(path: PChar; error: Pointer):
SVGHandle; stdcall; external 'librsvg-2-2.dll';
function rsvg_handle_render_cairo(handle: SVGHandle; ctx: Pointer):
BOOL; stdcall; external 'librsvg-2-2.dll';


More information about the cairo mailing list