I'm trying to take a screenshot with CGDisplayCreateImage
and then send them to Magick++ to do some basic image manipulation. Right now I'm saving the images to files, but I want to be able to store them in a Magick++ blob.
I've already seen this question: How to convert from CGImageRef to GraphicsMagick Blob type?, but I'm using C++ and I can't find an alternative to NSData
.