Skip to content

Commit

Permalink
remove commented line in ImageDpiHelper
Browse files Browse the repository at this point in the history
  • Loading branch information
Rohit Agrawal committed Nov 7, 2015
1 parent 8994d92 commit a19f744
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions PerMonitorDPI/ImageScaling/ImageDpiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,12 @@ namespace ImageScaling
public static class ImageDpiHelper
{
public static string GetDesiredImageUrlForDpi(Image image)
{
{
DpiScaleInfo imageScaleInfo = VisualTreeHelper.GetDpi(image);
int bestScale = ImageDpiHelper.GetBestScale(imageScaleInfo.PixelsPerDip);

var sourceUrl = image.Source.ToString();
string imagePattern = Regex.Replace(sourceUrl, ".scale-[0-9]{3}.", ".scale-{0}.");
//string imagePattern = sourceUrl.Replace(".scale-100.", ".scale-{0}.");

string newImagePath = null;
if (imagePattern != null)
Expand Down

0 comments on commit a19f744

Please sign in to comment.