Reading CCITT encoded images
Posted: 2011-01-05T03:52:33-07:00
Hi guys
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:
img is a string which contains the binary data of the image stream.
This code throws an error.
Can someone tell me how i can load such images correctly?
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?