I just want to know if this is possible and which function to call to do it if so. I've got a stream of JPGs from an image server that broadcasts on a multicast address. I want to use IMs C API to convert the JPG images which are in memory to RGB arrays for use in a larger .NET application by wrapping the necessary API function calls.
Thanks!
Convert a JPG to RGB array from a handle in memory
Re: Convert a JPG to RGB array from a handle in memory
MagickCore provides BlobToImage() which accept in-memory image formats. You can then extract pixels with AcquireImagePixels() or ExportQuantumPixels(). There should be analogs to these methods in the other ImageMagick progamming interfaces (e.g. MagickWand, Magick++, etc.).
Re: Convert a JPG to RGB array from a handle in memory
Thanks, that's just what I was hoping for.