Skip to content

Commit cfb0695

Browse files
author
Samer El-Khatib
committed
Release 23.2 - Updates
1 parent 6637320 commit cfb0695

File tree

15 files changed

+1049
-6
lines changed

15 files changed

+1049
-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=22.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
82-
<HintPath>..\..\packages\Aspose.Imaging.22.12.0\lib\net40\Aspose.Imaging.dll</HintPath>
81+
<Reference Include="Aspose.Imaging, Version=23.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
82+
<HintPath>..\..\packages\Aspose.Imaging.23.2.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="22.12.0" targetFramework="net471" />
7+
<package id="Aspose.Imaging" version="23.2.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: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,21 @@
1313
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
1414
<RestorePackages>true</RestorePackages>
1515
<TargetFrameworkProfile />
16+
<PublishUrl>publish\</PublishUrl>
17+
<Install>true</Install>
18+
<InstallFrom>Disk</InstallFrom>
19+
<UpdateEnabled>false</UpdateEnabled>
20+
<UpdateMode>Foreground</UpdateMode>
21+
<UpdateInterval>7</UpdateInterval>
22+
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
23+
<UpdatePeriodically>false</UpdatePeriodically>
24+
<UpdateRequired>false</UpdateRequired>
25+
<MapFileExtensions>true</MapFileExtensions>
26+
<ApplicationRevision>0</ApplicationRevision>
27+
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
28+
<IsWebBootstrapper>false</IsWebBootstrapper>
29+
<UseApplicationTrust>false</UseApplicationTrust>
30+
<BootstrapperEnabled>true</BootstrapperEnabled>
1631
</PropertyGroup>
1732
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1833
<PlatformTarget>AnyCPU</PlatformTarget>
@@ -39,8 +54,8 @@
3954
<StartupObject>Aspose.Imaging.Examples.CSharp.RunExamples</StartupObject>
4055
</PropertyGroup>
4156
<ItemGroup>
42-
<Reference Include="Aspose.Imaging, Version=22.12.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
43-
<HintPath>..\packages\Aspose.Imaging.22.12.0\lib\net40\Aspose.Imaging.dll</HintPath>
57+
<Reference Include="Aspose.Imaging, Version=23.2.0.0, Culture=neutral, PublicKeyToken=716fcc553a201e56, processorArchitecture=MSIL">
58+
<HintPath>..\packages\Aspose.Imaging.23.2.0\lib\net40\Aspose.Imaging.dll</HintPath>
4459
</Reference>
4560
<Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
4661
<SpecificVersion>False</SpecificVersion>
@@ -150,6 +165,7 @@
150165
<Compile Include="ModifyingAndConvertingImages\ConvertWMFToWebp.cs" />
151166
<Compile Include="ModifyingAndConvertingImages\PNG\ChangeWindowSize.cs" />
152167
<Compile Include="ModifyingAndConvertingImages\PNG\ConvertTo1BitPng.cs" />
168+
<Compile Include="ModifyingAndConvertingImages\PNG\KeepTransparencyWhenIndexingPngImage.cs" />
153169
<Compile Include="ModifyingAndConvertingImages\PNG\ReadLargePNGFile.cs" />
154170
<Compile Include="ModifyingAndConvertingImages\PNG\Support16BitChannel64BitPng.cs" />
155171
<Compile Include="ModifyingAndConvertingImages\RasterImageToPDF.cs" />
@@ -284,6 +300,12 @@
284300
<Compile Include="ModifyingAndConvertingImages\WebPImages\OpenWebPFile.cs" />
285301
<Compile Include="ModifyingAndConvertingImages\WebPImages\WebPToGifExample.cs" />
286302
<Compile Include="ModifyingAndConvertingImages\WebPImages\WebPToPdfExample.cs" />
303+
<Compile Include="Plugins\CommonExample.cs" />
304+
<Compile Include="Plugins\ConversionPlugin.cs" />
305+
<Compile Include="Plugins\CropPlugin.cs" />
306+
<Compile Include="Plugins\ImageAlbumPlugin.cs" />
307+
<Compile Include="Plugins\MergePlugin.cs" />
308+
<Compile Include="Plugins\ResizePlugin.cs" />
287309
<Compile Include="Properties\AssemblyInfo.cs" />
288310
<Compile Include="DrawingAndFormattingImages\DrawingArc.cs" />
289311
<Compile Include="DrawingAndFormattingImages\DrawingBezier.cs" />
@@ -300,6 +322,13 @@
300322
<ItemGroup>
301323
<Folder Include="Aspose\Imaging\FileFormats\" />
302324
</ItemGroup>
325+
<ItemGroup>
326+
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
327+
<Visible>False</Visible>
328+
<ProductName>.NET Framework 3.5 SP1</ProductName>
329+
<Install>false</Install>
330+
</BootstrapperPackage>
331+
</ItemGroup>
303332
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
304333
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
305334
Other similar extension points exist, see Microsoft.Common.targets.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
using Aspose.Imaging;
2+
using Aspose.Imaging.Examples.CSharp;
3+
using Aspose.Imaging.FileFormats.Png;
4+
using Aspose.Imaging.ImageOptions;
5+
using System;
6+
using System.Collections.Generic;
7+
using System.IO;
8+
using System.Linq;
9+
using System.Text;
10+
using System.Threading.Tasks;
11+
12+
namespace CSharp.ModifyingAndConvertingImages.PNG
13+
{
14+
internal class KeepTransparencyWhenIndexingPngImage
15+
{
16+
public static void Run()
17+
{
18+
Console.WriteLine("Running example KeepTransparencyWhenIndexingPngImage");
19+
20+
// The path to the documents directory.
21+
string dataDir = RunExamples.GetDataDir_PNG();
22+
23+
using (RasterImage image = (RasterImage)Image.Load(dataDir + "template.png"))
24+
{
25+
PngOptions options = new PngOptions()
26+
{
27+
CompressionLevel = 8,
28+
ColorType = PngColorType.IndexedColor,
29+
Palette = ColorPaletteHelper.GetCloseTransparentImagePalette(image, 256),
30+
FilterType = PngFilterType.Avg,
31+
};
32+
33+
image.Save(dataDir + "result.png", options);
34+
}
35+
36+
File.Delete(dataDir + "result.png");
37+
38+
Console.WriteLine("Finished example KeepTransparencyWhenIndexingPngImage");
39+
}
40+
}
41+
}

0 commit comments

Comments
 (0)