load a PDF without antialiasing
Posted: 2016-07-22T05:02:09-07:00
Hi,
I need convert a PDF into an image for my app developed in C++.
I have no trouble to convert the PDF into the image but I need also to turn-off the antialias.
It is possible?
Here my simple code:
int main( int argc, char ** argv)
{
InitializeMagick(*argv);
Image * img = new Image();
img->density("100");
img->strokeAntiAlias(false); //This is wrong! It doesn't work!
img->read("input.pdf");
img->write("output.bmp");
return 0;
}
Thanks
I need convert a PDF into an image for my app developed in C++.
I have no trouble to convert the PDF into the image but I need also to turn-off the antialias.
It is possible?
Here my simple code:
int main( int argc, char ** argv)
{
InitializeMagick(*argv);
Image * img = new Image();
img->density("100");
img->strokeAntiAlias(false); //This is wrong! It doesn't work!
img->read("input.pdf");
img->write("output.bmp");
return 0;
}
Thanks