Revert release debug type to none

This commit is contained in:
Jaex 2015-04-21 19:33:20 +03:00
parent 34bb70b277
commit d06ba3cb9e
2 changed files with 9 additions and 4 deletions

View file

@ -181,14 +181,20 @@ public static Image ResizeImageLimit(Image img, int width, int height)
return img; return img;
} }
int newWidth, newHeight;
double ratioX = (double)width / img.Width; double ratioX = (double)width / img.Width;
double ratioY = (double)height / img.Height; double ratioY = (double)height / img.Height;
int newWidth = width;
int newHeight = height;
if (ratioX < ratioY) if (ratioX < ratioY)
{
newWidth = width;
newHeight = (int)(img.Height * ratioX); newHeight = (int)(img.Height * ratioX);
}
else else
{
newWidth = (int)(img.Width * ratioY); newWidth = (int)(img.Width * ratioY);
newHeight = height;
}
return ResizeImage(img, newWidth, newHeight); return ResizeImage(img, newWidth, newHeight);
} }

View file

@ -37,7 +37,7 @@
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType> <DebugType>none</DebugType>
<Optimize>true</Optimize> <Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath> <OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <DefineConstants>TRACE</DefineConstants>
@ -49,7 +49,6 @@
<Prefer32Bit>false</Prefer32Bit> <Prefer32Bit>false</Prefer32Bit>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks> <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies> <GenerateSerializationAssemblies>Off</GenerateSerializationAssemblies>
<DebugSymbols>true</DebugSymbols>
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<Reference Include="Gma.QrCodeNet.Encoding, Version=0.4.0.0, Culture=neutral, processorArchitecture=MSIL"> <Reference Include="Gma.QrCodeNet.Encoding, Version=0.4.0.0, Culture=neutral, processorArchitecture=MSIL">