Im trying to read CCITT encoded images out of PDF files. I've found a method called "compressType", which is to get/set the CompressionType of the image.
But how can I use this, and how can i tell Magick++ the other parameters of the CCITT compression?
My code is the following:
Code: Select all
blob = new Blob((const void*)img.c_str(),img.length());
image = new Image();
image->compressType(CompressionType::FaxCompression);
image->read(*blob);
This code throws an error.
Can someone tell me how i can load such images correctly?