Skip to content

Commit 29118f1

Browse files
author
Samer El-Khatib
committed
Release 25.7 - Updates
1 parent 7aab02c commit 29118f1

File tree

6 files changed

+55
-6
lines changed

6 files changed

+55
-6
lines changed

Demos/src/Aspose.Imaging.Live.Demos.UI/Aspose.Imaging.Live.Demos.UI.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@
7878
<Reference Include="AspNet.ScriptManager.jQuery, Version=3.3.1.0, Culture=neutral, processorArchitecture=MSIL">
7979
<HintPath>..\..\packages\AspNet.ScriptManager.jQuery.3.3.1\lib\net45\AspNet.ScriptManager.jQuery.dll</HintPath>
8080
</Reference>
81-
<Reference Include="Aspose.Imaging, Version=25.6.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
82-
<HintPath>..\..\packages\Aspose.Imaging.25.6.0\lib\net40\Aspose.Imaging.dll</HintPath>
81+
<Reference Include="Aspose.Imaging, Version=25.7.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
82+
<HintPath>..\..\packages\Aspose.Imaging.25.7.0\lib\net40\Aspose.Imaging.dll</HintPath>
8383
</Reference>
8484
<Reference Include="Microsoft.AI.DependencyCollector, Version=2.6.4.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
8585
<HintPath>..\..\packages\Microsoft.ApplicationInsights.DependencyCollector.2.6.4\lib\net45\Microsoft.AI.DependencyCollector.dll</HintPath>

Demos/src/Aspose.Imaging.Live.Demos.UI/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<package id="Antlr" version="3.4.1.9004" targetFramework="net471" />
55
<package id="AspNet.ScriptManager.bootstrap" version="4.4.1" targetFramework="net471" />
66
<package id="AspNet.ScriptManager.jQuery" version="3.3.1" targetFramework="net471" />
7-
<package id="Aspose.Imaging" version="25.6.0" targetFramework="net471" />
7+
<package id="Aspose.Imaging" version="25.7.0" targetFramework="net471" />
88
<package id="bootstrap" version="4.4.1" targetFramework="net471" />
99
<package id="jQuery" version="3.3.1" targetFramework="net471" />
1010
<package id="jQuery.Form" version="4.2.2" targetFramework="net471" />

Examples/CSharp/CSharp.csproj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@
5858
<SpecificVersion>False</SpecificVersion>
5959
<HintPath>..\Data\lib\Microsoft.VisualStudio.QualityTools.UnitTestFramework.dll</HintPath>
6060
</Reference>
61-
<Reference Include="Aspose.Imaging, Version=25.6.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
62-
<HintPath>..\packages\Aspose.Imaging.25.6.0\lib\net40\Aspose.Imaging.dll</HintPath>
61+
<Reference Include="Aspose.Imaging, Version=25.7.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
62+
<HintPath>..\packages\Aspose.Imaging.25.7.0\lib\net40\Aspose.Imaging.dll</HintPath>
6363
</Reference>
6464
<Reference Include="System" />
6565
<Reference Include="System.Core" />
@@ -249,6 +249,7 @@
249249
<Compile Include="ModifyingAndConvertingImages\SupportOfTextRenderingHint.cs" />
250250
<Compile Include="ModifyingAndConvertingImages\SupportOfDIB.cs" />
251251
<Compile Include="ModifyingAndConvertingImages\SupportTiffDeflate.cs" />
252+
<Compile Include="ModifyingAndConvertingImages\SVG\CommonGraphicsEngineForSvgEmfWmf.cs" />
252253
<Compile Include="ModifyingAndConvertingImages\SVG\ConvertWMFToSVG.cs" />
253254
<Compile Include="ModifyingAndConvertingImages\SVG\ConvOfOtherFormatsToSVG.cs" />
254255
<Compile Include="ModifyingAndConvertingImages\SVG\SvgNativeResize.cs" />
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
using Aspose.Imaging;
2+
using Aspose.Imaging.Brushes;
3+
using Aspose.Imaging.Examples.CSharp;
4+
using Aspose.Imaging.FileFormats.Svg;
5+
using Aspose.Imaging.ImageOptions;
6+
using System;
7+
using System.Collections.Generic;
8+
using System.IO;
9+
using System.Linq;
10+
using System.Text;
11+
using System.Threading.Tasks;
12+
13+
namespace CSharp.ModifyingAndConvertingImages.SVG
14+
{
15+
internal class CommonGraphicsEngineForSvgEmfWmf
16+
{
17+
public static void Run()
18+
{
19+
string dataDir = RunExamples.GetDataDir_PNG();
20+
21+
Console.WriteLine("Running example CommonGraphicsEngineForSvgEmfWmf");
22+
23+
var filePath = Path.Combine(dataDir, "test.svg");
24+
25+
using (var vectorImage = (VectorImage)new SvgImage(100, 100))
26+
{
27+
var g = new Graphics(vectorImage);
28+
g.FillRectangle(new SolidBrush(Color.LightYellow), 10, 10, 80, 80);
29+
g.DrawRectangle(new Pen(Color.Red, 4), 10, 10, 80, 80);
30+
g.FillEllipse(new SolidBrush(Color.LightGreen), 20, 20, 60, 60);
31+
g.DrawEllipse(new Pen(Color.Green, 2), 20, 20, 60, 60);
32+
g.FillPie(new SolidBrush(Color.LightBlue), new Rectangle(30, 30, 40, 40), 0, 45);
33+
g.DrawPie(new Pen(Color.Blue, 1), new Rectangle(30, 30, 40, 40), 0, 45);
34+
g.DrawLine(new Pen(Color.DarkRed, 1), 10, 20, 90, 20);
35+
g.DrawLines(new Pen(Color.DarkRed, 1), new PointF[] { new PointF(10, 90), new PointF(20, 80), new PointF(30, 90) });
36+
g.DrawPolygon(new Pen(Color.DarkRed, 1), new PointF[] { new PointF(90, 90), new PointF(80, 80), new PointF(70, 90) });
37+
g.DrawString("Hello World!", new Font("Arial", 14), new SolidBrush(Color.DarkBlue), new PointF(10, 50));
38+
g.DrawArc(new Pen(Color.Brown, 1), new Rectangle(30, 30, 40, 40), 135, -90);
39+
vectorImage.Save(filePath);
40+
}
41+
42+
File.Delete(filePath);
43+
44+
Console.WriteLine("Finished example CommonGraphicsEngineForSvgEmfWmf");
45+
}
46+
}
47+
}

Examples/CSharp/RunExamples.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,7 @@ private static void RunTestFileFormats()
221221
// =====================================================
222222
// =====================================================
223223

224+
CommonGraphicsEngineForSvgEmfWmf.Run();
224225
ConvOfOtherFormatsToSVG.Run();
225226
SVGToEMFConversion.Run();
226227
ConvertWMFToSVG.Run();

Examples/CSharp/packages.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
3-
<package id="Aspose.Imaging" version="25.6.0" targetFramework="net45" />
3+
<package id="Aspose.Imaging" version="25.7.0" targetFramework="net45" />
44
</packages>

0 commit comments

Comments
 (0)