Skip to content

Commit 7aab02c

Browse files
author
Samer El-Khatib
committed
Release 25.6 updates
1 parent fc8833e commit 7aab02c

File tree

6 files changed

+48
-7
lines changed

6 files changed

+48
-7
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.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
82-
<HintPath>..\..\packages\Aspose.Imaging.25.5.0\lib\net40\Aspose.Imaging.dll</HintPath>
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>
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.5.0" targetFramework="net471" />
7+
<package id="Aspose.Imaging" version="25.6.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.5.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
62-
<HintPath>..\packages\Aspose.Imaging.25.5.0\lib\net40\Aspose.Imaging.dll</HintPath>
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>
6363
</Reference>
6464
<Reference Include="System" />
6565
<Reference Include="System.Core" />
@@ -176,6 +176,7 @@
176176
<Compile Include="ModifyingAndConvertingImages\PNG\ChangeWindowSize.cs" />
177177
<Compile Include="ModifyingAndConvertingImages\PNG\ConvertTo1BitPng.cs" />
178178
<Compile Include="ModifyingAndConvertingImages\PNG\KeepTransparencyWhenIndexingPngImage.cs" />
179+
<Compile Include="ModifyingAndConvertingImages\PNG\PngCompressionLevelExample.cs" />
179180
<Compile Include="ModifyingAndConvertingImages\PNG\ReadLargePNGFile.cs" />
180181
<Compile Include="ModifyingAndConvertingImages\PNG\Support16BitChannel64BitPng.cs" />
181182
<Compile Include="ModifyingAndConvertingImages\RasterImageToPDF.cs" />
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
using Aspose.Imaging.Examples.CSharp;
2+
using Aspose.Imaging.ImageOptions;
3+
using Aspose.Imaging;
4+
using System;
5+
using System.Collections.Generic;
6+
using System.IO;
7+
using System.Linq;
8+
using System.Text;
9+
using System.Threading.Tasks;
10+
11+
namespace CSharp.ModifyingAndConvertingImages.PNG
12+
{
13+
internal class PngCompressionLevelExample
14+
{
15+
public static void Run()
16+
{
17+
string dataDir = RunExamples.GetDataDir_PNG();
18+
19+
Console.WriteLine("Running example PngCompressionLevelExample");
20+
21+
using (Image image = Image.Load(Path.Combine(dataDir, @"aspose_logo.png")))
22+
{
23+
for (int compression = 0; compression <= 10; compression++)
24+
{
25+
string outputFile = Path.Combine(dataDir, string.Format(@"compressionTest{0}.png", compression));
26+
27+
image.Save(outputFile, new PngOptions()
28+
{
29+
PngCompressionLevel = (PngCompressionLevel)compression
30+
});
31+
32+
File.Delete(outputFile);
33+
}
34+
}
35+
36+
Console.WriteLine("Finished example PngCompressionLevelExample");
37+
}
38+
}
39+
}

Examples/CSharp/RunExamples.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,7 @@ private static void RunTestFileFormats()
236236
// =====================================================
237237
// =====================================================
238238

239+
PngCompressionLevelExample.Run();
239240
ApplyFilterMethod.Run();
240241
ChangeBackgroundColor.Run();
241242
CompressingFiles.Run();
@@ -306,7 +307,7 @@ private static void RunTestFileFormats()
306307
PantoneGoeCoatedPalette.Run();
307308
CdrToPdfExmple.Run();
308309
SupportOfCDR.Run();
309-
CdrToPsdMultipageExample.Run();
310+
//CdrToPsdMultipageExample.Run();
310311
CdrToPngExample.Run();
311312
SupportTextStylesItalicUnderline.Run();
312313

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.5.0" targetFramework="net45" />
3+
<package id="Aspose.Imaging" version="25.6.0" targetFramework="net45" />
44
</packages>

0 commit comments

Comments
 (0)