Skip to content

Commit bc52195

Browse files
author
lucio.fassio
committed
A revised ASPNetImage library with these news properties and methods:
AddImage AntiAliasText BackgroundColor BrightenImage Bold Contrast CreateGrayScale CreateNegative CropImage DarkenImage Emboss FileName FontColor FontName FontSize ImageFormat JPEGQuality LoadBlob LoadImage MaxX MaxY Resize ResizeR RotateImage SaveImage TextOut TextHeight TextWidth It fully replaces the original AspImage.dll file, so no modifications to the ASP source code is required. It is obtained simply adding the [PrgID] annotation in the main .cs file. In the Resource folder you can find SearchProgID.vbs file which is useful to know what dll is actually installed on a given server.
1 parent e0016de commit bc52195

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+16278
-72
lines changed

ASPNetImage.sln

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
11

2-
Microsoft Visual Studio Solution File, Format Version 9.00
3-
# Visual Studio 2005
2+
Microsoft Visual Studio Solution File, Format Version 11.00
3+
# Visual Studio 2010
44
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ASPNetImage", "ASPNetImage\ASPNetImage.csproj", "{B56B76E7-0BF9-4439-8AEB-91C6709628C5}"
5-
ProjectSection(WebsiteProperties) = preProject
6-
Debug.AspNetCompiler.Debug = "True"
7-
Release.AspNetCompiler.Debug = "False"
8-
EndProjectSection
95
EndProject
106
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{EFB48FB4-4982-49E4-A007-98BFCE885C70}"
11-
ProjectSection(WebsiteProperties) = preProject
12-
Debug.AspNetCompiler.Debug = "True"
13-
Release.AspNetCompiler.Debug = "False"
14-
EndProjectSection
7+
EndProject
8+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "testWeb", "testWeb\testWeb.csproj", "{5E572EE0-30C5-45E9-AD31-45A159295AC3}"
159
EndProject
1610
Global
1711
GlobalSection(SolutionConfigurationPlatforms) = preSolution
@@ -27,6 +21,10 @@ Global
2721
{EFB48FB4-4982-49E4-A007-98BFCE885C70}.Debug|Any CPU.Build.0 = Debug|Any CPU
2822
{EFB48FB4-4982-49E4-A007-98BFCE885C70}.Release|Any CPU.ActiveCfg = Release|Any CPU
2923
{EFB48FB4-4982-49E4-A007-98BFCE885C70}.Release|Any CPU.Build.0 = Release|Any CPU
24+
{5E572EE0-30C5-45E9-AD31-45A159295AC3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
25+
{5E572EE0-30C5-45E9-AD31-45A159295AC3}.Debug|Any CPU.Build.0 = Debug|Any CPU
26+
{5E572EE0-30C5-45E9-AD31-45A159295AC3}.Release|Any CPU.ActiveCfg = Release|Any CPU
27+
{5E572EE0-30C5-45E9-AD31-45A159295AC3}.Release|Any CPU.Build.0 = Release|Any CPU
3028
EndGlobalSection
3129
GlobalSection(SolutionProperties) = preSolution
3230
HideSolutionNode = FALSE

ASPNetImage/ASPNetImage.csproj

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
23
<PropertyGroup>
34
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
45
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
@@ -10,8 +11,16 @@
1011
<RootNamespace>ASPNetImage</RootNamespace>
1112
<AssemblyName>ASPNetImage</AssemblyName>
1213
<SignAssembly>true</SignAssembly>
13-
<AssemblyOriginatorKeyFile>
14-
</AssemblyOriginatorKeyFile>
14+
<AssemblyOriginatorKeyFile>ASPNetImage.snk</AssemblyOriginatorKeyFile>
15+
<TargetFrameworkVersion>v2.0</TargetFrameworkVersion>
16+
<FileUpgradeFlags>
17+
</FileUpgradeFlags>
18+
<OldToolsVersion>2.0</OldToolsVersion>
19+
<UpgradeBackupLocation />
20+
<SccProjectName>SAK</SccProjectName>
21+
<SccLocalPath>SAK</SccLocalPath>
22+
<SccAuxPath>SAK</SccAuxPath>
23+
<SccProvider>SAK</SccProvider>
1524
</PropertyGroup>
1625
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
1726
<DebugSymbols>true</DebugSymbols>
@@ -43,14 +52,22 @@
4352
<Compile Include="Properties\AssemblyInfo.cs" />
4453
</ItemGroup>
4554
<ItemGroup>
55+
<None Include="ASPNetImage.snk" />
4656
<None Include="Resource\register.bat" />
4757
<None Include="Resource\unregister.bat" />
4858
</ItemGroup>
4959
<ItemGroup>
5060
<Content Include="Resource\ASPNetImage.txt" />
5161
<Content Include="Resource\gpl-3.0.txt" />
5262
</ItemGroup>
63+
<ItemGroup>
64+
<Folder Include="bin\Release\" />
65+
</ItemGroup>
5366
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
67+
<PropertyGroup>
68+
<PreBuildEvent>
69+
</PreBuildEvent>
70+
</PropertyGroup>
5471
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
5572
Other similar extension points exist, see Microsoft.Common.targets.
5673
<Target Name="BeforeBuild">

ASPNetImage/Resource/register.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@echo off
2-
c:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe ..\bin\release\ASPNetImage.dll /tlb /codebase
2+
c:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe ASPImage.dll /tlb /codebase
33
pause
4.4 KB
Binary file not shown.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
@echo off
2-
c:\Windows\Microsoft.NET\Framework\v2.0.50727\regasm.exe ..\bin\release\ASPNetImage.dll /unregister /tlb
2+
c:\Windows\Microsoft.NET\Framework\v4.0.30319\regasm.exe ASPImage.dll /unregister /tlb
33
pause

0 commit comments

Comments
 (0)