Skip to content

Commit

Permalink
Removed unused code.
Browse files Browse the repository at this point in the history
  • Loading branch information
smourier committed Jul 9, 2023
1 parent 1ad9e87 commit aa0b28d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 106 deletions.
4 changes: 3 additions & 1 deletion WicNet.WinUI3Tests/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ private static SoftwareBitmap GetSoftwareBitmap(string filePath)
using var bmp = WicBitmapSource.Load(filePath);

// note: software bitmap doesn't seem to support color contexts
// so must must transform it ourself and build one using pixels
// so we must transform it ourselves, building one using pixels after color transformation
// this is the moral equivalent to WinRT's BitmapDecoder.GetPixelDataAsync (which uses Wic underneath...)
// https://learn.microsoft.com/en-us/uwp/api/windows.graphics.imaging.bitmapdecoder.getpixeldataasync
var ctx = bmp.GetColorContexts();
if (ctx.Count > 0)
{
Expand Down
4 changes: 2 additions & 2 deletions WicNet/WicColorContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ public static string StandardColorSpaceProfile
return s;

var dir = ColorDirectory;
if (string.IsNullOrEmpty(dir))
return string.Empty;
if (string.IsNullOrEmpty(dir))
return string.Empty;

return Path.Combine(dir, s);
}
Expand Down
103 changes: 0 additions & 103 deletions WicNet/WicConversionRoute.cs

This file was deleted.

0 comments on commit aa0b28d

Please sign in to comment.