![]() Var svg = Step 2 - Modify the SVG content To load an SVG image using the GcImaging Libraries for C#.NET, import the namespace and use the FromFile method of the GcSvgDocuments class as in the code below: using The first step toward editing an image is loading it into the application. Let's get started and look at the detailed steps to achieve the desired requirements using the GcImaging library for C#. Vertical (Square) layout with dimensions 160 x 160 px.Horizontal layout with dimensions 250 x 75 px.In addition to this, we will generate the icon for the following layouts Rotate the alphabet "e" and add a rectangle around it.Re-position the logomark closer to the logotype and add a thick border to it. ![]() ![]() So, the designer needs a way to programmatically manipulate the SVG image and generate multiple copies for different sizes with less effort.įor this blog, we will customize the GrapeCity Logo for the following and as shown below: You want to use this logo on your website, application, and mobile devices and need multiple copies for different sizes.Ĭreating these logos from scratch is not a cost-effective solution. The new design can be achieved using a few tweaks and edits to the existing logo. The designers suggested a new logo that is not much different from the current design. Use-CaseĪ company recently decided to change its logo to look more modern and innovative as part of the rebranding strategy. In this blog, we'll see how we can manipulate an SVG image programmatically using C#. scale the same image to fit multiple device screens and orientation.change color or gradient to match the current theme or style of the document/website.More often than not, existing images can be transformed or customized to fit a particular business need. In the last article, we discussed the need for programmatic creation of SVG images, the SVG drawing basics, the APIs available by GcDocs, and a simple walk-through of creating an SVG image from scratch.īut not all situations require creating images from scratch. This blog is the second in the series of articles related to programmatically creating and manipulating SVG images using the GcDocuments library for C#.
0 Comments
Leave a Reply. |