Loading monochrome pixel into MagickImage
Posted: 2019-01-21T07:28:46-07:00
I kan load/read a raw RGB pixel array into a MagickImage.
How do I load/read a monochrome pixel data? PixelMapping type only support color images.
Code: Select all
PixelStorageSettings pixelStorageSettings = new PixelStorageSettings(100, 100, StorageType.Short, PixelMapping.BGR);
var colorImage = new MagickImage(myImageDataByteArray, pixelStorageSettings);