In c# (Windows), with the width, height and stride of an image, we can convert an Intptr to Bitmap as follows:
var bitmap = new Bitmap(width, height, stride, PixelFormat.Format24bppRgb, intptrImage);
But System.Drawing.Bitmap is no longer available on Linux and we have to use SixLabors.ImageSharp.Image.
How do I convert an Intptr to an image using ImageSharp?