DrawingEngine for not RGB images
Posted: Mon Mar 13, 2023 1:26 pm
Good morning,
I'm using currently last version (12.1) of Imaging .NET SDK, modifying demo 'ImagingDemo.Net7', trying to draw some graphics on the image visualized on ImageViewer.
With both GdiGraphics and SkiaSharp at Graphics opening
DrawingEngine graphics = imageViewer1.Image.CreateDrawingEngine())
passing a not RGB image (i.e. Gray 8, Gray 16, ..), I get a
System.NotSupportedException: 'PixelFormat Gray8 is not supported by GdiGraphics / SkiaSharp.'
It seems that GdiGraphics and SkiaSharp are working only on RGB images.
Do you have some other demos or some suggestions on how to draw a simple rectangle?
Thanks in advance
I'm using currently last version (12.1) of Imaging .NET SDK, modifying demo 'ImagingDemo.Net7', trying to draw some graphics on the image visualized on ImageViewer.
With both GdiGraphics and SkiaSharp at Graphics opening
DrawingEngine graphics = imageViewer1.Image.CreateDrawingEngine())
passing a not RGB image (i.e. Gray 8, Gray 16, ..), I get a
System.NotSupportedException: 'PixelFormat Gray8 is not supported by GdiGraphics / SkiaSharp.'
It seems that GdiGraphics and SkiaSharp are working only on RGB images.
Do you have some other demos or some suggestions on how to draw a simple rectangle?
Thanks in advance