Skip to content

Commit 5ef6072

Browse files
committed
feature: supports R16F and R32F dds image
Signed-off-by: leo <longshuang@msn.cn>
1 parent ee70be4 commit 5ef6072

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/ViewModels/ImageSource.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,12 @@ private static ImageSource DecodeWithPfim(Stream stream, long size)
108108
case ImageFormat.Rgb8:
109109
pixelFormat = PixelFormats.Gray8;
110110
break;
111+
case ImageFormat.R16f:
112+
pixelFormat = PixelFormats.Gray16;
113+
break;
114+
case ImageFormat.R32f:
115+
pixelFormat = PixelFormats.Gray32Float;
116+
break;
111117
case ImageFormat.R5g5b5:
112118
pixelFormat = PixelFormats.Bgr555;
113119
break;

0 commit comments

Comments
 (0)