SVG support for Delphi and C++ builder VCL
SVGMagic adds support for
to Embarcadero® RAD Studio Delphi® and C++ builder® Visual Component Library (VCL).
Why use SVGMagic?
- Integrates with native IDE components
Once installed, any SVG image can be displayed using the native IDE components just as with the bitmap-based formats (.bmp, png, .jpg,…).
- All components using TGraphic support SVGs, among which: TImage, TPicture, TCanvas.
- Superior image qualityAlways get the best image quality whatever the dimensions / resolution. You don’t need to edit the image if it needs to be resized.
- High DPI aware
When an SVG is used to display an image, its quality does not change, even when the image is stretched. This feature offers a certain advantage when the application has to support the high dpi, because the resizing of the images naturally accompanies the interface.
- Transparent
- SVGs fully support transparency. No more anti-aliasing issues experienced with bitmap based images.
- AnimatedThe SVG standard natively supports complex animations and SVGMagic fully supports them.
- Smaller size
SVGs are incredibly smaller than bitmap based images, even when compressed. Furthermore SVGs also support compression.
- Widely available
SVGs are widely used for internet graphics, and several well known and powerful creation tools are available, like
or Adobe® Illustrator. In addition, you don’t need to create SVGs yourself as there are plenty of vector image libraries available online such as
,
and many others.
- Expandable
SVGs can easily be expanded to other components such as buttons, checkboxes, radiobuttons, popupmenus and many more.
- Proven track record
SVGMagic is used on a daily base in commercial software like
.
- Flexible
The SVG standard allows to obtain spectacular effects including animations, then to change them completely without modifying one line of code.
Components
- TWSVGGraphic component adds native TPicture, TImage, TCanvas SVG support
- TWSVGImageList DPI aware SVG image list
- TWSVGCheckBoxStyle to style any check box
- TWSVGRadioButtonStyle to style any radio button
Downloads
Install SVGMagic
To fully experience the library's capabilities, test it now. Follow the quick guide to install the
SVGMagic library.
-
- Unzip the archive in your Embarcadero RAD Studio common directory: C:\Users\Public\Documents\Embarcadero\Studio\
- Open your Embarcadero RAD Studio IDE, then from menu “Component” -> “Install Packages”, click “Add…” button, and browse to c:\Users\Public\Documents\Embarcadero\Studio\[Product Version]\Bpl\WSVGD.bpl file, then confirm twice with “OK”.
[Product Version] for your IDE version is:
“9.0” = XE2
“15.0” = XE7
“16.0” = XE8
“17.0” = 10.0 Seattle
“18.0” = 10.1 Berlin
“19.0” = 10.2 Tokyo
“20.0” = 10.3 Rio
-
- Unzip the demo project
- Open the demo in RAD Studio and build it
Common issues:
- In C++ Builder project, you may need to include #pragma comment(lib, “usp10”) in your main form .cpp file
- In case of flickering, verify that DoubleBuffered property is set to true on the component
Compatibility
SVGMagic works on Windows 10, 8, 7 and is available for RAD Studio XE2, XE3, XE4, XE5, XE6, XE7, XE8, 10 Seattle, 10.1 Berlin, 10.2 Tokyo, 10.3 Rio.