|
@@ -115,7 +115,7 @@ namespace PDF_Office.CustomControl.ScanViewControl
|
|
if (BackgroundImage != null && BackgroundWidth > 0 && BackgroundHeight > 0)
|
|
if (BackgroundImage != null && BackgroundWidth > 0 && BackgroundHeight > 0)
|
|
{
|
|
{
|
|
double scale = Math.Min(ActualWidth / BackgroundWidth, ActualHeight / BackgroundHeight);
|
|
double scale = Math.Min(ActualWidth / BackgroundWidth, ActualHeight / BackgroundHeight);
|
|
- scale = Math.Min(scale, 1);
|
|
|
|
|
|
+ //scale = Math.Min(scale, 1);
|
|
int drawWidth = (int)(scale * BackgroundWidth);
|
|
int drawWidth = (int)(scale * BackgroundWidth);
|
|
int drawHeight = (int)(scale * BackgroundHeight);
|
|
int drawHeight = (int)(scale * BackgroundHeight);
|
|
if (drawWidth < 10 || drawHeight < 10)
|
|
if (drawWidth < 10 || drawHeight < 10)
|