[Peek] Fix thumbnails being created and not used. Fix icon bitmaps leaking memory. Simplify ImagePreviewer. (#34544)

Consolidated IconHelper and ThumbnailHelper. Fixed icon memory leak. Fixed ImagePreviewer thumbnails being created and then not used. Refactored ImagePreviewer.
This commit is contained in:
Dave Rayment
2024-09-23 17:00:34 +01:00
committed by GitHub
parent a70aafb3b8
commit 360b6d0ccf
9 changed files with 138 additions and 333 deletions

View File

@@ -20,20 +20,11 @@ namespace Peek.Common.Models
}
[StructLayout(LayoutKind.Sequential)]
public struct NativeSize
public struct NativeSize(int width, int height)
{
private int width;
private int height;
public int Width { get; set; } = width;
public int Width
{
set { width = value; }
}
public int Height
{
set { height = value; }
}
public int Height { get; set; } = height;
}
[Flags]