Update ImageReader to reaad images without resizinf

This commit is contained in:
TheXamlGuy
2024-10-10 15:47:01 +01:00
parent 1e402960f3
commit b1e239ab04
6 changed files with 38 additions and 24 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ public interface IImageDescriptor
{
object Image { get; }
int Width { get; }
double Width { get; }
int Height { get; }
double Height { get; }
}
+4 -2
View File
@@ -3,7 +3,9 @@
public interface IImageReader
{
IImageDescriptor Get(Stream stream,
int width,
int height,
double width,
double height,
bool maintainAspectRatio = false);
IImageDescriptor Get(Stream stream);
}
+1 -1
View File
@@ -1,4 +1,4 @@
namespace Toolkit.Foundation;
public record ImageDescriptor(object Image, int Width, int Height) :
public record ImageDescriptor(object Image, double Width, double Height) :
IImageDescriptor;