{"id":394,"date":"2017-03-29T05:25:50","date_gmt":"2017-03-29T05:25:50","guid":{"rendered":"http:\/\/www.bverhue.nl\/delphisvg\/?page_id=394"},"modified":"2021-12-23T06:05:48","modified_gmt":"2021-12-23T06:05:48","slug":"demo-package-installation","status":"publish","type":"page","link":"https:\/\/www.bverhue.nl\/delphisvg\/demo-package-installation\/","title":{"rendered":"Demo package installation"},"content":{"rendered":"<p>To try out the SVG package you can download the demo zip files, you can find these on the <a href=\"http:\/\/www.bverhue.nl\/delphisvg\/downloads\/\">download page<\/a>.<\/p>\n<p>The demo has the following limitations : it contains only compiled sources for Win32 and the produced SVG images will have a watermark, for the rest it is fully functional.<\/p>\n<p>First you need to download and install the pacakge that corresponds with your Delphi version:<\/p>\n<ul>\n<li>For Delphi XE2 to XE4, download SVGDemoXE2_XE4_240.zip<\/li>\n<li>For Delphi XE5 to XE7, download SVGDemoXE5_XE7_240.zip<\/li>\n<li>For Delphi XE8 to DX1, download SVGDemoXE8_DX1_240.zip<\/li>\n<li>For Delphi DX2 to DX4, download SVGDemoDX2_DX4_240.zip<\/li>\n<li>For Delphi D11, download SVGDemoD11_240.zip<\/li>\n<li>If you are using C++ builder you need to download the corresponding CPP zip as well.<\/li>\n<\/ul>\n<p>After unzipping you will find a \u201cBpl\u201d and a \u201cDcu\u201d folder. The files in de \u201cBpl\u201d folder contain the package libraries and the \u201cDcu\u201d directory contain the compiled units.<\/p>\n<p>Next, if you have an earlier version of the packages installed you have to remove these first. In Delphi:<\/p>\n<ol>\n<li>Go to menu &#8220;Component-&gt;Install packages&#8230;&#8221;<\/li>\n<li>Deselect the previous version packages and remove them.<\/li>\n<li>Then restart Delphi.<\/li>\n<\/ol>\n<p>Next you have to add the &#8220;Bpl&#8221; files:<\/p>\n<ol>\n<li>Again, go to menu &#8220;Component-&gt;Install package&#8230;&#8221;<\/li>\n<li>Locate and add the three files of your Delphi version from the &#8220;Bpl&#8221; folder.<\/li>\n<li>Check that a &#8220;SVG2&#8221; group was added to the &#8220;Tool palette&#8221;<\/li>\n<\/ol>\n<p><a href=\"http:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/05\/InstallPackages3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-251 size-full\" src=\"http:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/05\/InstallPackages3.png\" alt=\"\" width=\"1000\" height=\"533\" srcset=\"https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/05\/InstallPackages3.png 1000w, https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/05\/InstallPackages3-600x320.png 600w, https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/05\/InstallPackages3-300x160.png 300w, https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/05\/InstallPackages3-768x409.png 768w\" sizes=\"auto, (max-width: 1000px) 100vw, 1000px\" \/><\/a><\/p>\n<p>Next, add the path to the &#8220;Dcu&#8221; folder to your library path:<\/p>\n<ol>\n<li>In Delphi select menu &#8220;Tools-&gt;Options&#8230;&#8221;.<\/li>\n<li>From the &#8220;Options&#8221; dialog in the left panel select &#8220;Environment Options-&gt;Delphi Options-&gt;Library&#8221;.<\/li>\n<li>On the right top in &#8220;Selected Platform&#8221; select &#8220;32-bit Windows&#8221;<\/li>\n<li>Finally add the &#8220;Dcu&#8221; folder to the &#8220;Library path&#8221;<\/li>\n<\/ol>\n<p>Now you should be good to go:<\/p>\n<ol>\n<li>Create a new VCL Forms Application<\/li>\n<li>Add the TSVG2Image2 from the &#8220;Tool Palette&#8221; &#8220;SVG2&#8221; group<\/li>\n<li>Select an SVG graphic in the &#8220;Filename&#8221; property of the SVG2Image1 object<\/li>\n<li>Run the application.<\/li>\n<\/ol>\n<p><a href=\"http:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/04\/SVG2Image.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-237 size-full\" src=\"http:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/04\/SVG2Image.png\" alt=\"\" width=\"1188\" height=\"719\" srcset=\"https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/04\/SVG2Image.png 1188w, https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/04\/SVG2Image-600x363.png 600w, https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/04\/SVG2Image-300x182.png 300w, https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/04\/SVG2Image-768x465.png 768w, https:\/\/www.bverhue.nl\/delphisvg\/wp-content\/uploads\/2016\/04\/SVG2Image-1024x620.png 1024w\" sizes=\"auto, (max-width: 1188px) 100vw, 1188px\" \/><\/a><\/p>\n<p>Examples can be found on github: <a href=\"https:\/\/github.com\/BVerhue\/delphi-svg-control-examples\">delphi-svg-control-examples<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To try out the SVG package you can download the demo zip files, you can find these on the download page. The demo has the following limitations : it contains only compiled sources for Win32 and the produced SVG images will have a watermark, for the rest it is fully functional. First you need to &#8230; <a title=\"Demo package installation\" class=\"read-more\" href=\"https:\/\/www.bverhue.nl\/delphisvg\/demo-package-installation\/\" aria-label=\"Read more about Demo package installation\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-394","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/www.bverhue.nl\/delphisvg\/wp-json\/wp\/v2\/pages\/394","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bverhue.nl\/delphisvg\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.bverhue.nl\/delphisvg\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.bverhue.nl\/delphisvg\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bverhue.nl\/delphisvg\/wp-json\/wp\/v2\/comments?post=394"}],"version-history":[{"count":10,"href":"https:\/\/www.bverhue.nl\/delphisvg\/wp-json\/wp\/v2\/pages\/394\/revisions"}],"predecessor-version":[{"id":1787,"href":"https:\/\/www.bverhue.nl\/delphisvg\/wp-json\/wp\/v2\/pages\/394\/revisions\/1787"}],"wp:attachment":[{"href":"https:\/\/www.bverhue.nl\/delphisvg\/wp-json\/wp\/v2\/media?parent=394"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}