Demo package installation

To try the SVG package, download the demo package for your Delphi version from the demo page. If you use C++ Builder, download the C++ Builder files for the same version as well.

The demo is the full package with these limits: it is compiled for Win32 only, every rendered image gets a watermark, and it doesn’t load files from the internet.

1. Unzip

The zip holds one folder, named after your Delphi version, for example SVGDemoD13_240, with two folders inside:

  • Bpl: the three package files you install in the IDE
  • Dcu: the compiled units your application is built with

Put the folder somewhere permanent; the IDE keeps referring to it.

2. Remove an earlier version

If an earlier version of the packages is installed, remove it first:

  1. Go to Component > Install Packages…
  2. Select the earlier SVG packages and click Remove.
  3. Restart Delphi.

3. Install the packages

  1. Go to Component > Install Packages… and click Add…
  2. Add the three files from the Bpl folder.
  3. Check that the Palette now has an SVG2 group.

if the 64-bit IDE of Delphi 12.3 and later can’t load these 32-bit packages, add: “Delphi 12.3 and later can also run as a 64-bit IDE. Install the demo in the 32-bit IDE.

4. Add the Dcu folder to the library path

  1. Go to Tools > Options…
  2. Open the library settings:
    • Delphi 11 and later: Language > Delphi > Library
    • Older versions: Environment Options > Delphi Options > Library
  3. Under Selected Platform, choose 32-bit Windows (Windows 32-bit).
  4. Add the Dcu folder to the Library path.

C++ Builder

Unzip the C++ Builder files next to the Delphi ones. They hold a Dcp and an Hpp folder. In Tools > Options… > Language > C++ > Paths and Directories, for 32-bit Windows:

  • add the Hpp folder to the Include path
  • add the Dcp folder to the Library path

[check: these C++ Builder paths follow how C++ Builder normally works and weren’t tested]

Try it

  1. Create a new VCL Forms Application.
  2. Drop a TSVG2Image from the SVG2 group on the form.
  3. Choose an SVG file in its FileName property.
  4. Run the application.

More examples are in the example projects on GitHub; they work with the demo package.