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;
}
int newWidth, newHeight;
double ratioX = (double)width / img.Width;
double ratioY = (double)height / img.Height;
int newWidth = width;
int newHeight = height;
if (ratioX < ratioY)
{
newWidth = width;
newHeight = (int)(img.Height * ratioX);
}
else
{
newWidth = (int)(img.Width * ratioY);
newHeight = height;
}
return ResizeImage(img, newWidth, newHeight);
}

View file

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