How to create MagickImage from a pixel array
Posted: 2018-07-13T17:02:06-07:00
I am sorry for this rudimentary question. I am new to ImageMagick.
Here is my code:
abPixels is iWidth*1*3 byte array (i.e. three bytes for each pixel). The last line throws the following exception:
no decode delegate for this image format `' @ error/blob.c/BlobToImage/456
Could anyone offer a tip on this?
Here is my code:
Code: Select all
MagickReadSettings mr = new MagickReadSettings();
mr.ColorType = ColorType.TrueColor;
mr.Width = iWidth;
mr.Height = 1;
var image = new MagickImage(abPixels, mr);
no decode delegate for this image format `' @ error/blob.c/BlobToImage/456
Could anyone offer a tip on this?